Eclipse SUMO - Simulation of Urban MObility
|
input option More...
#include <GNEOptionsDialogElements.h>
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 | |
GNEOptionsDialog * | myGUIDialogOptions = 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 | |
MFXLabelTooltip * | myNameLabel = nullptr |
tooltip label for name | |
FXButton * | myResetButton = nullptr |
input option
Definition at line 44 of file GNEOptionsDialogElements.h.
GNEOptionsDialogElements::InputOption::InputOption | ( | GNEOptionsDialog * | GUIDialogOptions, |
FXComposite * | parent, | ||
const std::string & | topic, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::string & | defaultValue | ||
) |
FOX-declaration.
constructor
Definition at line 66 of file GNEOptionsDialogElements.cpp.
References GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThickedFixed, MID_GNE_RESET, MINNAMEWIDTH, RESET, and TL.
void GNEOptionsDialogElements::InputOption::adjustNameSize | ( | ) |
adjust input name size
Definition at line 86 of file GNEOptionsDialogElements.cpp.
References MARGIN, MINNAMEWIDTH, and myNameLabel.
const std::string GNEOptionsDialogElements::InputOption::getDescriptionLower | ( | ) | const |
get description (Lower)
Definition at line 107 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
const std::string GNEOptionsDialogElements::InputOption::getNameLower | ( | ) | const |
get name (Lower)
Definition at line 101 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
const std::string & GNEOptionsDialogElements::InputOption::getTopic | ( | ) | const |
get topic
Definition at line 95 of file GNEOptionsDialogElements.cpp.
|
privatepure virtual |
get value
Implemented in GNEOptionsDialogElements::InputString, GNEOptionsDialogElements::InputStringVector, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputTime, and GNEOptionsDialogElements::InputFilename.
|
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().
|
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().
long GNEOptionsDialogElements::InputOption::onUpdResetOption | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
update reset button
Definition at line 113 of file GNEOptionsDialogElements.cpp.
Referenced by FXDEFMAP().
|
pure virtual |
restore option (used for setting original options)
Implemented in GNEOptionsDialogElements::InputString, GNEOptionsDialogElements::InputStringVector, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputTime, and GNEOptionsDialogElements::InputFilename.
|
pure virtual |
update option (used after load options)
Implemented in GNEOptionsDialogElements::InputString, GNEOptionsDialogElements::InputStringVector, GNEOptionsDialogElements::InputBool, GNEOptionsDialogElements::InputInt, GNEOptionsDialogElements::InputIntVector, GNEOptionsDialogElements::InputFloat, GNEOptionsDialogElements::InputTime, and GNEOptionsDialogElements::InputFilename.
|
protected |
content frame
Definition at line 100 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputBool::InputBool(), GNEOptionsDialogElements::InputFilename::InputFilename(), GNEOptionsDialogElements::InputFloat::InputFloat(), GNEOptionsDialogElements::InputInt::InputInt(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), GNEOptionsDialogElements::InputStringVector::InputStringVector(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protected |
default value
Definition at line 97 of file GNEOptionsDialogElements.h.
|
protected |
description
Definition at line 94 of file GNEOptionsDialogElements.h.
|
protected |
FOX needs this.
GNEOptionsDialog parent
Definition at line 85 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputFloat::InputFloat(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protected |
name
Definition at line 91 of file GNEOptionsDialogElements.h.
|
private |
tooltip label for name
Definition at line 107 of file GNEOptionsDialogElements.h.
Referenced by adjustNameSize().
|
private |
Definition at line 110 of file GNEOptionsDialogElements.h.
|
protected |
topic
Definition at line 88 of file GNEOptionsDialogElements.h.