Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERunPythonToolDialog Class Reference

#include <GNERunPythonToolDialog.h>

Inheritance diagram for GNERunPythonToolDialog:
[legend]
Collaboration diagram for GNERunPythonToolDialog:
[legend]

Public Types

basic dialog type
enum class  Buttons {
  OK , YES_NO , YES_NO_CANCEL , ACCEPT ,
  ACCEPT_CANCEL , ACCEPT_CANCEL_RESET , SAVE_DONTSAVE_CANCEL , RUN_CANCEL_RESET ,
  RUN_ADVANCED_CANCEL , RERUN_BACK_CLOSE
}
 
enum class  OpenType { MODAL , NON_MODAL }
 Open dialog type. More...
 
enum class  Buttons {
  OK , YES_NO , YES_NO_CANCEL , ACCEPT ,
  ACCEPT_CANCEL , ACCEPT_CANCEL_RESET , SAVE_DONTSAVE_CANCEL , RUN_CANCEL_RESET ,
  RUN_ADVANCED_CANCEL , RERUN_BACK_CLOSE
}
 
enum class  OpenType { MODAL , NON_MODAL }
 Open dialog type. More...
 

Public Member Functions

void addEvent (GUIEvent *event, const bool signal)
 add event in the queue
 
std::string getRunCommand () const
 get run command
 
 GNERunPythonToolDialog (GNEApplicationWindow *applicationWindow, GNEPythonTool *pythonTool)
 Constructor.
 
 GNERunPythonToolDialog (GNEApplicationWindow *applicationWindow, GNEPythonTool *tool)
 FOX-declaration.
 
void runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)
 run internal test
 
void runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)
 run internal test
 
 ~GNERunPythonToolDialog ()
 destructor
 
 ~GNERunPythonToolDialog ()
 destructor
 
FOX-callbacks
long onCmdBack (FXObject *, FXSelector, void *)
 event after press back button
 
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press close button
 
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 onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button
 
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press close button
 
long onThreadEvent (FXObject *, FXSelector, void *)
 called when the thread signals an event
 
FOX-callbacks
long onCmdRun (FXObject *, FXSelector, void *)
 event after press rerun button
 
FOX-callbacks
virtual long onCmdReset (FXObject *, FXSelector, void *)
 called when reset button is pressed (must be reimplemented in children)
 
virtual long onCmdAdvanced (FXObject *, FXSelector, void *)
 called when advanced button is pressed (must be reimplemented in children)
 
long onKeyPress (FXObject *obj, FXSelector sel, void *ptr)
 called when user presses a key on the dialog
 
long onKeyRelease (FXObject *obj, FXSelector sel, void *ptr)
 called when user releases a key on the dialog
 
long onKeyPress (FXObject *obj, FXSelector sel, void *ptr)
 called when user presses a key on the dialog
 
long onKeyRelease (FXObject *obj, FXSelector sel, void *ptr)
 called when user releases a key on the dialog
 

Protected Member Functions

long closeDialogAborting ()
 close dialog aborting the changes
 
long closeDialogAborting ()
 close dialog aborting the changes
 
long closeDialogAccepting ()
 close dialog accepting the changes
 
long closeDialogAccepting ()
 close dialog accepting the changes
 
long closeDialogCanceling ()
 close dialog declining the changes
 
long closeDialogCanceling ()
 close dialog declining the changes
 
 FOX_CONSTRUCTOR (GNERunDialog)
 FOX needs this.
 
 FOX_CONSTRUCTOR (GNERunPythonToolDialog)
 FOX needs this.
 
void openDialog (FXWindow *focusableElement=nullptr)
 open dialog
 
void openDialog (FXWindow *focusableElement=nullptr)
 open dialog
 
void updateDialog ()
 update toolDialog
 
void updateDialogButtons ()
 update dialog buttons
 
void updateIcon (GUIIcon newIcon)
 update icon
 
void updateIcon (GUIIcon newIcon)
 update icon
 
void updateTitle (const std::string &newTitle)
 update title
 
void updateTitle (const std::string &newTitle)
 update title
 

Protected Attributes

