Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
const std::string getDescriptionLower () const
 get description (Lower)
 
const std::string getNameLower () const
 get name (Lower)
 
const std::string & getTopic () const
 get topic
 
 InputOption (GNEOptionsDialog *GUIDialogOptions, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 FOX-declaration.
 
virtual long onCmdResetOption (FXObject *, FXSelector, void *)=0
 called when user press reset button
 
virtual long onCmdSetOption (FXObject *, FXSelector, void *)=0
 called when user set value in textField/button/checkBox
 
long onUpdResetOption (FXObject *, FXSelector, void *)
 update reset button
 
virtual void restoreOption ()=0
 restore option (used for setting original options)
 
virtual void updateOption ()=0
 update option (used after load options)
 

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

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

Private Attributes

MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name
 
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::InputString, GNEOptionsDialogElements::InputStringVector, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputTime, and GNEOptionsDialogElements::InputFilename.

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::InputString, GNEOptionsDialogElements::InputStringVector, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputTime, and GNEOptionsDialogElements::InputFilename.

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: