Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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.
 
const std::string getArgument () const
 get argument
 
MFXLabelTooltipgetParameterLabel () 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
 
OptionmyOption
 option
 
GNEPythonToolDialogmyToolDialogParent
 tool dialog parent
 

Private Member Functions

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

Private Attributes

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

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::EdgeVectorArgument, GNEPythonToolDialogElements::FileNameArgument, GNEPythonToolDialogElements::EdgeArgument, GNEPythonToolDialogElements::StringArgument, GNEPythonToolDialogElements::IntArgument, GNEPythonToolDialogElements::FloatArgument, and GNEPythonToolDialogElements::BoolArgument.

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: