Eclipse SUMO - Simulation of Urban MObility
GNEPythonToolDialogElements::FloatArgument Class Reference

float argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

 FloatArgument (GNEPythonToolDialog *toolDialogParent, FXVerticalFrame *argumentFrame, const std::string name, Option *option)
 constructor More...
 
const std::string getArgument () const
 get argument More...
 
MFXLabelTooltipgetParameterLabel () const
 get parameter label More...
 
long onCmdSetValue (FXObject *, FXSelector, void *)
 Called when user set float value. More...
 
bool requiredAttributeSet () const
 check if required attribute is set More...
 
void reset ()
 reset to default value More...
 
FOX-callbacks
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

const std::string getValue () const
 get value More...
 

Protected Attributes

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

Private Member Functions

 FloatArgument (const IntArgument &)=delete
 Invalidated copy constructor. More...
 
FloatArgumentoperator= (const IntArgument &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

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

Static Private Attributes

static const std::string INVALID_DOUBLE_STR = toString(INVALID_DOUBLE)
 invalid float in string format More...
 

Detailed Description

float argument

Definition at line 471 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ FloatArgument() [1/2]

GNEPythonToolDialogElements::FloatArgument::FloatArgument ( GNEPythonToolDialog toolDialogParent,
FXVerticalFrame *  argumentFrame,
const std::string  name,
Option option 
)

◆ FloatArgument() [2/2]

GNEPythonToolDialogElements::FloatArgument::FloatArgument ( const IntArgument )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getArgument()

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

get argument

Definition at line 154 of file GNEPythonToolDialogElements.cpp.

◆ getParameterLabel()

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

get parameter label

Definition at line 148 of file GNEPythonToolDialogElements.cpp.

◆ getValue()

const std::string GNEPythonToolDialogElements::FloatArgument::getValue ( ) const
protectedvirtual

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 718 of file GNEPythonToolDialogElements.cpp.

◆ onCmdResetValue()

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

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()

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

Called when user set float value.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 706 of file GNEPythonToolDialogElements.cpp.

◆ onUpdResetValue()

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

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=()

FloatArgument& GNEPythonToolDialogElements::FloatArgument::operator= ( const IntArgument )
privatedelete

Invalidated assignment operator.

◆ requiredAttributeSet()

bool GNEPythonToolDialogElements::Argument::requiredAttributeSet ( ) const
inherited

check if required attribute is set

Definition at line 164 of file GNEPythonToolDialogElements.cpp.

◆ reset()

void GNEPythonToolDialogElements::FloatArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 694 of file GNEPythonToolDialogElements.cpp.

Field Documentation

◆ INVALID_DOUBLE_STR

const std::string GNEPythonToolDialogElements::FloatArgument::INVALID_DOUBLE_STR = toString(INVALID_DOUBLE)
staticprivate

invalid float in string format

Definition at line 492 of file GNEPythonToolDialogElements.h.

◆ myDefaultValue

const std::string GNEPythonToolDialogElements::Argument::myDefaultValue
protectedinherited

default value

Definition at line 114 of file GNEPythonToolDialogElements.h.

◆ myElementsFrame

◆ myFloatTextField

FXTextField* GNEPythonToolDialogElements::FloatArgument::myFloatTextField = nullptr
protected

float textField

Definition at line 488 of file GNEPythonToolDialogElements.h.

Referenced by FloatArgument().

◆ myOption

Option* GNEPythonToolDialogElements::Argument::myOption
protectedinherited

option

Definition at line 111 of file GNEPythonToolDialogElements.h.

◆ myParameterLabel

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

parameter label

Definition at line 121 of file GNEPythonToolDialogElements.h.

Referenced by GNEPythonToolDialogElements::Argument::Argument().

◆ myResetButton

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

reset button

Definition at line 124 of file GNEPythonToolDialogElements.h.

Referenced by GNEPythonToolDialogElements::Argument::Argument().

◆ myToolDialogParent

GNEPythonToolDialog* GNEPythonToolDialogElements::Argument::myToolDialogParent
protectedinherited

tool dialog parent

Definition at line 108 of file GNEPythonToolDialogElements.h.


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