Eclipse SUMO - Simulation of Urban MObility
GNEPythonToolDialogElements::Argument Class Referenceabstract

argument More...

#include <GNEPythonToolDialogElements.h>

Inheritance diagram for GNEPythonToolDialogElements::Argument:
[legend]
Collaboration diagram for GNEPythonToolDialogElements::Argument:
[legend]

Public Member Functions

 Argument (GNEPythonToolDialog *toolDialogParent, FXVerticalFrame *argumentFrame, const std::string &parameter, Option *option)
 FOX-declaration. More...
 
const std::string getArgument () const
 get argument More...
 
MFXLabelTooltipgetParameterLabel () const
 get parameter label More...
 
bool requiredAttributeSet () const
 check if required attribute is set More...
 
virtual void reset ()=0
 reset to default value More...
 
 ~Argument ()
 destructor More...
 
FOX-callbacks
virtual long onCmdSetValue (FXObject *, FXSelector, void *)=0
 Called when user changes argument value. More...
 
long onCmdResetValue (FXObject *, FXSelector, void *)
 Called when user press reset button. More...
 
long onUpdResetValue (FXObject *, FXSelector, void *)
 Called when user press reset button. More...
 

Protected Member Functions

 Argument ()
 default constructor More...
 
virtual const std::string getValue () const =0
 get value More...
 

Protected Attributes

const std::string myDefaultValue
 default value More...
 
FXHorizontalFrame * myElementsFrame = nullptr
 auxiliar elements frame More...
 
OptionmyOption
 option More...
 
GNEPythonToolDialogmyToolDialogParent
 tool dialog parent More...
 

Private Member Functions

 Argument (const Argument &)=delete
 Invalidated copy constructor. More...
 
Argumentoperator= (const Argument &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

MFXLabelTooltipmyParameterLabel = nullptr
 parameter label More...
 
FXButton * myResetButton = nullptr
 reset button More...
 

Detailed Description

argument

Definition at line 63 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ Argument() [1/3]

GNEPythonToolDialogElements::Argument::Argument ( GNEPythonToolDialog toolDialogParent,
FXVerticalFrame *  argumentFrame,
const std::string &  parameter,
Option option 
)

◆ ~Argument()

GNEPythonToolDialogElements::Argument::~Argument ( )

destructor

Definition at line 144 of file GNEPythonToolDialogElements.cpp.

◆ Argument() [2/3]

GNEPythonToolDialogElements::Argument::Argument ( )
protected

default constructor

Definition at line 191 of file GNEPythonToolDialogElements.cpp.

◆ Argument() [3/3]

GNEPythonToolDialogElements::Argument::Argument ( const Argument )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getArgument()

const std::string GNEPythonToolDialogElements::Argument::getArgument ( ) const

get argument

Definition at line 154 of file GNEPythonToolDialogElements.cpp.

◆ getParameterLabel()

MFXLabelTooltip * GNEPythonToolDialogElements::Argument::getParameterLabel ( ) const

get parameter label

Definition at line 148 of file GNEPythonToolDialogElements.cpp.

◆ getValue()

◆ onCmdResetValue()

long GNEPythonToolDialogElements::Argument::onCmdResetValue ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user press reset button.

Definition at line 174 of file GNEPythonToolDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetValue()

virtual long GNEPythonToolDialogElements::Argument::onCmdSetValue ( FXObject *  ,
FXSelector  ,
void *   
)
pure virtual

Called when user changes argument value.

Implemented in GNEPythonToolDialogElements::BoolArgument, GNEPythonToolDialogElements::FloatArgument, GNEPythonToolDialogElements::IntArgument, GNEPythonToolDialogElements::StringArgument, GNEPythonToolDialogElements::EdgeArgument, GNEPythonToolDialogElements::FileNameArgument, and GNEPythonToolDialogElements::EdgeVectorArgument.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetValue()

long GNEPythonToolDialogElements::Argument::onUpdResetValue ( FXObject *  ,
FXSelector  ,
void *   
)

Called when user press reset button.

Definition at line 182 of file GNEPythonToolDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

Argument& GNEPythonToolDialogElements::Argument::operator= ( const Argument )
privatedelete

Invalidated assignment operator.

◆ requiredAttributeSet()

bool GNEPythonToolDialogElements::Argument::requiredAttributeSet ( ) const

check if required attribute is set

Definition at line 164 of file GNEPythonToolDialogElements.cpp.

◆ reset()

Field Documentation

◆ myDefaultValue

const std::string GNEPythonToolDialogElements::Argument::myDefaultValue
protected

default value

Definition at line 114 of file GNEPythonToolDialogElements.h.

◆ myElementsFrame

◆ myOption

Option* GNEPythonToolDialogElements::Argument::myOption
protected

option

Definition at line 111 of file GNEPythonToolDialogElements.h.

◆ myParameterLabel

MFXLabelTooltip* GNEPythonToolDialogElements::Argument::myParameterLabel = nullptr
private

parameter label

Definition at line 121 of file GNEPythonToolDialogElements.h.

Referenced by Argument().

◆ myResetButton

FXButton* GNEPythonToolDialogElements::Argument::myResetButton = nullptr
private

reset button

Definition at line 124 of file GNEPythonToolDialogElements.h.

Referenced by Argument().

◆ myToolDialogParent

GNEPythonToolDialog* GNEPythonToolDialogElements::Argument::myToolDialogParent
protected

tool dialog parent

Definition at line 108 of file GNEPythonToolDialogElements.h.


The documentation for this class was generated from the following files: