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

int argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

 EdgeArgument (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 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
FXTextField * myEdgeTextField = nullptr
 int textField
FXHorizontalFrame * myElementsFrame = nullptr
 auxiliar elements frame
OptionmyOption = nullptr
 option
GNEPythonToolDialogmyToolDialogParent = nullptr
 tool dialog parent

Private Member Functions

 EdgeArgument (const EdgeArgument &)=delete
 Invalidated copy constructor.
EdgeArgumentoperator= (const EdgeArgument &)=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
 invalid int in string format

Detailed Description

int argument

Definition at line 393 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ EdgeArgument() [1/2]

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

constructor

Definition at line 601 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::Argument(), Option::getValueString(), GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, myEdgeTextField, and GNEPythonToolDialogElements::Argument::myElementsFrame.

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

Here is the caller graph for this function:

◆ EdgeArgument() [2/2]

GNEPythonToolDialogElements::EdgeArgument::EdgeArgument ( const EdgeArgument & )
privatedelete

Invalidated copy constructor.

References EdgeArgument().

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

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 632 of file GNEPythonToolDialogElements.cpp.

References myEdgeTextField.

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

Called when user set int value.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 620 of file GNEPythonToolDialogElements.cpp.

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

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

Invalidated assignment operator.

References EdgeArgument().

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

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 612 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::myDefaultValue, myEdgeTextField, and GNEPythonToolDialogElements::Argument::myOption.

Referenced by onCmdSetValue().

Here is the caller graph for this function:

Field Documentation

◆ INVALID_INT_STR

const std::string GNEPythonToolDialogElements::EdgeArgument::INVALID_INT_STR
staticprivate

invalid int in string format

Definition at line 416 of file GNEPythonToolDialogElements.h.

◆ myDefaultValue

◆ myEdgeTextField

FXTextField* GNEPythonToolDialogElements::EdgeArgument::myEdgeTextField = nullptr
protected

int textField

Definition at line 412 of file GNEPythonToolDialogElements.h.

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

◆ myElementsFrame

◆ 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: