![]() |
Eclipse SUMO - Simulation of Urban MObility
|
argument More...
#include <GNEPythonToolDialogElements.h>
Public Member Functions | |
| Argument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string ¶meter, Option *option) | |
| FOX-declaration. | |
| const std::string | getArgument () const |
| get argument | |
| MFXLabelTooltip * | getParameterLabel () const |
| get parameter label | |
| bool | requiredAttributeSet () const |
| check if required attribute is set | |
| virtual void | reset ()=0 |
| reset to default value | |
| ~Argument () | |
| destructor | |
FOX-callbacks | |
| virtual long | onCmdSetValue (FXObject *, FXSelector, void *)=0 |
| Called when user changes argument value. | |
| 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 | |
| Argument () | |
| default constructor | |
| virtual const std::string | getValue () const =0 |
| get value | |
Protected Attributes | |
| const std::string | myDefaultValue |
| default value | |
| FXHorizontalFrame * | myElementsFrame = nullptr |
| auxiliar elements frame | |
| Option * | myOption |
| option | |
| GNEPythonToolDialog * | myToolDialogParent |
| tool dialog parent | |
Private Member Functions | |
| Argument (const Argument &)=delete | |
| Invalidated copy constructor. | |
| Argument & | operator= (const Argument &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| MFXLabelTooltip * | myParameterLabel = nullptr |
| parameter label | |
| FXButton * | myResetButton = nullptr |
| reset button | |
argument
Definition at line 65 of file GNEPythonToolDialogElements.h.
| GNEPythonToolDialogElements::Argument::Argument | ( | GNEPythonToolDialog * | toolDialogParent, |
| const GNEPythonTool * | pythonTool, | ||
| GNEApplicationWindow * | applicationWindow, | ||
| FXVerticalFrame * | argumentFrame, | ||
| const std::string & | parameter, | ||
| Option * | option | ||
| ) |
FOX-declaration.
constructor (we need pythonTool and applicationWindow because is called during GNEPythonToolDialog constructor)
Definition at line 118 of file GNEPythonToolDialogElements.cpp.
References GUIDesigns::buildFXButton(), Option::getDescription(), GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), Option::getTypeName(), GUIDesignAuxiliarFrame, GUIDesignButtonIcon, GUIDesignLabelThickedFixed, GUIDesignTextColorBlue, Option::isRequired(), MID_GNE_RESET, myElementsFrame, myParameterLabel, myResetButton, RESET, and TL.
| GNEPythonToolDialogElements::Argument::~Argument | ( | ) |
destructor
Definition at line 139 of file GNEPythonToolDialogElements.cpp.
|
protected |
default constructor
Definition at line 186 of file GNEPythonToolDialogElements.cpp.
|
privatedelete |
Invalidated copy constructor.
| const std::string GNEPythonToolDialogElements::Argument::getArgument | ( | ) | const |
get argument
Definition at line 149 of file GNEPythonToolDialogElements.cpp.
| MFXLabelTooltip * GNEPythonToolDialogElements::Argument::getParameterLabel | ( | ) | const |
get parameter label
Definition at line 143 of file GNEPythonToolDialogElements.cpp.
|
protectedpure virtual |
get value
Implemented in GNEPythonToolDialogElements::EdgeVectorArgument, GNEPythonToolDialogElements::FileNameArgument, GNEPythonToolDialogElements::EdgeArgument, GNEPythonToolDialogElements::StringArgument, GNEPythonToolDialogElements::IntArgument, GNEPythonToolDialogElements::FloatArgument, and GNEPythonToolDialogElements::BoolArgument.
| long GNEPythonToolDialogElements::Argument::onCmdResetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press reset button.
Definition at line 169 of file GNEPythonToolDialogElements.cpp.
Referenced by FXDEFMAP().
|
pure virtual |
Called when user changes argument value.
Implemented in GNEPythonToolDialogElements::EdgeVectorArgument, GNEPythonToolDialogElements::FileNameArgument, GNEPythonToolDialogElements::EdgeArgument, GNEPythonToolDialogElements::StringArgument, GNEPythonToolDialogElements::IntArgument, GNEPythonToolDialogElements::FloatArgument, and GNEPythonToolDialogElements::BoolArgument.
Referenced by FXDEFMAP().
| long GNEPythonToolDialogElements::Argument::onUpdResetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press reset button.
Definition at line 177 of file GNEPythonToolDialogElements.cpp.
Referenced by FXDEFMAP().
Invalidated assignment operator.
| bool GNEPythonToolDialogElements::Argument::requiredAttributeSet | ( | ) | const |
check if required attribute is set
Definition at line 159 of file GNEPythonToolDialogElements.cpp.
|
pure virtual |
reset to default value
Implemented in GNEPythonToolDialogElements::EdgeVectorArgument, GNEPythonToolDialogElements::FileNameArgument, GNEPythonToolDialogElements::EdgeArgument, GNEPythonToolDialogElements::StringArgument, GNEPythonToolDialogElements::IntArgument, GNEPythonToolDialogElements::FloatArgument, and GNEPythonToolDialogElements::BoolArgument.
|
protected |
default value
Definition at line 118 of file GNEPythonToolDialogElements.h.
|
protected |
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().
|
protected |
option
Definition at line 115 of file GNEPythonToolDialogElements.h.
|
private |
parameter label
Definition at line 125 of file GNEPythonToolDialogElements.h.
Referenced by Argument().
|
private |
reset button
Definition at line 128 of file GNEPythonToolDialogElements.h.
Referenced by Argument().
|
protected |
tool dialog parent
Definition at line 112 of file GNEPythonToolDialogElements.h.