Eclipse SUMO - Simulation of Urban MObility
|
argument More...
#include <GNEPythonToolDialogElements.h>
Public Member Functions | |
Argument (GNEPythonToolDialog *toolDialogParent, 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 63 of file GNEPythonToolDialogElements.h.
GNEPythonToolDialogElements::Argument::Argument | ( | GNEPythonToolDialog * | toolDialogParent, |
FXVerticalFrame * | argumentFrame, | ||
const std::string & | parameter, | ||
Option * | option | ||
) |
FOX-declaration.
constructor
Definition at line 123 of file GNEPythonToolDialogElements.cpp.
References GUIDesigns::buildFXButton(), Option::getDescription(), GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), Option::getTypeName(), GUIDesignAuxiliarFrame, GUIDesignButtonIcon, GUIDesignLabelThickedFixed, Option::isRequired(), MID_GNE_RESET, myElementsFrame, GNEPythonToolDialog::myGNEApp, myParameterLabel, myResetButton, RESET, and TL.
GNEPythonToolDialogElements::Argument::~Argument | ( | ) |
destructor
Definition at line 144 of file GNEPythonToolDialogElements.cpp.
|
protected |
default constructor
Definition at line 191 of file GNEPythonToolDialogElements.cpp.
|
privatedelete |
Invalidated copy constructor.
const std::string GNEPythonToolDialogElements::Argument::getArgument | ( | ) | const |
get argument
Definition at line 154 of file GNEPythonToolDialogElements.cpp.
MFXLabelTooltip * GNEPythonToolDialogElements::Argument::getParameterLabel | ( | ) | const |
get parameter label
Definition at line 148 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 174 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 182 of file GNEPythonToolDialogElements.cpp.
Referenced by FXDEFMAP().
Invalidated assignment operator.
bool GNEPythonToolDialogElements::Argument::requiredAttributeSet | ( | ) | const |
check if required attribute is set
Definition at line 164 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 114 of file GNEPythonToolDialogElements.h.
|
protected |
auxiliar elements frame
Definition at line 117 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 111 of file GNEPythonToolDialogElements.h.
|
private |
parameter label
Definition at line 121 of file GNEPythonToolDialogElements.h.
Referenced by Argument().
|
private |
reset button
Definition at line 124 of file GNEPythonToolDialogElements.h.
Referenced by Argument().
|
protected |
tool dialog parent
Definition at line 108 of file GNEPythonToolDialogElements.h.