Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEOptionsDialogElements::InputBool Class Reference

input bool More...

#include <GNEOptionsDialogElements.h>

Inheritance diagram for GNEOptionsDialogElements::InputBool:
[legend]
Collaboration diagram for GNEOptionsDialogElements::InputBool:
[legend]

Public Member Functions

void adjustNameSize ()
 adjust input name size
 
const std::string getDescriptionLower () const
 get description (Lower)
 
const std::string getNameLower () const
 get name (Lower)
 
const std::string & getTopic () const
 get topic
 
 InputBool (GNEOptionsDialog *GUIDialogOptions, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 constructor
 
long onCmdResetOption (FXObject *, FXSelector, void *)
 called when user press reset button
 
long onCmdSetOption (FXObject *, FXSelector, void *)
 called when user set value in textField/button/checkBox
 
long onUpdResetOption (FXObject *, FXSelector, void *)
 update reset button
 
void restoreOption ()
 restore option
 
void updateOption ()
 update option
 

Protected Attributes

FXHorizontalFrame * myContentFrame = nullptr
 content frame
 
const std::string myDefaultValue
 default value
 
const std::string myDescription
 description
 
GNEOptionsDialogmyGUIDialogOptions = nullptr
 FOX needs this.
 
const std::string myName
 name
 
const std::string myTopic
 topic
 

Private Member Functions

std::string getValue () const
 get value
 

Private Attributes

FXCheckButton * myCheckButton = nullptr
 menu check
 
MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name
 
FXButton * myResetButton = nullptr
 

Detailed Description

input bool

Definition at line 170 of file GNEOptionsDialogElements.h.

Constructor & Destructor Documentation

◆ InputBool()

GNEOptionsDialogElements::InputBool::InputBool ( GNEOptionsDialog GUIDialogOptions,
FXComposite *  parent,
const std::string &  topic,
const std::string &  name,
const std::string &  description,
const std::string &  defaultValue 
)

Member Function Documentation

◆ adjustNameSize()

void GNEOptionsDialogElements::InputOption::adjustNameSize ( )
inherited

adjust input name size

Definition at line 86 of file GNEOptionsDialogElements.cpp.

References MARGIN, MINNAMEWIDTH, and GNEOptionsDialogElements::InputOption::myNameLabel.

◆ getDescriptionLower()

const std::string GNEOptionsDialogElements::InputOption::getDescriptionLower ( ) const
inherited

get description (Lower)

Definition at line 107 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getNameLower()

const std::string GNEOptionsDialogElements::InputOption::getNameLower ( ) const
inherited

get name (Lower)

Definition at line 101 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getTopic()

const std::string & GNEOptionsDialogElements::InputOption::getTopic ( ) const
inherited

get topic

Definition at line 95 of file GNEOptionsDialogElements.cpp.

◆ getValue()

std::string GNEOptionsDialogElements::InputBool::getValue ( ) const
privatevirtual

get value

Implements GNEOptionsDialogElements::InputOption.

Definition at line 282 of file GNEOptionsDialogElements.cpp.

◆ onCmdResetOption()

long GNEOptionsDialogElements::InputBool::onCmdResetOption ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

called when user press reset button

Implements GNEOptionsDialogElements::InputOption.

Definition at line 269 of file GNEOptionsDialogElements.cpp.

References TL, and StringUtils::toBool().

◆ onCmdSetOption()

long GNEOptionsDialogElements::InputBool::onCmdSetOption ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

called when user set value in textField/button/checkBox

Implements GNEOptionsDialogElements::InputOption.

Definition at line 247 of file GNEOptionsDialogElements.cpp.

References MsgHandler::enableDebugGLMessages(), MsgHandler::enableDebugMessages(), and TL.

◆ onUpdResetOption()

long GNEOptionsDialogElements::InputOption::onUpdResetOption ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

update reset button

Definition at line 113 of file GNEOptionsDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ restoreOption()

void GNEOptionsDialogElements::InputBool::restoreOption ( )
virtual

restore option

Implements GNEOptionsDialogElements::InputOption.

Definition at line 235 of file GNEOptionsDialogElements.cpp.

References TL.

◆ updateOption()

void GNEOptionsDialogElements::InputBool::updateOption ( )
virtual

update option

Implements GNEOptionsDialogElements::InputOption.

Definition at line 223 of file GNEOptionsDialogElements.cpp.

References TL.

Referenced by InputBool().

Here is the caller graph for this function:

Field Documentation

◆ myCheckButton

FXCheckButton* GNEOptionsDialogElements::InputBool::myCheckButton = nullptr
private

menu check

Definition at line 194 of file GNEOptionsDialogElements.h.

Referenced by InputBool().

◆ myContentFrame

◆ myDefaultValue

const std::string GNEOptionsDialogElements::InputOption::myDefaultValue
protectedinherited

default value

Definition at line 97 of file GNEOptionsDialogElements.h.

◆ myDescription

const std::string GNEOptionsDialogElements::InputOption::myDescription
protectedinherited

description

Definition at line 94 of file GNEOptionsDialogElements.h.

◆ myGUIDialogOptions

◆ myName

const std::string GNEOptionsDialogElements::InputOption::myName
protectedinherited

name

Definition at line 91 of file GNEOptionsDialogElements.h.

◆ myNameLabel

MFXLabelTooltip* GNEOptionsDialogElements::InputOption::myNameLabel = nullptr
privateinherited

tooltip label for name

Definition at line 107 of file GNEOptionsDialogElements.h.

Referenced by GNEOptionsDialogElements::InputOption::adjustNameSize().

◆ myResetButton

FXButton* GNEOptionsDialogElements::InputOption::myResetButton = nullptr
privateinherited

Definition at line 110 of file GNEOptionsDialogElements.h.

◆ myTopic

const std::string GNEOptionsDialogElements::InputOption::myTopic
protectedinherited

topic

Definition at line 88 of file GNEOptionsDialogElements.h.


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