47FXIMPLEMENT(
GNERunNetgenerateDialog, FXDialogBox, GNERunNetgenerateDialogMap, ARRAYNUMBER(GNERunNetgenerateDialogMap))
57 myThreadEvent.setTarget(
this);
68 headerFrame->setPadLeft(0);
69 headerFrame->setPadRight(0);
75 myText =
new FXText(textFrame, 0, 0, (TEXT_READONLY | LAYOUT_FILL_X | LAYOUT_FILL_Y));
78 myText->setStyled(
true);
90 new FXSeparator(contentFrame);
114 setTitle(
"Netgenerate output");
120 FXDialogBox::show(PLACEMENT_SCREEN);
145 FXDialogBox::update();
154 if (logFile.size() > 0) {
156 dev <<
myText->getText().text();
174 std::string line(
"-------------------------------------------\n");
175 myText->appendStyledText(line.c_str(), (
int)line.length(), 4, TRUE);
176 myText->appendStyledText(
"rerun tool\n", 1, TRUE);
222 bool toolFinished =
false;
248 myText->appendStyledText(ec->
getMsg().c_str(), (int)ec->
getMsg().length(), style, TRUE);
258 if (
myText->getText().find(
"Error") != -1) {
260 }
else if ((
myText->getText().find(
"Success") != -1) && (
myText->getText().find(
"Warning") == -1)) {
FXDEFMAP(GNERunNetgenerateDialog) GNERunNetgenerateDialogMap[]
@ MID_GNE_NETGENERATE
netgenerate dialog
@ MID_GNE_BUTTON_RERUN
rerun button
@ MID_GNE_BUTTON_ABORT
abort button
@ MID_GNE_BUTTON_SAVE
save button
@ ID_LOADTHREAD_EVENT
The loading thread.
@ MID_GNE_BUTTON_BACK
back button
@ MID_GNE_POSTPROCESSINGNETGENERATE
postprocesing netgenerate
@ MID_GNE_BUTTON_ACCEPT
accept button
#define GUIDesignDialogBoxExplicit(width, height)
design for dialog box with specific width and height (for example, additional dialogs)
#define GUIDesignFrameThick
Thick frame extended over frame parent.
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignButtonAccept
Accept Button.
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabelThick(justify)
label extended over frame with thick and with text justify to left
#define GUIDesignButtonReset
Reset Button.
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
@ MESSAGE_OCCURRED
send when a message occured
@ ERROR_OCCURRED
send when a error occured
@ OUTPUT_OCCURRED
send when a tool produces output
@ TOOL_ENDED
send when a tool finishes
The main window of Netedit.
Abstract dialog for tools.
long onCmdAbort(FXObject *, FXSelector, void *)
event after press abort button
FXButton * myBackButton
back button
~GNERunNetgenerateDialog()
destructor
GNEApplicationWindow * getGNEApp() const
get to GNEApplicationWindow
MFXSynchQue< GUIEvent * > myEvents
List of received events.
FXButton * myAbortButton
abort button
long onCmdSaveLog(FXObject *, FXSelector, void *)
event after press save button
bool myError
flag to check if there is an error
FXButton * myCloseButton
close button
FXButton * myRerunButton
rerun button
void updateDialog()
update toolDialog
long onCmdRerun(FXObject *, FXSelector, void *)
event after press rerun button
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdClose(FXObject *, FXSelector, void *)
event after press close button
GNERunNetgenerate * myRunNetgenerate
thread for running tool
void run(const OptionsCont *netgenerateOptions)
run tool (this open windows)
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
long onThreadEvent(FXObject *, FXSelector, void *)
called when the thread signals an event
const OptionsCont * myNetgenerateOptions
netgenerate options
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
GNERunNetgenerateDialog()
FOX needs this.
thread for running netgenerate
void run(const OptionsCont *netgenerateOptions)
run netgenerate
void abort()
abort netgenerate running
bool isRunning() const
check if netgenerate is running
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
const std::string & getMsg() const
Returns the message.
GUIEventType getOwnType() const
returns the event type
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static FXHiliteStyle * getStyles()
The text colors used.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
void close()
Closes the device and removes it from the dictionary.
static OutputDevice & getDevice(const std::string &name, bool usePrefix=true)
Returns the described OutputDevice.
static std::string saveToolLog(FXWindow *window)
open tool file dialog