FXButton * myAbortButton = nullptr
 abort button
 
FXButton * myAbortButton = nullptr
 abort button
 
FXButton * myAcceptButton = nullptr
 accept button
 
FXButton * myAcceptButton = nullptr
 accept button
 
FXButton * myAdvancedButton = nullptr
 advanced button
 
FXButton * myAdvancedButton = nullptr
 advanced button
 
GNEApplicationWindowmyApplicationWindow = nullptr
 FOX needs this.
 
GNEApplicationWindowmyApplicationWindow = nullptr
 FOX needs this.
 
FXButton * myBackButton = nullptr
 back button
 
FXButton * myBackButton = nullptr
 back button
 
FXButton * myCancelButton = nullptr
 cancel button
 
FXButton * myCancelButton = nullptr
 cancel button
 
FXVerticalFrame * myContentFrame = nullptr
 content frame
 
FXVerticalFrame * myContentFrame = nullptr
 content frame
 
bool myError = false
 flag to check if there is an error
 
const GNEPythonToolmyPythonTool = nullptr
 python tool to run
 
FXButton * myResetButton = nullptr
 reset button
 
FXButton * myResetButton = nullptr
 reset button
 
Result myResult = Result::CANCEL
 result to indicate if this dialog was closed accepting or rejecting changes
 
Result myResult = Result::CANCEL
 result to indicate if this dialog was closed accepting or rejecting changes
 
FXButton * myRunButton = nullptr
 run button
 
FXButton * myRunButton = nullptr
 run button
 

Private Member Functions

void buildDialog (GUIIcon titleIcon, Buttons buttons)
 build dialog
 
 GNERunPythonToolDialog (const GNERunPythonToolDialog &)=delete
 Invalidated copy constructor.
 
 GNERunPythonToolDialog (const GNERunPythonToolDialog &)=delete
 Invalidated copy constructor.
 
GNERunPythonToolDialogoperator= (const GNERunPythonToolDialog &)=delete
 Invalidated assignment operator.
 
GNERunPythonToolDialogoperator= (const GNERunPythonToolDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

MFXSynchQue< GUIEvent * > myEvents
 List of received events.
 
FXButton * myFocusButton = nullptr
 focus button, used for focusing the default button when dialog is opened
 
OpenType myOpenType
 open type
 
GNEPythonToolmyPythonTool = nullptr
 tool
 
GNERunPythonTool * myRunTool = nullptr
 thread for running tool
 
bool myTesting = false
 flag to indicate if this dialog is being tested using internal test
 
FXText * myText = nullptr
 text
 
FXEX::MFXThreadEvent myThreadEvent
 io-event with the runner thread
 

Resize mode

Result getResult () const
 get result to indicate if this dialog was closed accepting or rejecting changes
 
GNEApplicationWindowgetApplicationWindow () const
 get pointer to the application window
 
FXVerticalFrame * getContentFrame () const
 get content frame
 
Result getResult () const
 get result to indicate if this dialog was closed accepting or rejecting changes
 
GNEApplicationWindowgetApplicationWindow () const
 get pointer to the application window
 
FXVerticalFrame * getContentFrame () const
 get content frame
 
enum class  ResizeMode { STATIC , RESIZABLE }
 
enum class  Result { ACCEPT , CANCEL , ABORT }
 list of possible results when closing the dialog More...
 
enum class  ResizeMode { STATIC , RESIZABLE }
 
enum class  Result { ACCEPT , CANCEL , ABORT }
 list of possible results when closing the dialog More...
 

Detailed Description

Definition at line 35 of file run/GNERunPythonToolDialog.h.

Member Enumeration Documentation

◆ Buttons [1/2]

enum class GNEDialog::Buttons
stronginherited
Enumerator
OK 
YES_NO 
YES_NO_CANCEL 
ACCEPT 
ACCEPT_CANCEL 
ACCEPT_CANCEL_RESET 
SAVE_DONTSAVE_CANCEL 
RUN_CANCEL_RESET 
RUN_ADVANCED_CANCEL 
RERUN_BACK_CLOSE 

Definition at line 41 of file GNEDialog.h.

◆ Buttons [2/2]

enum class GNEDialog::Buttons
stronginherited
Enumerator
OK 
YES_NO 
YES_NO_CANCEL 
ACCEPT 
ACCEPT_CANCEL 
ACCEPT_CANCEL_RESET 
SAVE_DONTSAVE_CANCEL 
RUN_CANCEL_RESET 
RUN_ADVANCED_CANCEL 
RERUN_BACK_CLOSE 

Definition at line 41 of file GNEDialog.h.

◆ OpenType [1/2]

enum class GNEDialog::OpenType
stronginherited

Open dialog type.

Enumerator
MODAL 
NON_MODAL 

Definition at line 55 of file GNEDialog.h.

◆ OpenType [2/2]

enum class GNEDialog::OpenType
stronginherited

Open dialog type.

Enumerator
MODAL 
NON_MODAL 

Definition at line 55 of file GNEDialog.h.

◆ ResizeMode [1/2]

enum class GNEDialog::ResizeMode
stronginherited
Enumerator
STATIC 
RESIZABLE 

Definition at line 61 of file GNEDialog.h.

◆ ResizeMode [2/2]

enum class GNEDialog::ResizeMode
stronginherited
Enumerator
STATIC 
RESIZABLE 

Definition at line 61 of file GNEDialog.h.

◆ Result [1/2]

enum class GNEDialog::Result
stronginherited

list of possible results when closing the dialog

Enumerator
ACCEPT 
CANCEL 
ABORT 

Definition at line 67 of file GNEDialog.h.

◆ Result [2/2]

enum class GNEDialog::Result
stronginherited

list of possible results when closing the dialog

Enumerator
ACCEPT 
CANCEL 
ABORT 

Definition at line 67 of file GNEDialog.h.

Constructor & Destructor Documentation

◆ GNERunPythonToolDialog() [1/4]

GNERunPythonToolDialog::GNERunPythonToolDialog ( GNEApplicationWindow applicationWindow,
GNEPythonTool pythonTool 
)

◆ ~GNERunPythonToolDialog() [1/2]

GNERunPythonToolDialog::~GNERunPythonToolDialog ( )

destructor

Definition at line 41 of file run/GNERunPythonToolDialog.cpp.

◆ GNERunPythonToolDialog() [2/4]

GNERunPythonToolDialog::GNERunPythonToolDialog ( const GNERunPythonToolDialog )
privatedelete

Invalidated copy constructor.

◆ GNERunPythonToolDialog() [3/4]

GNERunPythonToolDialog::GNERunPythonToolDialog ( GNEApplicationWindow applicationWindow,
GNEPythonTool tool 
)

FOX-declaration.

Constructor

◆ ~GNERunPythonToolDialog() [2/2]

GNERunPythonToolDialog::~GNERunPythonToolDialog ( )

destructor

◆ GNERunPythonToolDialog() [4/4]

GNERunPythonToolDialog::GNERunPythonToolDialog ( const GNERunPythonToolDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addEvent()

void GNERunDialog::addEvent ( GUIEvent event,
const bool  signal 
)
inherited

add event in the queue

Definition at line 75 of file GNERunDialog.cpp.

References GNERunDialog::myEvents, GNERunDialog::myThreadEvent, MFXSynchQue< T, Container >::push_back(), and FXEX::MFXThreadEvent::signal().

Referenced by GNEExternalRunner::abort(), and GNEExternalRunner::run().

Here is the caller graph for this function:

◆ buildDialog()

◆ closeDialogAborting() [1/2]

long GNEDialog::closeDialogAborting ( )
protectedinherited

close dialog aborting the changes

Definition at line 259 of file GNEDialog.cpp.

References GNEDialog::ABORT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myResult, and GNEDialog::myTesting.

Referenced by GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), GNEDialog::onCmdAbort(), and GNEDialog::onKeyPress().

Here is the caller graph for this function:

◆ closeDialogAborting() [2/2]

long GNEDialog::closeDialogAborting ( )
protectedinherited

close dialog aborting the changes

Definition at line 259 of file GNEDialog.cpp.

References GNEDialog::ABORT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myResult, and GNEDialog::myTesting.

Referenced by GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), GNEDialog::onCmdAbort(), and GNEDialog::onKeyPress().

Here is the caller graph for this function:

◆ closeDialogAccepting() [1/2]

long GNEDialog::closeDialogAccepting ( )
protectedinherited

◆ closeDialogAccepting() [2/2]

long GNEDialog::closeDialogAccepting ( )
protectedinherited

◆ closeDialogCanceling() [1/2]

◆ closeDialogCanceling() [2/2]

◆ FOX_CONSTRUCTOR() [1/2]

GNERunDialog::FOX_CONSTRUCTOR ( GNERunDialog  )
protectedinherited

FOX needs this.

◆ FOX_CONSTRUCTOR() [2/2]

GNERunPythonToolDialog::FOX_CONSTRUCTOR ( GNERunPythonToolDialog  )
protected

FOX needs this.

◆ getApplicationWindow() [1/2]

◆ getApplicationWindow() [2/2]

◆ getContentFrame() [1/2]

FXVerticalFrame * GNEDialog::getContentFrame ( ) const
inherited

get content frame

Definition at line 99 of file GNEDialog.cpp.

References GNEDialog::myContentFrame.

Referenced by GNEVClassesDialog::GNEVClassesDialog().

Here is the caller graph for this function:

◆ getContentFrame() [2/2]

FXVerticalFrame * GNEDialog::getContentFrame ( ) const
inherited

get content frame

Definition at line 99 of file GNEDialog.cpp.

References GNEDialog::myContentFrame.

Referenced by GNEVClassesDialog::GNEVClassesDialog().

Here is the caller graph for this function:

◆ getResult() [1/2]

GNEDialog::Result GNEDialog::getResult ( ) const
inherited

get result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 87 of file GNEDialog.cpp.

References GNEDialog::myResult.

Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().

Here is the caller graph for this function:

◆ getResult() [2/2]

GNEDialog::Result GNEDialog::getResult ( ) const
inherited

get result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 87 of file GNEDialog.cpp.

References GNEDialog::myResult.

Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().

Here is the caller graph for this function:

◆ getRunCommand()

std::string GNERunPythonToolDialog::getRunCommand ( ) const
virtual

get run command

Implements GNERunDialog.

Definition at line 51 of file run/GNERunPythonToolDialog.cpp.

References GNEPythonTool::getCommand(), and myPythonTool.

◆ onCmdAbort()

long GNERunPythonToolDialog::onCmdAbort ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press abort button

Reimplemented from GNERunDialog.

Definition at line 141 of file tools/GNERunPythonToolDialog.cpp.

References myRunTool.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdAccept() [1/2]

long GNERunPythonToolDialog::onCmdAccept ( FXObject *  obj,
FXSelector  ,
void *   
)
virtual

◆ onCmdAccept() [2/2]

long GNERunPythonToolDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press close button

Implements GNERunDialog.

◆ onCmdAdvanced()

long GNEDialog::onCmdAdvanced ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

called when advanced button is pressed (must be reimplemented in children)

Reimplemented in GNENetgenerateDialog.

Definition at line 141 of file GNEDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBack() [1/2]

long GNERunPythonToolDialog::onCmdBack ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press back button

Implements GNERunDialog.

Definition at line 57 of file run/GNERunPythonToolDialog.cpp.

References GNEPythonTool::getMenuCommand(), MID_GNE_OPENPYTHONTOOLDIALOG, GNEDialog::myApplicationWindow, and myPythonTool.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBack() [2/2]

long GNERunPythonToolDialog::onCmdBack ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press back button

Implements GNERunDialog.

◆ onCmdCancel()

long GNERunPythonToolDialog::onCmdCancel ( FXObject *  obj,
FXSelector  ,
void *   
)
virtual

event after press cancel button

Reimplemented from GNEDialog.

Definition at line 171 of file tools/GNERunPythonToolDialog.cpp.

References myRunTool.

◆ onCmdRerun()

long GNERunPythonToolDialog::onCmdRerun ( FXObject *  ,
FXSelector  ,
void *   
)

event after press rerun button

Definition at line 149 of file tools/GNERunPythonToolDialog.cpp.

References myPythonTool, myRunTool, and myText.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

long GNEDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

◆ onCmdRun()

long GNERunDialog::onCmdRun ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

◆ onCmdSaveLog()

long GNERunPythonToolDialog::onCmdSaveLog ( FXObject *  ,
FXSelector  ,
void *   
)

event after press save button

Definition at line 127 of file tools/GNERunPythonToolDialog.cpp.

References OutputDevice::close(), OutputDevice::getDevice(), and myText.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress() [1/2]

long GNEDialog::onKeyPress ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)
inherited

called when user presses a key on the dialog

Definition at line 147 of file GNEDialog.cpp.

References GNEDialog::closeDialogAborting(), GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress() [2/2]

long GNEDialog::onKeyPress ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)
inherited

called when user presses a key on the dialog

Definition at line 147 of file GNEDialog.cpp.

References GNEDialog::closeDialogAborting(), GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease() [1/2]

long GNEDialog::onKeyRelease ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)
inherited

called when user releases a key on the dialog

Definition at line 163 of file GNEDialog.cpp.

References GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease() [2/2]

long GNEDialog::onKeyRelease ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)
inherited

called when user releases a key on the dialog

Definition at line 163 of file GNEDialog.cpp.

References GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onThreadEvent()

long GNERunPythonToolDialog::onThreadEvent ( FXObject *  ,
FXSelector  ,
void *   
)

called when the thread signals an event

Definition at line 193 of file tools/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().

Here is the caller graph for this function:

◆ openDialog() [1/2]

void GNEDialog::openDialog ( FXWindow *  focusableElement = nullptr)
protectedinherited

open dialog

Definition at line 173 of file GNEDialog.cpp.

References InternalTestStep::DialogArgument::ABORT, InternalTestStep::DialogArgument::ACCEPT, InternalTestStep::DialogArgument::CANCEL, InternalTestStep::DIALOG, GNEApplicationWindow::getInternalTest(), GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myFocusButton, GNEDialog::myOpenType, GNEDialog::myTesting, GNEDialog::onCmdAbort(), GNEDialog::onCmdAccept(), GNEDialog::onCmdCancel(), GNEDialog::onCmdReset(), InternalTestStep::DialogArgument::RESET, GNEDialog::runInternalTest(), and InternalTest::setNextStep().

