Eclipse SUMO - Simulation of Urban MObility
|
input float 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 | |
InputFloat (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 | |
GNEOptionsDialog * | myGUIDialogOptions = nullptr |
FOX needs this. | |
const std::string | myName |
name | |
const std::string | myTopic |
topic | |
Private Member Functions | |
std::string | getValue () const |
get value | |
std::string | parseFloat (const std::string &value) const |
parse float xx to xx.00 | |
Private Attributes | |
FXTextField * | myFloatTextField = nullptr |
text field | |
MFXLabelTooltip * | myNameLabel = nullptr |
tooltip label for name | |
FXButton * | myResetButton = nullptr |
input float
Definition at line 254 of file GNEOptionsDialogElements.h.
GNEOptionsDialogElements::InputFloat::InputFloat | ( | GNEOptionsDialog * | GUIDialogOptions, |
FXComposite * | parent, | ||
const std::string & | topic, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::string & | defaultValue | ||
) |
constructor
Definition at line 395 of file GNEOptionsDialogElements.cpp.
References OptionsCont::getFloat(), GUIDesignTextFieldNCol, GUIDesignTextFieldRestricted, MID_GNE_SET_ATTRIBUTE, GNEOptionsDialogElements::InputOption::myContentFrame, myFloatTextField, GNEOptionsDialogElements::InputOption::myGUIDialogOptions, GNEOptionsDialog::myOptionsContainer, toString(), and updateOption().
|
inherited |
adjust input name size
Definition at line 86 of file GNEOptionsDialogElements.cpp.
References MARGIN, MINNAMEWIDTH, and GNEOptionsDialogElements::InputOption::myNameLabel.
|
inherited |
get description (Lower)
Definition at line 107 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
|
inherited |
get name (Lower)
Definition at line 101 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
|
inherited |
get topic
Definition at line 95 of file GNEOptionsDialogElements.cpp.
|
privatevirtual |
get value
Implements GNEOptionsDialogElements::InputOption.
Definition at line 438 of file GNEOptionsDialogElements.cpp.
|
virtual |
called when user press reset button
Implements GNEOptionsDialogElements::InputOption.
Definition at line 431 of file GNEOptionsDialogElements.cpp.
|
virtual |
called when user set value in textField/button/checkBox
Implements GNEOptionsDialogElements::InputOption.
Definition at line 417 of file GNEOptionsDialogElements.cpp.
|
inherited |
update reset button
Definition at line 113 of file GNEOptionsDialogElements.cpp.
Referenced by FXDEFMAP().
|
private |
parse float xx to xx.00
Definition at line 444 of file GNEOptionsDialogElements.cpp.
References StringUtils::toDouble(), and toString().
|
virtual |
restore option
Implements GNEOptionsDialogElements::InputOption.
Definition at line 411 of file GNEOptionsDialogElements.cpp.
References toString().
|
virtual |
update option
Implements GNEOptionsDialogElements::InputOption.
Definition at line 405 of file GNEOptionsDialogElements.cpp.
References toString().
Referenced by InputFloat().
|
protectedinherited |
content frame
Definition at line 100 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputBool::InputBool(), GNEOptionsDialogElements::InputFilename::InputFilename(), InputFloat(), GNEOptionsDialogElements::InputInt::InputInt(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), GNEOptionsDialogElements::InputStringVector::InputStringVector(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protectedinherited |
default value
Definition at line 97 of file GNEOptionsDialogElements.h.
|
protectedinherited |
description
Definition at line 94 of file GNEOptionsDialogElements.h.
|
private |
|
protectedinherited |
FOX needs this.
GNEOptionsDialog parent
Definition at line 85 of file GNEOptionsDialogElements.h.
Referenced by InputFloat(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protectedinherited |
name
Definition at line 91 of file GNEOptionsDialogElements.h.
|
privateinherited |
tooltip label for name
Definition at line 107 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputOption::adjustNameSize().
|
privateinherited |
Definition at line 110 of file GNEOptionsDialogElements.h.
|
protectedinherited |
topic
Definition at line 88 of file GNEOptionsDialogElements.h.