![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Abstract dialog for tools. More...
#include <GNERunPythonToolDialog.h>
Public Member Functions | |
| GNEApplicationWindow * | getGNEApp () const |
| get to GNEApplicationWindow | |
| GNERunPythonToolDialog (GNEApplicationWindow *GNEApp) | |
| FOX-declaration. | |
| void | runTool (GNEPythonTool *tool) |
| run tool (this open windows) | |
| ~GNERunPythonToolDialog () | |
| 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 | onThreadEvent (FXObject *, FXSelector, void *) |
| called when the thread signals an event | |
Protected Member Functions | |
| GNERunPythonToolDialog () | |
| FOX needs this. | |
| void | updateDialog () |
| update toolDialog | |
Private Member Functions | |
| GNERunPythonToolDialog (const GNERunPythonToolDialog &)=delete | |
| Invalidated copy constructor. | |
| GNERunPythonToolDialog & | operator= (const GNERunPythonToolDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myAbortButton = nullptr |
| abort button | |
| FXButton * | myBackButton = nullptr |
| back button | |
| FXButton * | myCloseButton = nullptr |
| close button | |
| MFXSynchQue< GUIEvent * > | myEvents |
| List of received events. | |
| GNEApplicationWindow * | myGNEApp |
| pointer to GNEApplicationWindow | |
| GNEPythonTool * | myPythonTool = nullptr |
| tool | |
| FXButton * | myRerunButton = nullptr |
| rerun button | |
| GNERunPythonTool * | myRunTool = 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 44 of file GNERunPythonToolDialog.h.
| GNERunPythonToolDialog::GNERunPythonToolDialog | ( | GNEApplicationWindow * | GNEApp | ) |
FOX-declaration.
Constructor
Definition at line 54 of file GNERunPythonToolDialog.cpp.
References BACK, 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, OK, RESET, SAVE, STOP, TL, and TOOL_PYTHON.
| GNERunPythonToolDialog::~GNERunPythonToolDialog | ( | ) |
destructor
Definition at line 103 of file GNERunPythonToolDialog.cpp.
|
protected |
FOX needs this.
Definition at line 242 of file GNERunPythonToolDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
| GNEApplicationWindow * GNERunPythonToolDialog::getGNEApp | ( | ) | const |
get to GNEApplicationWindow
Definition at line 107 of file GNERunPythonToolDialog.cpp.
References myGNEApp.
| long GNERunPythonToolDialog::onCmdAbort | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press abort button
Definition at line 163 of file GNERunPythonToolDialog.cpp.
References GNERunPythonTool::abortTool(), and myRunTool.
Referenced by FXDEFMAP().
| long GNERunPythonToolDialog::onCmdBack | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press back button
Definition at line 185 of file GNERunPythonToolDialog.cpp.
References GNEPythonTool::getMenuCommand(), MID_GNE_OPENPYTHONTOOLDIALOG, myGNEApp, myPythonTool, and onCmdClose().
Referenced by FXDEFMAP().
| long GNERunPythonToolDialog::onCmdClose | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
event after press close button
Definition at line 193 of file GNERunPythonToolDialog.cpp.
References GNERunPythonTool::abortTool(), GNEPythonTool::getMenuCommand(), MID_GNE_POSTPROCESSINGPYTHONTOOL, myCloseButton, myGNEApp, myPythonTool, and myRunTool.
Referenced by FXDEFMAP(), and onCmdBack().
| long GNERunPythonToolDialog::onCmdRerun | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press rerun button
Definition at line 171 of file GNERunPythonToolDialog.cpp.
References myPythonTool, myRunTool, myText, and GNERunPythonTool::runTool().
Referenced by FXDEFMAP().
| long GNERunPythonToolDialog::onCmdSaveLog | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press save button
Definition at line 149 of file GNERunPythonToolDialog.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), myText, and GNEApplicationWindowHelper::saveToolLog().
Referenced by FXDEFMAP().
| long GNERunPythonToolDialog::onThreadEvent | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when the thread signals an event
Definition at line 207 of file GNERunPythonToolDialog.cpp.
References MFXSynchQue< T, Container >::empty(), ERROR_OCCURRED, GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), MESSAGE_OCCURRED, myEvents, myText, OUTPUT_OCCURRED, MFXSynchQue< T, Container >::pop(), TOOL_ENDED, MFXSynchQue< T, Container >::top(), and updateDialog().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
| void GNERunPythonToolDialog::runTool | ( | GNEPythonTool * | tool | ) |
run tool (this open windows)
Definition at line 113 of file GNERunPythonToolDialog.cpp.
References GNEPythonTool::getToolName(), myPythonTool, myRunTool, myText, and GNERunPythonTool::runTool().
|
protected |
update toolDialog
Definition at line 130 of file GNERunPythonToolDialog.cpp.
References GNERunPythonTool::isRunning(), myAbortButton, myBackButton, myCloseButton, myRerunButton, and myRunTool.
Referenced by onThreadEvent().
|
private |
|
private |
|
private |
close button
Definition at line 113 of file GNERunPythonToolDialog.h.
Referenced by onCmdClose(), and updateDialog().
|
private |
List of received events.
Definition at line 116 of file GNERunPythonToolDialog.h.
Referenced by onThreadEvent().
|
private |
pointer to GNEApplicationWindow
Definition at line 92 of file GNERunPythonToolDialog.h.
Referenced by getGNEApp(), onCmdBack(), and onCmdClose().
|
private |
tool
Definition at line 95 of file GNERunPythonToolDialog.h.
Referenced by onCmdBack(), onCmdClose(), onCmdRerun(), and runTool().
|
private |
|
private |
thread for running tool
Definition at line 98 of file GNERunPythonToolDialog.h.
Referenced by onCmdAbort(), onCmdClose(), onCmdRerun(), runTool(), and updateDialog().
|
private |
text
Definition at line 101 of file GNERunPythonToolDialog.h.
Referenced by onCmdRerun(), onCmdSaveLog(), onThreadEvent(), and runTool().
|
private |
io-event with the runner thread
Definition at line 119 of file GNERunPythonToolDialog.h.