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

bool argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

 BoolArgument (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 bool 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

FXCheckButton * myCheckButton = nullptr
 check button
const std::string myDefaultValue
 default value
FXHorizontalFrame * myElementsFrame = nullptr
 auxiliar elements frame
OptionmyOption = nullptr
 option
GNEPythonToolDialogmyToolDialogParent = nullptr
 tool dialog parent

Private Member Functions

 BoolArgument (const IntArgument &)=delete
 Invalidated copy constructor.
BoolArgumentoperator= (const IntArgument &)=delete
 Invalidated assignment operator.

Private Attributes

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

Detailed Description

bool argument

Definition at line 523 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ BoolArgument() [1/2]

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

constructor

Definition at line 765 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::Argument(), Option::getBool(), GUIDesignCheckButton, MID_GNE_SET_ATTRIBUTE, myCheckButton, GNEPythonToolDialogElements::Argument::myElementsFrame, and TL.

Referenced by operator=().

Here is the caller graph for this function:

◆ BoolArgument() [2/2]

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

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 816 of file GNEPythonToolDialogElements.cpp.

References myCheckButton.

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

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

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

Invalidated assignment operator.

References BoolArgument().

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

Field Documentation

◆ myCheckButton

FXCheckButton* GNEPythonToolDialogElements::BoolArgument::myCheckButton = nullptr
protected

check button

Definition at line 542 of file GNEPythonToolDialogElements.h.

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

◆ myDefaultValue

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