Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPythonToolDialogElements::IntArgument Class Reference

int argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

const std::string getArgument () const
 get argument
MFXLabelTooltipgetParameterLabel () const
 get parameter label
 IntArgument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option)
 constructor
long onCmdSetValue (FXObject *, FXSelector, void *)
 Called when user set int 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 * myIntTextField = nullptr
 int textField
OptionmyOption = nullptr
 option
GNEPythonToolDialogmyToolDialogParent = nullptr
 tool dialog parent

Private Member Functions

 IntArgument (const IntArgument &)=delete
 Invalidated copy constructor.
IntArgumentoperator= (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_INT_STR = toString(INVALID_INT)
 invalid int in string format

Detailed Description

int argument

Definition at line 456 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ IntArgument() [1/2]

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

constructor

Definition at line 679 of file GNEPythonToolDialogElements.cpp.

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

Referenced by IntArgument(), and operator=().

Here is the caller graph for this function:

◆ IntArgument() [2/2]

GNEPythonToolDialogElements::IntArgument::IntArgument ( const IntArgument & )
privatedelete

Invalidated copy constructor.

References IntArgument().

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::IntArgument::getValue ( ) const
protectedvirtual

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 714 of file GNEPythonToolDialogElements.cpp.

References myIntTextField.

◆ 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::IntArgument::onCmdSetValue ( FXObject * ,
FXSelector ,
void *  )
virtual

Called when user set int value.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 702 of file GNEPythonToolDialogElements.cpp.

References myIntTextField, 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=()

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

Invalidated assignment operator.

References IntArgument().

◆ 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::IntArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 690 of file GNEPythonToolDialogElements.cpp.

References INVALID_INT_STR, GNEPythonToolDialogElements::Argument::myDefaultValue, myIntTextField, and GNEPythonToolDialogElements::Argument::myOption.

Referenced by onCmdSetValue().

Here is the caller graph for this function:

Field Documentation

◆ INVALID_INT_STR

const std::string GNEPythonToolDialogElements::IntArgument::INVALID_INT_STR = toString(INVALID_INT)
staticprivate

invalid int in string format

Definition at line 479 of file GNEPythonToolDialogElements.h.

Referenced by reset().

◆ myDefaultValue

◆ myElementsFrame

◆ myIntTextField

FXTextField* GNEPythonToolDialogElements::IntArgument::myIntTextField = nullptr
protected

int textField

Definition at line 475 of file GNEPythonToolDialogElements.h.

Referenced by getValue(), IntArgument(), 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: