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

#include <GNERunNetgenerateDialog.h>

Inheritance diagram for GNERunNetgenerateDialog:
[legend]
Collaboration diagram for GNERunNetgenerateDialog:
[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_OK , OK_COPY_REPORT
}
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_OK , OK_COPY_REPORT
}
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
 GNERunNetgenerateDialog (GNEApplicationWindow *applicationWindow, const OptionsCont *netgenerateOptions)
 Constructor.
 GNERunNetgenerateDialog (GNEApplicationWindow *applicationWindow, const OptionsCont *netgenerateOptions)
 FOX-declaration.
void runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)
 run internal test
void runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)
 run internal test
 ~GNERunNetgenerateDialog ()
 destructor
 ~GNERunNetgenerateDialog ()
 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 onCmdAccept (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
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 depending of Buttons)
virtual long onCmdAdvanced (FXObject *, FXSelector, void *)
 called when advanced button is pressed (must be reimplemented in children depending of Buttons)
virtual long onCmdCopy (FXObject *, FXSelector, void *)
 called when copy button is pressed (must be reimplemented in children depending of Buttons)
virtual long onCmdReport (FXObject *, FXSelector, void *)
 called when report button is pressed (must be reimplemented in children depending of Buttons)
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 (GNERunNetgenerateDialog)
 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
const bool myCloseIfSucess = false
 flag to close dialog automatically if sucess
FXVerticalFrame * myContentFrame = nullptr
 content frame
FXVerticalFrame * myContentFrame = nullptr
 content frame
FXButton * myCopyButton = nullptr
 copy button
FXButton * myCopyButton = nullptr
 copy button
const OptionsContmyNetgenerateOptions = nullptr
 netgenerate options
FXButton * myReportButton = nullptr
 report button
FXButton * myReportButton = nullptr
 report button
FXButton * myResetButton = nullptr
 reset button
FXButton * myResetButton = nullptr
 reset button
FXWindow * myRestoringFocusWindow = nullptr
 FXWindows that restoring focus window.
FXWindow * myRestoringFocusWindow = nullptr
 FXWindows that restoring focus window.
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
DialogType myType = DialogType::DEFAULT
 dialog type
DialogType myType = DialogType::DEFAULT
 dialog type
bool myWarning = false
 flag to check if there is a warning

Private Member Functions

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

Private Attributes

bool myError = false
 flag to check if there is an error
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
GNERunNetgenerate * myRunNetgenerate = 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
void setRestoringFocusWindow (FXWindow *window)
 wet FXWindows uses for restoring focus
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
void setRestoringFocusWindow (FXWindow *window)
 wet FXWindows uses for restoring focus
enum class  ResizeMode { STATIC , RESIZABLE }
enum class  Result {
  ACCEPT , CANCEL , ABORT , ACCEPT_ALL ,
  CANCEL_ALL
}
 list of possible results when closing the dialog More...
enum class  ResizeMode { STATIC , RESIZABLE }
enum class  Result {
  ACCEPT , CANCEL , ABORT , ACCEPT_ALL ,
  CANCEL_ALL
}
 list of possible results when closing the dialog More...

Detailed Description

Definition at line 35 of file run/GNERunNetgenerateDialog.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_OK 
OK_COPY_REPORT 

Definition at line 43 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_OK 
OK_COPY_REPORT 

Definition at line 43 of file GNEDialog.h.

◆ OpenType [1/2]

enum class GNEDialog::OpenType
stronginherited

Open dialog type.

Enumerator
MODAL 
NON_MODAL 

Definition at line 58 of file GNEDialog.h.

◆ OpenType [2/2]

enum class GNEDialog::OpenType
stronginherited

Open dialog type.

Enumerator
MODAL 
NON_MODAL 

Definition at line 58 of file GNEDialog.h.

◆ ResizeMode [1/2]

enum class GNEDialog::ResizeMode
stronginherited
Enumerator
STATIC 
RESIZABLE 

Definition at line 64 of file GNEDialog.h.

◆ ResizeMode [2/2]

enum class GNEDialog::ResizeMode
stronginherited
Enumerator
STATIC 
RESIZABLE 

Definition at line 64 of file GNEDialog.h.

◆ Result [1/2]

enum class GNEDialog::Result
stronginherited

list of possible results when closing the dialog

Enumerator
ACCEPT 
CANCEL 
ABORT 
ACCEPT_ALL 
CANCEL_ALL 

Definition at line 70 of file GNEDialog.h.

◆ Result [2/2]

enum class GNEDialog::Result
stronginherited

list of possible results when closing the dialog

Enumerator
ACCEPT 
CANCEL 
ABORT 
ACCEPT_ALL 
CANCEL_ALL 

Definition at line 70 of file GNEDialog.h.

Constructor & Destructor Documentation

◆ GNERunNetgenerateDialog() [1/4]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( GNEApplicationWindow * applicationWindow,
const OptionsCont * netgenerateOptions )

Constructor.

Definition at line 30 of file run/GNERunNetgenerateDialog.cpp.

References GNEApplicationWindow::getExternalRunner(), GNERunDialog::GNERunDialog(), myNetgenerateOptions, GNEDialog::openDialog(), and TL.

Referenced by FOX_CONSTRUCTOR(), GNERunNetgenerateDialog(), and operator=().

Here is the caller graph for this function:

◆ ~GNERunNetgenerateDialog() [1/2]

GNERunNetgenerateDialog::~GNERunNetgenerateDialog ( )

destructor

Definition at line 42 of file run/GNERunNetgenerateDialog.cpp.

◆ GNERunNetgenerateDialog() [2/4]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( const GNERunNetgenerateDialog & )
privatedelete

Invalidated copy constructor.

References GNERunNetgenerateDialog().

◆ GNERunNetgenerateDialog() [3/4]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( GNEApplicationWindow * applicationWindow,
const OptionsCont * netgenerateOptions )

FOX-declaration.

Constructor

◆ ~GNERunNetgenerateDialog() [2/2]

GNERunNetgenerateDialog::~GNERunNetgenerateDialog ( )

destructor

◆ GNERunNetgenerateDialog() [4/4]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( const GNERunNetgenerateDialog & )
privatedelete

Invalidated copy constructor.

References GNERunNetgenerateDialog().

Member Function Documentation

◆ addEvent()

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

add event in the queue

Definition at line 76 of file GNERunDialog.cpp.

References myEvents, and myThreadEvent.

◆ buildDialog()

◆ closeDialogAborting() [1/2]

long GNEDialog::closeDialogAborting ( )
protectedinherited

close dialog aborting the changes

Definition at line 295 of file GNEDialog.cpp.

References ABORT, MODAL, myApplicationWindow, myOpenType, myRestoringFocusWindow, myResult, and myTesting.

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

Here is the caller graph for this function:

◆ closeDialogAborting() [2/2]

long GNEDialog::closeDialogAborting ( )
protectedinherited

close dialog aborting the changes

Definition at line 295 of file GNEDialog.cpp.

References ABORT, MODAL, myApplicationWindow, myOpenType, myRestoringFocusWindow, myResult, and myTesting.

Referenced by onCmdAbort(), GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), and 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.

References GNERunDialog().

◆ FOX_CONSTRUCTOR() [2/2]

GNERunNetgenerateDialog::FOX_CONSTRUCTOR ( GNERunNetgenerateDialog )
protected

FOX needs this.

References GNERunNetgenerateDialog().

◆ getApplicationWindow() [1/2]

GNEApplicationWindow * GNEDialog::getApplicationWindow ( ) const
inherited

get pointer to the application window

Definition at line 102 of file GNEDialog.cpp.

References myApplicationWindow.

Referenced by GNEPythonToolDialog::buildArguments().

Here is the caller graph for this function:

◆ getApplicationWindow() [2/2]

GNEApplicationWindow * GNEDialog::getApplicationWindow ( ) const
inherited

get pointer to the application window

Definition at line 102 of file GNEDialog.cpp.

References myApplicationWindow.

Referenced by GNEPythonToolDialog::buildArguments().

Here is the caller graph for this function:

