![]() |
Eclipse SUMO - Simulation of Urban MObility
|
edge vector argument More...
#include <GNEPythonToolDialogElements.h>
Public Member Functions | |
| EdgeVectorArgument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option) | |
| FOX-declaration. | |
| const std::string | getArgument () const |
| get argument | |
| MFXLabelTooltip * | getParameterLabel () const |
| get parameter label | |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| Called when user changes argument value. | |
| long | onCmdUseCurrent (FXObject *, FXSelector, void *) |
| Called when user press use seleted edges button. | |
| long | onUpdUseCurrent (FXObject *sender, FXSelector, void *) |
| enable or disable use selected edges button | |
| bool | requiredAttributeSet () const |
| check if required attribute is set | |
| void | reset () |
| reset to default value | |
FOX-callbacks | |
| long | onCmdResetValue (FXObject *, FXSelector, void *) |
| Called when user press reset button. | |
| long | onUpdResetValue (FXObject *, FXSelector, void *) |
| Called when user press reset button. | |
Protected Member Functions | |
| EdgeVectorArgument () | |
| FOX need this. | |
| const std::string | getValue () const |
| get value | |
Protected Attributes | |
| const std::string | myDefaultValue |
| default value | |
| FXTextField * | myEdgeVectorTextField = nullptr |
| edge vectgor textField | |
| FXHorizontalFrame * | myElementsFrame = nullptr |
| auxiliar elements frame | |
| Option * | myOption = nullptr |
| option | |
| GNEPythonToolDialog * | myToolDialogParent = nullptr |
| tool dialog parent | |
Private Member Functions | |
| EdgeVectorArgument (const EdgeVectorArgument &)=delete | |
| Invalidated copy constructor. | |
| EdgeVectorArgument & | operator= (const EdgeVectorArgument &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| MFXButtonTooltip * | myCurrentEdgesButton = nullptr |
| current edges button | |
| MFXLabelTooltip * | myParameterLabel = nullptr |
| parameter label | |
| FXButton * | myResetButton = nullptr |
| reset button | |
edge vector argument
Definition at line 139 of file GNEPythonToolDialogElements.h.
| GNEPythonToolDialogElements::EdgeVectorArgument::EdgeVectorArgument | ( | GNEPythonToolDialog * | toolDialogParent, |
| const GNEPythonTool * | pythonTool, | ||
| GNEApplicationWindow * | applicationWindow, | ||
| FXVerticalFrame * | argumentFrame, | ||
| const std::string | name, | ||
| Option * | option ) |
FOX-declaration.
constructor
Definition at line 270 of file GNEPythonToolDialogElements.cpp.
References GNEPythonToolDialogElements::Argument::Argument(), EDGE, GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), Option::getValueString(), GUIDesignButtonIcon, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, MID_GNE_USE_CURRENT, myCurrentEdgesButton, myEdgeVectorTextField, GNEPythonToolDialogElements::Argument::myElementsFrame, and TL.
Referenced by EdgeVectorArgument(), and operator=().
|
protected |
FOX need this.
Definition at line 334 of file GNEPythonToolDialogElements.cpp.
|
privatedelete |
Invalidated copy constructor.
References EdgeVectorArgument().
|
inherited |
get argument
Definition at line 149 of file GNEPythonToolDialogElements.cpp.
References getValue(), myDefaultValue, and myParameterLabel.
|
inherited |
get parameter label
Definition at line 143 of file GNEPythonToolDialogElements.cpp.
References myParameterLabel.
|
protectedvirtual |
get value
Implements GNEPythonToolDialogElements::Argument.
Definition at line 338 of file GNEPythonToolDialogElements.cpp.
References myEdgeVectorTextField.
|
inherited |
Called when user press reset button.
Definition at line 169 of file GNEPythonToolDialogElements.cpp.
References reset().
Referenced by FXDEFMAP().
|
virtual |
Called when user changes argument value.
Implements GNEPythonToolDialogElements::Argument.
Definition at line 292 of file GNEPythonToolDialogElements.cpp.
References myEdgeVectorTextField, GNEPythonToolDialogElements::Argument::myOption, and reset().
| long GNEPythonToolDialogElements::EdgeVectorArgument::onCmdUseCurrent | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when user press use seleted edges button.
Definition at line 304 of file GNEPythonToolDialogElements.cpp.
References myEdgeVectorTextField, and GNEPythonToolDialogElements::Argument::myToolDialogParent.
Referenced by FXDEFMAP().
|
inherited |
Called when user press reset button.
Definition at line 177 of file GNEPythonToolDialogElements.cpp.
References getValue(), myDefaultValue, and myResetButton.
Referenced by FXDEFMAP().
| long GNEPythonToolDialogElements::EdgeVectorArgument::onUpdUseCurrent | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ) |
enable or disable use selected edges button
Definition at line 321 of file GNEPythonToolDialogElements.cpp.
References GNEPythonToolDialogElements::Argument::myToolDialogParent.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
References EdgeVectorArgument().
|
inherited |
check if required attribute is set
Definition at line 159 of file GNEPythonToolDialogElements.cpp.
References getValue(), myDefaultValue, and myOption.
|
virtual |
reset to default value
Implements GNEPythonToolDialogElements::Argument.
Definition at line 284 of file GNEPythonToolDialogElements.cpp.
References GNEPythonToolDialogElements::Argument::myDefaultValue, myEdgeVectorTextField, and GNEPythonToolDialogElements::Argument::myOption.
Referenced by onCmdSetValue().
|
private |
current edges button
Definition at line 173 of file GNEPythonToolDialogElements.h.
Referenced by EdgeVectorArgument().
|
protectedinherited |
default value
Definition at line 118 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), getArgument(), GNEPythonToolDialogElements::BoolArgument::onCmdSetValue(), onUpdResetValue(), requiredAttributeSet(), GNEPythonToolDialogElements::BoolArgument::reset(), GNEPythonToolDialogElements::EdgeArgument::reset(), GNEPythonToolDialogElements::EdgeVectorArgument::reset(), GNEPythonToolDialogElements::FileNameArgument::reset(), GNEPythonToolDialogElements::FloatArgument::reset(), GNEPythonToolDialogElements::IntArgument::reset(), and GNEPythonToolDialogElements::StringArgument::reset().
|
protected |
edge vectgor textField
Definition at line 169 of file GNEPythonToolDialogElements.h.
Referenced by EdgeVectorArgument(), getValue(), onCmdSetValue(), onCmdUseCurrent(), and reset().
|
protectedinherited |
auxiliar elements frame
Definition at line 121 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), GNEPythonToolDialogElements::BoolArgument::BoolArgument(), GNEPythonToolDialogElements::EdgeArgument::EdgeArgument(), GNEPythonToolDialogElements::EdgeVectorArgument::EdgeVectorArgument(), GNEPythonToolDialogElements::FileNameArgument::FileNameArgument(), GNEPythonToolDialogElements::FloatArgument::FloatArgument(), GNEPythonToolDialogElements::IntArgument::IntArgument(), and GNEPythonToolDialogElements::StringArgument::StringArgument().
|
protectedinherited |
option
Definition at line 115 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), GNEPythonToolDialogElements::AdditionalArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::DataArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::FileNameArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::NetworkArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::RouteArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::SumoConfigArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::BoolArgument::onCmdSetValue(), GNEPythonToolDialogElements::EdgeArgument::onCmdSetValue(), GNEPythonToolDialogElements::EdgeVectorArgument::onCmdSetValue(), GNEPythonToolDialogElements::FileNameArgument::onCmdSetValue(), GNEPythonToolDialogElements::FloatArgument::onCmdSetValue(), GNEPythonToolDialogElements::IntArgument::onCmdSetValue(), GNEPythonToolDialogElements::StringArgument::onCmdSetValue(), requiredAttributeSet(), GNEPythonToolDialogElements::BoolArgument::reset(), GNEPythonToolDialogElements::EdgeArgument::reset(), GNEPythonToolDialogElements::EdgeVectorArgument::reset(), GNEPythonToolDialogElements::FileNameArgument::reset(), GNEPythonToolDialogElements::FloatArgument::reset(), GNEPythonToolDialogElements::IntArgument::reset(), and GNEPythonToolDialogElements::StringArgument::reset().
|
privateinherited |
parameter label
Definition at line 125 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), getArgument(), and getParameterLabel().
|
privateinherited |
reset button
Definition at line 128 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), and onUpdResetValue().
|
protectedinherited |
tool dialog parent
Definition at line 112 of file GNEPythonToolDialogElements.h.
Referenced by Argument(), GNEPythonToolDialogElements::AdditionalArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::DataArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::FileNameArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::NetworkArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::RouteArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::SumoConfigArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::EdgeVectorArgument::onCmdUseCurrent(), GNEPythonToolDialogElements::EdgeVectorArgument::onUpdUseCurrent(), GNEPythonToolDialogElements::AdditionalArgument::onUpdUseCurrentAdditionalFile(), GNEPythonToolDialogElements::DataArgument::onUpdUseCurrentDataFile(), GNEPythonToolDialogElements::NetworkArgument::onUpdUseCurrentNetworkFile(), GNEPythonToolDialogElements::RouteArgument::onUpdUseCurrentRouteFile(), and GNEPythonToolDialogElements::SumoConfigArgument::onUpdUseCurrentSumoConfigFile().