Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option)
 constructor
const std::string getArgument () const
 get argument
MFXLabelTooltipgetParameterLabel () const
 get parameter label
long onCmdSetValue (FXObject *, FXSelector, void *)
 Called when user set float value.
bool requiredAttributeSet () const
 check if required attribute is set
void reset ()
 reset to default value
FOX-callbacks
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

const std::string getValue () const
 get value

Protected Attributes

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

Private Member Functions

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

Private Attributes

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

Static Private Attributes

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

Detailed Description

float argument

Definition at line 489 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ FloatArgument() [1/2]

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

constructor

Definition at line 722 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::Argument(), Option::getValueString(), GUIDesignTextFieldNCol, GUIDesignTextFieldRestricted, MID_GNE_SET_ATTRIBUTE, GNEPythonToolDialogElements::Argument::myElementsFrame, and myFloatTextField.

Referenced by operator=().

Here is the caller graph for this function:

◆ 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 149 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myParameterLabel.

◆ getParameterLabel()

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

get parameter label

Definition at line 143 of file GNEPythonToolDialogElements.cpp.

References myParameterLabel.

◆ getValue()

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

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 757 of file GNEPythonToolDialogElements.cpp.

References myFloatTextField.

◆ onCmdResetValue()

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

Called when user press reset button.

Definition at line 169 of file GNEPythonToolDialogElements.cpp.

References reset().

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 745 of file GNEPythonToolDialogElements.cpp.

References myFloatTextField, GNEPythonToolDialogElements::Argument::myOption, and reset().

◆ onUpdResetValue()

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

Called when user press reset button.

Definition at line 177 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myResetButton.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References FloatArgument().

◆ requiredAttributeSet()

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

check if required attribute is set

Definition at line 159 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myOption.

◆ reset()

void GNEPythonToolDialogElements::FloatArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 733 of file GNEPythonToolDialogElements.cpp.

References INVALID_DOUBLE_STR, GNEPythonToolDialogElements::Argument::myDefaultValue, myFloatTextField, and GNEPythonToolDialogElements::Argument::myOption.

Referenced by onCmdSetValue().

Here is the caller graph for this function:

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 512 of file GNEPythonToolDialogElements.h.

Referenced by reset().

◆ myDefaultValue

◆ myElementsFrame

◆ myFloatTextField

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

float textField

Definition at line 508 of file GNEPythonToolDialogElements.h.

Referenced by FloatArgument(), getValue(), onCmdSetValue(), and reset().

◆ myOption

◆ myParameterLabel

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

parameter label

Definition at line 125 of file GNEPythonToolDialogElements.h.

Referenced by Argument(), getArgument(), and getParameterLabel().

◆ myResetButton

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

reset button

Definition at line 128 of file GNEPythonToolDialogElements.h.

Referenced by Argument(), and onUpdResetValue().

◆ myToolDialogParent


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