Eclipse SUMO - Simulation of Urban MObility
|
Abstract dialog for tools. More...
#include <GNERunNetgenerateDialog.h>
Public Member Functions | |
GNEApplicationWindow * | getGNEApp () const |
get to GNEApplicationWindow | |
GNERunNetgenerateDialog (GNEApplicationWindow *GNEApp) | |
FOX-declaration. | |
void | run (const OptionsCont *netgenerateOptions) |
run tool (this open windows) | |
~GNERunNetgenerateDialog () | |
destructor | |
FOX-callbacks | |
long | onCmdSaveLog (FXObject *, FXSelector, void *) |
event after press save button | |
long | onCmdAbort (FXObject *, FXSelector, void *) |
event after press abort button | |
long | onCmdRerun (FXObject *, FXSelector, void *) |
event after press rerun button | |
long | onCmdBack (FXObject *, FXSelector, void *) |
event after press back button | |
long | onCmdClose (FXObject *, FXSelector, void *) |
event after press close button | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button | |
long | onThreadEvent (FXObject *, FXSelector, void *) |
called when the thread signals an event | |
Protected Member Functions | |
GNERunNetgenerateDialog () | |
FOX needs this. | |
void | updateDialog () |
update toolDialog | |
Private Member Functions | |
GNERunNetgenerateDialog (const GNERunNetgenerateDialog &)=delete | |
Invalidated copy constructor. | |
GNERunNetgenerateDialog & | operator= (const GNERunNetgenerateDialog &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
FXButton * | myAbortButton = nullptr |
abort button | |
FXButton * | myBackButton = nullptr |
back button | |
FXButton * | myCloseButton = nullptr |
close button | |
bool | myError = false |
flag to check if there is an error | |
MFXSynchQue< GUIEvent * > | myEvents |
List of received events. | |
GNEApplicationWindow * | myGNEApp |
pointer to GNEApplicationWindow | |
const OptionsCont * | myNetgenerateOptions |
netgenerate options | |
FXButton * | myRerunButton = nullptr |
rerun button | |
GNERunNetgenerate * | myRunNetgenerate = nullptr |
thread for running tool | |
FXText * | myText = nullptr |
text | |
FXEX::MFXThreadEvent | myThreadEvent |
io-event with the runner thread | |
Abstract dialog for tools.
Definition at line 45 of file GNERunNetgenerateDialog.h.
GNERunNetgenerateDialog::GNERunNetgenerateDialog | ( | GNEApplicationWindow * | GNEApp | ) |
FOX-declaration.
Constructor
Definition at line 53 of file GNERunNetgenerateDialog.cpp.
References BACK, GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIMessageWindow::getStyles(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonIcon, GUIDesignButtonReset, GUIDesignFrameThick, GUIDesignHorizontalFrame, GUIDesignLabelThick, ID_LOADTHREAD_EVENT, MID_GNE_BUTTON_ABORT, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_BACK, MID_GNE_BUTTON_RERUN, MID_GNE_BUTTON_SAVE, NETGENERATE, OK, RESET, SAVE, STOP, and TL.
GNERunNetgenerateDialog::~GNERunNetgenerateDialog | ( | ) |
destructor
Definition at line 102 of file GNERunNetgenerateDialog.cpp.
|
protected |
FOX needs this.
Definition at line 268 of file GNERunNetgenerateDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEApplicationWindow * GNERunNetgenerateDialog::getGNEApp | ( | ) | const |
get to GNEApplicationWindow
Definition at line 106 of file GNERunNetgenerateDialog.cpp.
References myGNEApp.
long GNERunNetgenerateDialog::onCmdAbort | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press abort button
Definition at line 164 of file GNERunNetgenerateDialog.cpp.
References GNERunNetgenerate::abort(), and myRunNetgenerate.
Referenced by FXDEFMAP().
long GNERunNetgenerateDialog::onCmdBack | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press back button
Definition at line 187 of file GNERunNetgenerateDialog.cpp.
References MID_GNE_NETGENERATE, myGNEApp, and onCmdCancel().
Referenced by FXDEFMAP().
long GNERunNetgenerateDialog::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press cancel button
Definition at line 211 of file GNERunNetgenerateDialog.cpp.
References GNERunNetgenerate::abort(), and myRunNetgenerate.
Referenced by FXDEFMAP(), onCmdBack(), and onCmdClose().
long GNERunNetgenerateDialog::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press close button
Definition at line 195 of file GNERunNetgenerateDialog.cpp.
References MID_GNE_POSTPROCESSINGNETGENERATE, myError, myGNEApp, myText, and onCmdCancel().
Referenced by FXDEFMAP(), and onThreadEvent().
long GNERunNetgenerateDialog::onCmdRerun | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press rerun button
Definition at line 172 of file GNERunNetgenerateDialog.cpp.
References myError, myNetgenerateOptions, myRunNetgenerate, myText, and GNERunNetgenerate::run().
Referenced by FXDEFMAP().
long GNERunNetgenerateDialog::onCmdSaveLog | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press save button
Definition at line 150 of file GNERunNetgenerateDialog.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), myText, and GNEApplicationWindowHelper::saveToolLog().
Referenced by FXDEFMAP().
long GNERunNetgenerateDialog::onThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when the thread signals an event
Definition at line 221 of file GNERunNetgenerateDialog.cpp.
References MFXSynchQue< T, Container >::empty(), ERROR_OCCURRED, GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), MESSAGE_OCCURRED, myError, myEvents, myText, onCmdClose(), OUTPUT_OCCURRED, MFXSynchQue< T, Container >::pop(), TOOL_ENDED, MFXSynchQue< T, Container >::top(), and updateDialog().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
void GNERunNetgenerateDialog::run | ( | const OptionsCont * | netgenerateOptions | ) |
run tool (this open windows)
Definition at line 112 of file GNERunNetgenerateDialog.cpp.
References myError, myNetgenerateOptions, myRunNetgenerate, myText, and GNERunNetgenerate::run().
|
protected |
update toolDialog
Definition at line 131 of file GNERunNetgenerateDialog.cpp.
References GNERunNetgenerate::isRunning(), myAbortButton, myBackButton, myCloseButton, myRerunButton, and myRunNetgenerate.
Referenced by onThreadEvent().
|
private |
abort button
Definition at line 105 of file GNERunNetgenerateDialog.h.
Referenced by updateDialog().
|
private |
|
private |
close button
Definition at line 114 of file GNERunNetgenerateDialog.h.
Referenced by updateDialog().
|
private |
flag to check if there is an error
Definition at line 126 of file GNERunNetgenerateDialog.h.
Referenced by onCmdClose(), onCmdRerun(), onThreadEvent(), and run().
|
private |
List of received events.
Definition at line 120 of file GNERunNetgenerateDialog.h.
Referenced by onThreadEvent().
|
private |
pointer to GNEApplicationWindow
Definition at line 96 of file GNERunNetgenerateDialog.h.
Referenced by getGNEApp(), onCmdBack(), and onCmdClose().
|
private |
netgenerate options
Definition at line 117 of file GNERunNetgenerateDialog.h.
Referenced by onCmdRerun(), and run().
|
private |
rerun button
Definition at line 108 of file GNERunNetgenerateDialog.h.
Referenced by updateDialog().
|
private |
thread for running tool
Definition at line 99 of file GNERunNetgenerateDialog.h.
Referenced by onCmdAbort(), onCmdCancel(), onCmdRerun(), run(), and updateDialog().
|
private |
text
Definition at line 102 of file GNERunNetgenerateDialog.h.
Referenced by onCmdClose(), onCmdRerun(), onCmdSaveLog(), onThreadEvent(), and run().
|
private |
io-event with the runner thread
Definition at line 123 of file GNERunNetgenerateDialog.h.