Eclipse SUMO - Simulation of Urban MObility
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, 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 int 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...
 
FXTextField * myEdgeTextField = nullptr
 int textField More...
 
FXHorizontalFrame * myElementsFrame = nullptr
 auxiliar elements frame More...
 
OptionmyOption
 option More...
 
GNEPythonToolDialogmyToolDialogParent
 tool dialog parent More...
 

Private Member Functions

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

Detailed Description

int argument

Definition at line 381 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ EdgeArgument() [1/2]

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

◆ EdgeArgument() [2/2]

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

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 593 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::EdgeArgument::onCmdSetValue ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

Called when user set int value.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 581 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=()

EdgeArgument& GNEPythonToolDialogElements::EdgeArgument::operator= ( const EdgeArgument )
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::EdgeArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 573 of file GNEPythonToolDialogElements.cpp.

Field Documentation

◆ INVALID_INT_STR

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

invalid int in string format

Definition at line 402 of file GNEPythonToolDialogElements.h.

◆ myDefaultValue

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

default value

Definition at line 114 of file GNEPythonToolDialogElements.h.

◆ myEdgeTextField

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

int textField

Definition at line 398 of file GNEPythonToolDialogElements.h.

Referenced by EdgeArgument().

◆ myElementsFrame

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