![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXDialogBox.h>
Public Member Functions | |
| MFXDialogBox (FXApp *a, const FXString &name, FXuint opts=DECOR_TITLE|DECOR_BORDER, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=10, FXint pr=10, FXint pt=10, FXint pb=10, FXint hs=4, FXint vs=4) | |
| Construct free-floating dialog. | |
| MFXDialogBox (FXWindow *owner, const FXString &name, FXuint opts=DECOR_TITLE|DECOR_BORDER, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=10, FXint pr=10, FXint pt=10, FXint pb=10, FXint hs=4, FXint vs=4) | |
| Construct dialog which will always float over the owner window. | |
| FXuint | openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR) |
| Run modal invocation of the dialog. | |
| virtual void | runInternalTest (const InternalTestStep::DialogTest *dialogTest) |
| run internal test | |
FOX-callbacks | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| called when accept button is pressed | |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| called when cancel button is pressed (or dialog is closed) | |
| long | onCmdInternalTest (FXObject *, FXSelector, void *ptr) |
| event used in internal tests | |
Protected Member Functions | |
| MFXDialogBox () | |
| FOX needs this. | |
Protected Attributes | |
| bool | myTesting = false |
| flag to indicate if this dialog is being tested using internal test | |
Private Member Functions | |
| FXuint | execute (FXuint placement=PLACEMENT_CURSOR) |
| make execute private | |
| MFXDialogBox (const MFXDialogBox &)=delete | |
| Invalidated copy constructor. | |
| MFXDialogBox & | operator= (const MFXDialogBox &src)=delete |
| Invalidated assignment operator. | |
Definition at line 31 of file MFXDialogBox.h.
| MFXDialogBox::MFXDialogBox | ( | FXApp * | a, |
| const FXString & | name, | ||
| FXuint | opts = DECOR_TITLE | DECOR_BORDER, |
||
| FXint | x = 0, |
||
| FXint | y = 0, |
||
| FXint | w = 0, |
||
| FXint | h = 0, |
||
| FXint | pl = 10, |
||
| FXint | pr = 10, |
||
| FXint | pt = 10, |
||
| FXint | pb = 10, |
||
| FXint | hs = 4, |
||
| FXint | vs = 4 |
||
| ) |
Construct free-floating dialog.
Definition at line 51 of file MFXDialogBox.cpp.
| MFXDialogBox::MFXDialogBox | ( | FXWindow * | owner, |
| const FXString & | name, | ||
| FXuint | opts = DECOR_TITLE | DECOR_BORDER, |
||
| FXint | x = 0, |
||
| FXint | y = 0, |
||
| FXint | w = 0, |
||
| FXint | h = 0, |
||
| FXint | pl = 10, |
||
| FXint | pr = 10, |
||
| FXint | pt = 10, |
||
| FXint | pb = 10, |
||
| FXint | hs = 4, |
||
| FXint | vs = 4 |
||
| ) |
Construct dialog which will always float over the owner window.
Definition at line 57 of file MFXDialogBox.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 63 of file MFXDialogBox.h.
Referenced by GNEMultipleParametersDialog::ParametersOperations::onCmdHelpParameter(), GNESingleParametersDialog::ParametersOperations::onCmdHelpParameter(), and GNEVTypeDistributionsDialog::ParametersOperations::onCmdHelpParameter().
|
privatedelete |
Invalidated copy constructor.
|
private |
make execute private
Definition at line 128 of file MFXDialogBox.cpp.
| long MFXDialogBox::onCmdAccept | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when accept button is pressed
Definition at line 93 of file MFXDialogBox.cpp.
References myTesting.
Referenced by FXDEFMAP(), and GNEAllowVClassesDialog::onCmdAccept().
| long MFXDialogBox::onCmdCancel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when cancel button is pressed (or dialog is closed)
Definition at line 104 of file MFXDialogBox.cpp.
References myTesting.
Referenced by FXDEFMAP(), FXDEFMAP(), GNEAllowVClassesDialog::onCmdAccept(), and GNEAllowVClassesDialog::onCmdCancel().
| long MFXDialogBox::onCmdInternalTest | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
event used in internal tests
Definition at line 115 of file MFXDialogBox.cpp.
References runInternalTest().
Referenced by FXDEFMAP().
| FXuint MFXDialogBox::openModalDialog | ( | InternalTest * | internalTests, |
| FXuint | placement = PLACEMENT_CURSOR |
||
| ) |
Run modal invocation of the dialog.
Definition at line 64 of file MFXDialogBox.cpp.
References InternalTest::getCurrentStep(), InternalTestStep::getModalDialogTestSteps(), and myTesting.
Referenced by GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEAllowVClassesDialog::openDialog(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
run internal test
Reimplemented in GNEAbout, GNEFixDemandElements, GNEAllowVClassesDialog, GNEFixAdditionalElements, GNEFixNetworkElements, GNEKeepElementsDialog, GNEMultipleParametersDialog, GNESingleParametersDialog, GNEVTypeDistributionsDialog, GNEOptionsDialog, GNENetgenerateDialog, GNEPythonToolDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, and GNEFixElementsDialog.
Definition at line 87 of file MFXDialogBox.cpp.
Referenced by onCmdInternalTest().
|
protected |
flag to indicate if this dialog is being tested using internal test
Definition at line 66 of file MFXDialogBox.h.
Referenced by onCmdAccept(), onCmdCancel(), and openModalDialog().