◆ getContentFrame() [1/2]

FXVerticalFrame * GNEDialog::getContentFrame ( ) const
inherited

get content frame

Definition at line 108 of file GNEDialog.cpp.

References myContentFrame.

Referenced by GNEColorDialog::GNEColorDialog(), and GNEVClassesDialog::GNEVClassesDialog().

Here is the caller graph for this function:

◆ getContentFrame() [2/2]

FXVerticalFrame * GNEDialog::getContentFrame ( ) const
inherited

get content frame

Definition at line 108 of file GNEDialog.cpp.

References myContentFrame.

Referenced by GNEColorDialog::GNEColorDialog(), and 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 96 of file GNEDialog.cpp.

References myResult.

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

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 96 of file GNEDialog.cpp.

References myResult.

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

Here is the caller graph for this function:

◆ getRunCommand()

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

get run command

Implements GNERunDialog.

Definition at line 52 of file run/GNERunNetgenerateDialog.cpp.

References StringUtils::escapeShell(), and myNetgenerateOptions.

◆ onCmdAbort()

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

event after press abort button

Reimplemented from GNERunDialog.

Definition at line 134 of file tools/GNERunNetgenerateDialog.cpp.

References myRunNetgenerate.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdAccept() [1/2]

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

◆ onCmdAccept() [2/2]

long GNERunNetgenerateDialog::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 depending of Buttons)

Reimplemented in GNENetgenerateDialog.

Definition at line 156 of file GNEDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBack() [1/2]

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

event after press back button

Implements GNERunDialog.

Definition at line 97 of file run/GNERunNetgenerateDialog.cpp.

References GNEDialog::closeDialogCanceling(), MID_GNE_NETGENERATE, and GNEDialog::myApplicationWindow.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBack() [2/2]

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

event after press back button

Implements GNERunDialog.

◆ onCmdCancel()

long GNERunNetgenerateDialog::onCmdCancel ( FXObject * ,
FXSelector ,
void *  )
virtual

event after press cancel button

Reimplemented from GNEDialog.

Definition at line 181 of file tools/GNERunNetgenerateDialog.cpp.

References myRunNetgenerate.

◆ onCmdCopy()

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

called when copy button is pressed (must be reimplemented in children depending of Buttons)

Reimplemented in GNECrashDialog.

Definition at line 162 of file GNEDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReport()

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

called when report button is pressed (must be reimplemented in children depending of Buttons)

Reimplemented in GNECrashDialog.

Definition at line 168 of file GNEDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRerun()

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

event after press rerun button

Definition at line 142 of file tools/GNERunNetgenerateDialog.cpp.

References myError, myNetgenerateOptions, myRunNetgenerate, 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

event after press rerun button

Reimplemented from GNEDialog.

Definition at line 96 of file GNERunDialog.cpp.

References GNEDialog::myApplicationWindow, myError, myText, myWarning, and updateDialogButtons().

◆ onCmdSaveLog()

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

event after press save button

Definition at line 120 of file tools/GNERunNetgenerateDialog.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 174 of file GNEDialog.cpp.

References closeDialogAborting(), myApplicationWindow, and 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 174 of file GNEDialog.cpp.

References closeDialogAborting(), myApplicationWindow, and 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 190 of file GNEDialog.cpp.

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 190 of file GNEDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onThreadEvent()

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

called when the thread signals an event

Definition at line 191 of file tools/GNERunNetgenerateDialog.cpp.

References ERROR_OCCURRED, GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), MESSAGE_OCCURRED, myError, myEvents, myText, OUTPUT_OCCURRED, TOOL_ENDED, and updateDialog().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog() [1/2]

◆ openDialog() [2/2]

◆ operator=() [1/2]

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

Invalidated assignment operator.

References GNERunNetgenerateDialog().

◆ operator=() [2/2]

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

Invalidated assignment operator.

References GNERunNetgenerateDialog().

◆ runInternalTest() [1/2]

void GNERunNetgenerateDialog::runInternalTest ( const InternalTestStep::DialogArgument * dialogArgument)
virtual

run internal test

Implements GNERunDialog.

Definition at line 46 of file run/GNERunNetgenerateDialog.cpp.

◆ runInternalTest() [2/2]

void GNERunNetgenerateDialog::runInternalTest ( const InternalTestStep::DialogArgument * dialogArgument)
virtual

run internal test

Implements GNERunDialog.

◆ setRestoringFocusWindow() [1/2]

void GNEDialog::setRestoringFocusWindow ( FXWindow * window)
inherited

wet FXWindows uses for restoring focus

Definition at line 114 of file GNEDialog.cpp.

References myRestoringFocusWindow.

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

◆ setRestoringFocusWindow() [2/2]

void GNEDialog::setRestoringFocusWindow ( FXWindow * window)
inherited

wet FXWindows uses for restoring focus

Definition at line 114 of file GNEDialog.cpp.

References myRestoringFocusWindow.

Referenced by GNEFileDialog::GNEFileDialog().

Here is the caller graph for this function:

◆ updateDialog()

void GNERunNetgenerateDialog::updateDialog ( )
protected

update toolDialog

Definition at line 99 of file tools/GNERunNetgenerateDialog.cpp.

Referenced by onThreadEvent().

Here is the caller graph for this function:

◆ updateDialogButtons()

void GNERunDialog::updateDialogButtons ( )
protectedinherited

update dialog buttons

Definition at line 192 of file GNERunDialog.cpp.

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

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

Here is the caller graph for this function:

◆ updateIcon() [1/2]

void GNEDialog::updateIcon ( GUIIcon newIcon)
protectedinherited

update icon

Definition at line 321 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 321 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 315 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 315 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 161 of file GNEDialog.h.

Referenced by buildDialog().

◆ myAbortButton [2/2]

FXButton* GNEDialog::myAbortButton = nullptr
protectedinherited

abort button

Definition at line 161 of file GNEDialog.h.

Referenced by buildDialog().

◆ myAcceptButton [1/2]

FXButton* GNEDialog::myAcceptButton = nullptr
protectedinherited

◆ myAcceptButton [2/2]

FXButton* GNEDialog::myAcceptButton = nullptr
protectedinherited

◆ myAdvancedButton [1/2]

FXButton* GNEDialog::myAdvancedButton = nullptr
protectedinherited

advanced button

Definition at line 173 of file GNEDialog.h.

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

◆ myAdvancedButton [2/2]

FXButton* GNEDialog::myAdvancedButton = nullptr
protectedinherited

advanced button

Definition at line 173 of file GNEDialog.h.

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

◆ myApplicationWindow [1/2]

◆ myApplicationWindow [2/2]

◆ myBackButton [1/2]

FXButton* GNEDialog::myBackButton = nullptr
protectedinherited

back button

Definition at line 170 of file GNEDialog.h.

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

◆ myBackButton [2/2]

FXButton* GNEDialog::myBackButton = nullptr
protectedinherited

back button

Definition at line 170 of file GNEDialog.h.

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

◆ myCancelButton [1/2]

FXButton* GNEDialog::myCancelButton = nullptr
protectedinherited

cancel button

Definition at line 158 of file GNEDialog.h.

Referenced by buildDialog().

◆ myCancelButton [2/2]

FXButton* GNEDialog::myCancelButton = nullptr
protectedinherited

cancel button

Definition at line 158 of file GNEDialog.h.

Referenced by buildDialog().

◆ myCloseIfSucess

const bool GNERunDialog::myCloseIfSucess = false
protectedinherited

flag to close dialog automatically if sucess

Definition at line 86 of file GNERunDialog.h.

Referenced by GNERunDialog(), and onThreadEvent().

◆ myContentFrame [1/2]

◆ myContentFrame [2/2]

◆ myCopyButton [1/2]

FXButton* GNEDialog::myCopyButton = nullptr
protectedinherited

copy button

Definition at line 176 of file GNEDialog.h.

Referenced by buildDialog(), and GNECrashDialog::GNECrashDialog().

◆ myCopyButton [2/2]

FXButton* GNEDialog::myCopyButton = nullptr
protectedinherited

copy button

Definition at line 176 of file GNEDialog.h.

Referenced by buildDialog(), and GNECrashDialog::GNECrashDialog().

◆ myError

bool GNERunNetgenerateDialog::myError = false
private

flag to check if there is an error

Definition at line 103 of file tools/GNERunNetgenerateDialog.h.

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

◆ myEvents

MFXSynchQue<GUIEvent*> GNERunNetgenerateDialog::myEvents
private

List of received events.

Definition at line 97 of file tools/GNERunNetgenerateDialog.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 207 of file GNEDialog.h.

Referenced by buildDialog().

◆ myNetgenerateOptions

const OptionsCont * GNERunNetgenerateDialog::myNetgenerateOptions = nullptr
protected

netgenerate options

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

Referenced by getRunCommand(), GNERunNetgenerateDialog(), and onCmdRerun().

◆ myOpenType

OpenType GNEDialog::myOpenType
privateinherited

open type

Definition at line 210 of file GNEDialog.h.

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

◆ myReportButton [1/2]

FXButton* GNEDialog::myReportButton = nullptr
protectedinherited

report button

Definition at line 179 of file GNEDialog.h.

Referenced by buildDialog().

◆ myReportButton [2/2]

FXButton* GNEDialog::myReportButton = nullptr
protectedinherited

report button

Definition at line 179 of file GNEDialog.h.

Referenced by buildDialog().

◆ myResetButton [1/2]

FXButton* GNEDialog::myResetButton = nullptr
protectedinherited

reset button

Definition at line 164 of file GNEDialog.h.

Referenced by buildDialog().

◆ myResetButton [2/2]

FXButton* GNEDialog::myResetButton = nullptr
protectedinherited

reset button

Definition at line 164 of file GNEDialog.h.

Referenced by buildDialog().

◆ myRestoringFocusWindow [1/2]

FXWindow* GNEDialog::myRestoringFocusWindow = nullptr
protectedinherited

FXWindows that restoring focus window.

Definition at line 149 of file GNEDialog.h.

Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and setRestoringFocusWindow().

◆ myRestoringFocusWindow [2/2]

FXWindow* GNEDialog::myRestoringFocusWindow = nullptr
protectedinherited

FXWindows that restoring focus window.

Definition at line 149 of file GNEDialog.h.

Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and setRestoringFocusWindow().

◆ myResult [1/2]

Result GNEDialog::myResult = Result::CANCEL
protectedinherited

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

Definition at line 185 of file GNEDialog.h.

Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().

◆ myResult [2/2]

Result GNEDialog::myResult = Result::CANCEL
protectedinherited

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

Definition at line 185 of file GNEDialog.h.

Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().

◆ myRunButton [1/2]

FXButton* GNEDialog::myRunButton = nullptr
protectedinherited

◆ myRunButton [2/2]

FXButton* GNEDialog::myRunButton = nullptr
protectedinherited

◆ myRunNetgenerate

GNERunNetgenerate* GNERunNetgenerateDialog::myRunNetgenerate = nullptr
private

thread for running tool

Definition at line 88 of file tools/GNERunNetgenerateDialog.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 213 of file GNEDialog.h.

Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and onKeyPress().

◆ myText

FXText* GNERunNetgenerateDialog::myText = nullptr
private

text

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

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

◆ myThreadEvent

FXEX::MFXThreadEvent GNERunNetgenerateDialog::myThreadEvent
private

io-event with the runner thread

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

◆ myType [1/2]

DialogType GNEDialog::myType = DialogType::DEFAULT
protectedinherited

dialog type

Definition at line 182 of file GNEDialog.h.

Referenced by GNEDialog(), and GNEDialog().

◆ myType [2/2]

DialogType GNEDialog::myType = DialogType::DEFAULT
protectedinherited

dialog type

Definition at line 182 of file GNEDialog.h.

Referenced by GNEDialog(), and GNEDialog().

◆ myWarning

bool GNERunDialog::myWarning = false
protectedinherited

flag to check if there is a warning

Definition at line 98 of file GNERunDialog.h.

Referenced by onCmdRun(), and onThreadEvent().


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