![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNENetgenerateDialog.h>
Public Member Functions | |
| GNENetgenerateDialog (GNEApplicationWindow *GNEApp) | |
| Constructor. | |
| void | openDialog () |
| open dialog | |
| void | runInternalTest (const InternalTestStep::DialogTest *modalArguments) |
| run internal test | |
| ~GNENetgenerateDialog () | |
| destructor | |
FOX-callbacks | |
| long | onCmdOpenOutputFile (FXObject *, FXSelector, void *) |
| open output file | |
| long | onCmdSetOutput (FXObject *, FXSelector, void *) |
| set output file | |
| long | onCmdSetGrid (FXObject *, FXSelector, void *) |
| set grid mode | |
| long | onCmdSetSpider (FXObject *, FXSelector, void *) |
| set spider | |
| long | onCmdSetRandomGrid (FXObject *, FXSelector, void *) |
| set random grid | |
| long | onCmdSetRandom (FXObject *, FXSelector, void *) |
| set random | |
| long | onCmdRun (FXObject *, FXSelector, void *) |
| event after press run button | |
| long | onCmdAdvanced (FXObject *, FXSelector, void *) |
| event after press advanced button | |
| long | onUpdSettingsConfigured (FXObject *, FXSelector, void *) |
| check if settings are enabled | |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| event after press cancel button | |
Protected Member Functions | |
| GNENetgenerateDialog () | |
| FOX needs this. | |
| FXuint | openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR) |
| Run modal invocation of the dialog. | |
FOX-callbacks | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| called when accept button is pressed | |
| long | onCmdInternalTest (FXObject *, FXSelector, void *ptr) |
| event used in internal tests | |
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 | |
| GNENetgenerateDialog (const GNENetgenerateDialog &)=delete | |
| Invalidated copy constructor. | |
| GNENetgenerateDialog & | operator= (const GNENetgenerateDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myAdvancedButton = nullptr |
| advanced button | |
| GNEApplicationWindow * | myGNEApp |
| pointer to GNEApplicationWindow | |
| MFXCheckableButton * | myGridNetworkButton = nullptr |
| grid network | |
| FXLabel * | myGridNetworkLabel = nullptr |
| grid network | |
| FXTextField * | myOutputTextField = nullptr |
| output text field | |
| MFXCheckableButton * | myRandomGridNetworkButton = nullptr |
| random grid network | |
| FXLabel * | myRandomGridNetworkLabel = nullptr |
| random grid network | |
| MFXCheckableButton * | myRandomNetworkButton = nullptr |
| grid network | |
| FXLabel * | myRandomNetworkLabel = nullptr |
| grid network | |
| FXButton * | myRunButton = nullptr |
| run button | |
| MFXCheckableButton * | mySpiderNetworkButton = nullptr |
| grid network | |
| FXLabel * | mySpiderNetworkLabel = nullptr |
| grid network | |
Friends | |
| class | GNENetgenerateDialogElements |
| FOX-declaration. | |
Definition at line 37 of file GNENetgenerateDialog.h.
| GNENetgenerateDialog::GNENetgenerateDialog | ( | GNEApplicationWindow * | GNEApp | ) |
Constructor.
Definition at line 60 of file GNENetgenerateDialog.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignBigSizeElement, GUIDesignButtonAccept, GUIDesignButtonAdvanced, GUIDesignButtonIcon, GUIDesignButtonReset, GUIDesignHorizontalFrame, GUIDesignLabelThickedFixed, GUIDesignMFXCheckableButtonBig, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_BUTTON_ADVANCED, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RUN, MID_GNE_NETGENERATE_GRID, MID_GNE_NETGENERATE_RANDOM, MID_GNE_NETGENERATE_RANDOMGRID, MID_GNE_NETGENERATE_SPIDER, MID_GNE_OPEN, MID_GNE_SET_ATTRIBUTE, MODEINSPECT, NETGENERATE, NETGENERATE_GRID, NETGENERATE_RANDOM, NETGENERATE_RANDOMGRID, NETGENERATE_SPIDER, OPEN_NET, and TL.
| GNENetgenerateDialog::~GNENetgenerateDialog | ( | ) |
destructor
Definition at line 104 of file GNENetgenerateDialog.cpp.
|
protected |
FOX needs this.
Definition at line 303 of file GNENetgenerateDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
privateinherited |
make execute private
Definition at line 128 of file MFXDialogBox.cpp.
|
inherited |
called when accept button is pressed
Definition at line 93 of file MFXDialogBox.cpp.
References MFXDialogBox::myTesting.
Referenced by FXDEFMAP(), and GNEAllowVClassesDialog::onCmdAccept().
| long GNENetgenerateDialog::onCmdAdvanced | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press advanced button
Definition at line 271 of file GNENetgenerateDialog.cpp.
References MID_GNE_NETGENERATEOPTIONS, and myGNEApp.
Referenced by FXDEFMAP().
| long GNENetgenerateDialog::onCmdCancel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press cancel button
Definition at line 296 of file GNENetgenerateDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event used in internal tests
Definition at line 115 of file MFXDialogBox.cpp.
References MFXDialogBox::runInternalTest().
Referenced by FXDEFMAP().
| long GNENetgenerateDialog::onCmdOpenOutputFile | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
open output file
Definition at line 142 of file GNENetgenerateDialog.cpp.
References myOutputTextField, and GNEApplicationWindowHelper::openNetworkFileDialog().
Referenced by FXDEFMAP().
| long GNENetgenerateDialog::onCmdRun | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press run button
Definition at line 262 of file GNENetgenerateDialog.cpp.
References MID_GNE_RUNNETGENERATE, and myGNEApp.
Referenced by FXDEFMAP().
| long GNENetgenerateDialog::onCmdSetGrid | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set grid mode
Definition at line 169 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP(), and openDialog().
| long GNENetgenerateDialog::onCmdSetOutput | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set output file
Definition at line 154 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), SUMOXMLDefinitions::isValidFilename(), myGNEApp, myOutputTextField, and OptionsCont::resetWritable().
Referenced by FXDEFMAP().
| long GNENetgenerateDialog::onCmdSetRandom | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set random
Definition at line 239 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP(), and openDialog().
| long GNENetgenerateDialog::onCmdSetRandomGrid | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set random grid
Definition at line 216 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP(), and openDialog().
| long GNENetgenerateDialog::onCmdSetSpider | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set spider
Definition at line 192 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP(), and openDialog().
| long GNENetgenerateDialog::onUpdSettingsConfigured | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
check if settings are enabled
Definition at line 280 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), and myGNEApp.
Referenced by FXDEFMAP().
| void GNENetgenerateDialog::openDialog | ( | ) |
open dialog
Definition at line 108 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myOutputTextField, myRandomGridNetworkButton, myRandomNetworkButton, mySpiderNetworkButton, onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and MFXCheckableButton::setChecked().
|
inherited |
Run modal invocation of the dialog.
Definition at line 64 of file MFXDialogBox.cpp.
References InternalTest::getCurrentStep(), InternalTestStep::getModalDialogTestSteps(), and MFXDialogBox::myTesting.
Referenced by GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEAllowVClassesDialog::openDialog(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
run internal test
Reimplemented from MFXDialogBox.
Definition at line 136 of file GNENetgenerateDialog.cpp.
|
friend |
|
private |
advanced button
Definition at line 131 of file GNENetgenerateDialog.h.
|
private |
pointer to GNEApplicationWindow
Definition at line 98 of file GNENetgenerateDialog.h.
Referenced by onCmdAdvanced(), onCmdRun(), onCmdSetGrid(), onCmdSetOutput(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), onUpdSettingsConfigured(), and openDialog().
|
private |
grid network
Definition at line 113 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().
|
private |
grid network
Definition at line 101 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().
|
private |
output text field
Definition at line 125 of file GNENetgenerateDialog.h.
Referenced by onCmdOpenOutputFile(), onCmdSetOutput(), and openDialog().
|
private |
random grid network
Definition at line 119 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().
|
private |
random grid network
Definition at line 107 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().
|
private |
grid network
Definition at line 122 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().
|
private |
grid network
Definition at line 110 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().
|
private |
run button
Definition at line 128 of file GNENetgenerateDialog.h.
|
private |
grid network
Definition at line 116 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().
|
private |
grid network
Definition at line 104 of file GNENetgenerateDialog.h.
Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().
|
protectedinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 66 of file MFXDialogBox.h.
Referenced by MFXDialogBox::onCmdAccept(), MFXDialogBox::onCmdCancel(), and MFXDialogBox::openModalDialog().