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

#include <MFXDialogBox.h>

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

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.
 
MFXDialogBoxoperator= (const MFXDialogBox &src)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 31 of file MFXDialogBox.h.

Constructor & Destructor Documentation

◆ MFXDialogBox() [1/4]

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() [2/4]

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.

◆ MFXDialogBox() [3/4]

MFXDialogBox::MFXDialogBox ( )
inlineprotected

FOX needs this.

Definition at line 63 of file MFXDialogBox.h.

Referenced by GNEMultipleParametersDialog::ParametersOperations::onCmdHelpParameter(), GNESingleParametersDialog::ParametersOperations::onCmdHelpParameter(), and GNEVTypeDistributionsDialog::ParametersOperations::onCmdHelpParameter().

Here is the caller graph for this function:

◆ MFXDialogBox() [4/4]

MFXDialogBox::MFXDialogBox ( const MFXDialogBox )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ execute()

FXuint MFXDialogBox::execute ( FXuint  placement = PLACEMENT_CURSOR)
private

make execute private

Definition at line 128 of file MFXDialogBox.cpp.

◆ onCmdAccept()

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().

Here is the caller graph for this function:

◆ onCmdCancel()

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().

Here is the caller graph for this function:

◆ onCmdInternalTest()

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().

Here is the caller graph for this function:

◆ openModalDialog()

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().

Here is the caller graph for this function:

◆ operator=()

MFXDialogBox & MFXDialogBox::operator= ( const MFXDialogBox src)
privatedelete

Invalidated assignment operator.

◆ runInternalTest()

void MFXDialogBox::runInternalTest ( const InternalTestStep::DialogTest dialogTest)
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().

Here is the caller graph for this function:

Field Documentation

◆ myTesting

bool MFXDialogBox::myTesting = false
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().


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