Eclipse SUMO - Simulation of Urban MObility
|
Dialog for netgenerate tool dialog. More...
#include <GNENetgenerateDialog.h>
Public Member Functions | |
GNENetgenerateDialog (GNEApplicationWindow *GNEApp) | |
Constructor. | |
void | openDialog () |
open dialog | |
~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. | |
Private Member Functions | |
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. | |
Dialog for netgenerate tool dialog.
Definition at line 40 of file GNENetgenerateDialog.h.
GNENetgenerateDialog::GNENetgenerateDialog | ( | GNEApplicationWindow * | GNEApp | ) |
Constructor.
Definition at line 56 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 100 of file GNENetgenerateDialog.cpp.
|
protected |
FOX needs this.
Definition at line 293 of file GNENetgenerateDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
long GNENetgenerateDialog::onCmdAdvanced | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press advanced button
Definition at line 261 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 286 of file GNENetgenerateDialog.cpp.
Referenced by FXDEFMAP().
long GNENetgenerateDialog::onCmdOpenOutputFile | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open output file
Definition at line 132 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 252 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 159 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 144 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 229 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 206 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 182 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 270 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), and myGNEApp.
Referenced by FXDEFMAP().
void GNENetgenerateDialog::openDialog | ( | ) |
open dialog
Definition at line 104 of file GNENetgenerateDialog.cpp.
References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myOutputTextField, myRandomGridNetworkButton, myRandomNetworkButton, mySpiderNetworkButton, onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and MFXCheckableButton::setChecked().
|
privatedelete |
Invalidated assignment operator.
|
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().