Eclipse SUMO - Simulation of Urban MObility
GNEOptionsDialogElements::InputOption Class Referenceabstract

input option More...

#include <GNEOptionsDialogElements.h>

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

Public Member Functions

void adjustNameSize ()
 adjust input name size More...
 
const std::string getDescriptionLower () const
 get description (Lower) More...
 
const std::string getNameLower () const
 get name (Lower) More...
 
const std::string & getTopic () const
 get topic More...
 
 InputOption (GNEOptionsDialog *GUIDialogOptions, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 FOX-declaration. More...
 
virtual long onCmdResetOption (FXObject *, FXSelector, void *)=0
 called when user press reset button More...
 
virtual long onCmdSetOption (FXObject *, FXSelector, void *)=0
 called when user set value in textField/button/checkBox More...
 
long onUpdResetOption (FXObject *, FXSelector, void *)
 update reset button More...
 
virtual void restoreOption ()=0
 restore option (used for setting original options) More...
 
virtual void updateOption ()=0
 update option (used after load options) More...
 

Protected Attributes

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

Private Member Functions

virtual std::string getValue () const =0
 get value More...
 

Private Attributes

MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name More...
 
FXButton * myResetButton = nullptr
 

Detailed Description

input option

Definition at line 44 of file GNEOptionsDialogElements.h.

Constructor & Destructor Documentation

◆ InputOption()

GNEOptionsDialogElements::InputOption::InputOption ( 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 ( )

adjust input name size

Definition at line 86 of file GNEOptionsDialogElements.cpp.

References MARGIN, MINNAMEWIDTH, and myNameLabel.

◆ getDescriptionLower()

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

get description (Lower)

Definition at line 107 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getNameLower()

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

get name (Lower)

Definition at line 101 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getTopic()

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

get topic

Definition at line 95 of file GNEOptionsDialogElements.cpp.

◆ getValue()

◆ onCmdResetOption()

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

called when user press reset button

Implemented in GNEOptionsDialogElements::InputFilename, GNEOptionsDialogElements::InputTime, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputStringVector, and GNEOptionsDialogElements::InputString.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetOption()

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

called when user set value in textField/button/checkBox

Implemented in GNEOptionsDialogElements::InputFilename, GNEOptionsDialogElements::InputTime, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputStringVector, and GNEOptionsDialogElements::InputString.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetOption()

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

update reset button

Definition at line 113 of file GNEOptionsDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ restoreOption()

◆ updateOption()

Field Documentation

◆ myContentFrame

◆ myDefaultValue

const std::string GNEOptionsDialogElements::InputOption::myDefaultValue
protected

default value

Definition at line 97 of file GNEOptionsDialogElements.h.

◆ myDescription

const std::string GNEOptionsDialogElements::InputOption::myDescription
protected

description

Definition at line 94 of file GNEOptionsDialogElements.h.

◆ myGUIDialogOptions

◆ myName

const std::string GNEOptionsDialogElements::InputOption::myName
protected

name

Definition at line 91 of file GNEOptionsDialogElements.h.

◆ myNameLabel

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

tooltip label for name

Definition at line 107 of file GNEOptionsDialogElements.h.

Referenced by adjustNameSize().

◆ myResetButton

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

Definition at line 110 of file GNEOptionsDialogElements.h.

◆ myTopic

const std::string GNEOptionsDialogElements::InputOption::myTopic
protected

topic

Definition at line 88 of file GNEOptionsDialogElements.h.


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