Referenced by GNEAboutDialog::GNEAboutDialog(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GNEBasicDialog::GNEBasicDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFileDialog::GNEFileDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixAdditionalElementsDialog::GNEFixAdditionalElementsDialog(), GNEFixDemandElementsDialog::GNEFixDemandElementsDialog(), GNEFixNetworkElements::GNEFixNetworkElements(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNERerouterDialog::GNERerouterDialog(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), GNEVClassesDialog::GNEVClassesDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ openDialog() [2/2]

void GNEDialog::openDialog ( FXWindow *  focusableElement = nullptr)
protectedinherited

open dialog

Definition at line 173 of file GNEDialog.cpp.

References InternalTestStep::DialogArgument::ABORT, InternalTestStep::DialogArgument::ACCEPT, InternalTestStep::DialogArgument::CANCEL, InternalTestStep::DIALOG, GNEApplicationWindow::getInternalTest(), GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myFocusButton, GNEDialog::myOpenType, GNEDialog::myTesting, GNEDialog::onCmdAbort(), GNEDialog::onCmdAccept(), GNEDialog::onCmdCancel(), GNEDialog::onCmdReset(), InternalTestStep::DialogArgument::RESET, GNEDialog::runInternalTest(), and InternalTest::setNextStep().

Referenced by GNEAboutDialog::GNEAboutDialog(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GNEBasicDialog::GNEBasicDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFileDialog::GNEFileDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixAdditionalElementsDialog::GNEFixAdditionalElementsDialog(), GNEFixDemandElementsDialog::GNEFixDemandElementsDialog(), GNEFixNetworkElements::GNEFixNetworkElements(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNERerouterDialog::GNERerouterDialog(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), GNEVClassesDialog::GNEVClassesDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ operator=() [1/2]

GNERunPythonToolDialog & GNERunPythonToolDialog::operator= ( const GNERunPythonToolDialog )
privatedelete

Invalidated assignment operator.

◆ operator=() [2/2]

GNERunPythonToolDialog & GNERunPythonToolDialog::operator= ( const GNERunPythonToolDialog )
privatedelete

Invalidated assignment operator.

◆ runInternalTest() [1/2]

void GNERunPythonToolDialog::runInternalTest ( const InternalTestStep::DialogArgument dialogArgument)
virtual

run internal test

Implements GNERunDialog.

Definition at line 45 of file run/GNERunPythonToolDialog.cpp.

◆ runInternalTest() [2/2]

void GNERunPythonToolDialog::runInternalTest ( const InternalTestStep::DialogArgument dialogArgument)
virtual

run internal test

Implements GNERunDialog.

◆ updateDialog()

void GNERunPythonToolDialog::updateDialog ( )
protected

update toolDialog

Definition at line 106 of file tools/GNERunPythonToolDialog.cpp.

Referenced by onThreadEvent().

Here is the caller graph for this function:

◆ updateDialogButtons()

void GNERunDialog::updateDialogButtons ( )
protectedinherited

update dialog buttons

Definition at line 199 of file GNERunDialog.cpp.

References GNEApplicationWindow::getExternalRunner(), GUIIconSubSys::getIcon(), GNEExternalRunner::isRunning(), GNEDialog::myAcceptButton, GNEDialog::myApplicationWindow, GNEDialog::myBackButton, GNEDialog::myRunButton, START, STOP, and TL.

Referenced by GNERunDialog::onCmdRun(), and GNERunDialog::onThreadEvent().

Here is the caller graph for this function:

◆ updateIcon() [1/2]

void GNEDialog::updateIcon ( GUIIcon  newIcon)
protectedinherited

update icon

Definition at line 281 of file GNEDialog.cpp.

References GUIIconSubSys::getIcon().

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

◆ updateIcon() [2/2]

void GNEDialog::updateIcon ( GUIIcon  newIcon)
protectedinherited

update icon

Definition at line 281 of file GNEDialog.cpp.

References GUIIconSubSys::getIcon().

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

◆ updateTitle() [1/2]

void GNEDialog::updateTitle ( const std::string &  newTitle)
protectedinherited

update title

Definition at line 275 of file GNEDialog.cpp.

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

◆ updateTitle() [2/2]

void GNEDialog::updateTitle ( const std::string &  newTitle)
protectedinherited

update title

Definition at line 275 of file GNEDialog.cpp.

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

Field Documentation

◆ myAbortButton [1/2]

FXButton* GNEDialog::myAbortButton = nullptr
protectedinherited

abort button

Definition at line 144 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myAbortButton [2/2]

FXButton* GNEDialog::myAbortButton = nullptr
protectedinherited

abort button

Definition at line 144 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myAcceptButton [1/2]

FXButton* GNEDialog::myAcceptButton = nullptr
protectedinherited

accept button

Definition at line 138 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), GNEFileDialog::GNEFileDialog(), and GNERunDialog::updateDialogButtons().

◆ myAcceptButton [2/2]

FXButton* GNEDialog::myAcceptButton = nullptr
protectedinherited

accept button

Definition at line 138 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), GNEFileDialog::GNEFileDialog(), and GNERunDialog::updateDialogButtons().

◆ myAdvancedButton [1/2]

FXButton* GNEDialog::myAdvancedButton = nullptr
protectedinherited

advanced button

Definition at line 156 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), and GNENetgenerateDialog::updateRunButtons().

◆ myAdvancedButton [2/2]

FXButton* GNEDialog::myAdvancedButton = nullptr
protectedinherited

advanced button

Definition at line 156 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), and GNENetgenerateDialog::updateRunButtons().

◆ myApplicationWindow [1/2]

◆ myApplicationWindow [2/2]

◆ myBackButton [1/2]

FXButton* GNEDialog::myBackButton = nullptr
protectedinherited

back button

Definition at line 153 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), and GNERunDialog::updateDialogButtons().

◆ myBackButton [2/2]

FXButton* GNEDialog::myBackButton = nullptr
protectedinherited

back button

Definition at line 153 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), and GNERunDialog::updateDialogButtons().

◆ myCancelButton [1/2]

FXButton* GNEDialog::myCancelButton = nullptr
protectedinherited

cancel button

Definition at line 141 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myCancelButton [2/2]

FXButton* GNEDialog::myCancelButton = nullptr
protectedinherited

cancel button

Definition at line 141 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myContentFrame [1/2]

◆ myContentFrame [2/2]

◆ myError

bool GNERunDialog::myError = false
protectedinherited

flag to check if there is an error

Definition at line 95 of file GNERunDialog.h.

Referenced by onCmdAccept(), GNERunDialog::onCmdAccept(), GNERunDialog::onCmdRun(), and GNERunDialog::onThreadEvent().

◆ myEvents

MFXSynchQue<GUIEvent*> GNERunPythonToolDialog::myEvents
private

List of received events.

Definition at line 97 of file tools/GNERunPythonToolDialog.h.

Referenced by onThreadEvent().

◆ myFocusButton

FXButton* GNEDialog::myFocusButton = nullptr
privateinherited

focus button, used for focusing the default button when dialog is opened

Definition at line 181 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog(), and GNEDialog::openDialog().

◆ myOpenType

OpenType GNEDialog::myOpenType
privateinherited

◆ myPythonTool [1/2]

const GNEPythonTool* GNERunPythonToolDialog::myPythonTool = nullptr
protected

python tool to run

Definition at line 63 of file run/GNERunPythonToolDialog.h.

Referenced by getRunCommand(), onCmdAccept(), onCmdBack(), and onCmdRerun().

◆ myPythonTool [2/2]

GNEPythonTool* GNERunPythonToolDialog::myPythonTool = nullptr
private

tool

Definition at line 88 of file tools/GNERunPythonToolDialog.h.

◆ myResetButton [1/2]

FXButton* GNEDialog::myResetButton = nullptr
protectedinherited

reset button

Definition at line 147 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myResetButton [2/2]

FXButton* GNEDialog::myResetButton = nullptr
protectedinherited

reset button

Definition at line 147 of file GNEDialog.h.

Referenced by GNEDialog::buildDialog().

◆ myResult [1/2]

Result GNEDialog::myResult = Result::CANCEL
protectedinherited

result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 159 of file GNEDialog.h.

Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), and GNEDialog::getResult().

◆ myResult [2/2]

Result GNEDialog::myResult = Result::CANCEL
protectedinherited

result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 159 of file GNEDialog.h.

Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), and GNEDialog::getResult().

◆ myRunButton [1/2]

FXButton* GNEDialog::myRunButton = nullptr
protectedinherited

◆ myRunButton [2/2]

FXButton* GNEDialog::myRunButton = nullptr
protectedinherited

◆ myRunTool

GNERunPythonTool* GNERunPythonToolDialog::myRunTool = nullptr
private

thread for running tool

Definition at line 91 of file tools/GNERunPythonToolDialog.h.

Referenced by onCmdAbort(), onCmdCancel(), and onCmdRerun().

◆ myTesting

bool GNEDialog::myTesting = false
privateinherited

flag to indicate if this dialog is being tested using internal test

Definition at line 187 of file GNEDialog.h.

Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEDialog::onKeyPress(), GNEDialog::onKeyRelease(), and GNEDialog::openDialog().

◆ myText

FXText* GNERunPythonToolDialog::myText = nullptr
private

text

Definition at line 94 of file tools/GNERunPythonToolDialog.h.

Referenced by onCmdAccept(), onCmdRerun(), onCmdSaveLog(), and onThreadEvent().

◆ myThreadEvent

FXEX::MFXThreadEvent GNERunPythonToolDialog::myThreadEvent
private

io-event with the runner thread

Definition at line 100 of file tools/GNERunPythonToolDialog.h.


The documentation for this class was generated from the following files: