![]() |
Eclipse SUMO - Simulation of Urban MObility
|
input option More...
#include <GNEOptionsEditorRow.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 | |
| 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 | |
| OptionRow (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue) | |
| FOX-declaration. | |
| virtual void | restoreOption ()=0 |
| restore option (used for setting original options) | |
| virtual void | updateOption ()=0 |
| update option (used after load options) | |
Protected Member Functions | |
| void | updateResetButton () |
| update reset button | |
Protected Attributes | |
| FXHorizontalFrame * | myContentFrame = nullptr |
| content frame | |
| const std::string | myDefaultValue |
| default value | |
| const std::string | myDescription |
| description | |
| const std::string | myName |
| name | |
| GNEOptionsEditor * | myOptionsEditor = nullptr |
| FOX needs this. | |
| 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 42 of file GNEOptionsEditorRow.h.
| GNEOptionsEditorRow::OptionRow::OptionRow | ( | GNEOptionsEditor * | optionsEditor, |
| FXComposite * | parent, | ||
| const std::string & | topic, | ||
| const std::string & | name, | ||
| const std::string & | description, | ||
| const std::string & | defaultValue | ||
| ) |
FOX-declaration.
constructor
Definition at line 64 of file GNEOptionsEditorRow.cpp.
References GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThickedFixed, MID_GNE_RESET, MINNAMEWIDTH, RESET, and TL.
| void GNEOptionsEditorRow::OptionRow::adjustNameSize | ( | ) |
adjust input name size
Definition at line 85 of file GNEOptionsEditorRow.cpp.
References MARGIN, MINNAMEWIDTH, and myNameLabel.
| const std::string GNEOptionsEditorRow::OptionRow::getDescriptionLower | ( | ) | const |
get description (Lower)
Definition at line 106 of file GNEOptionsEditorRow.cpp.
References StringUtils::to_lower_case().
| const std::string GNEOptionsEditorRow::OptionRow::getNameLower | ( | ) | const |
get name (Lower)
Definition at line 100 of file GNEOptionsEditorRow.cpp.
References StringUtils::to_lower_case().
| const std::string & GNEOptionsEditorRow::OptionRow::getTopic | ( | ) | const |
get topic
Definition at line 94 of file GNEOptionsEditorRow.cpp.
|
privatepure virtual |
get value
Implemented in GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.
|
pure virtual |
called when user press reset button
Implemented in GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.
Referenced by FXDEFMAP().
|
pure virtual |
called when user set value in textField/button/checkBox
Implemented in GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.
Referenced by FXDEFMAP().
|
pure virtual |
restore option (used for setting original options)
Implemented in GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.
|
pure virtual |
update option (used after load options)
Implemented in GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.
|
protected |
update reset button
Definition at line 112 of file GNEOptionsEditorRow.cpp.
|
protected |
content frame
Definition at line 95 of file GNEOptionsEditorRow.h.
Referenced by GNEOptionsEditorRow::OptionBool::OptionBool(), GNEOptionsEditorRow::OptionFilename::OptionFilename(), GNEOptionsEditorRow::OptionFloat::OptionFloat(), GNEOptionsEditorRow::OptionInt::OptionInt(), GNEOptionsEditorRow::OptionIntVector::OptionIntVector(), GNEOptionsEditorRow::OptionString::OptionString(), GNEOptionsEditorRow::OptionStringVector::OptionStringVector(), and GNEOptionsEditorRow::OptionTime::OptionTime().
|
protected |
default value
Definition at line 92 of file GNEOptionsEditorRow.h.
|
protected |
description
Definition at line 89 of file GNEOptionsEditorRow.h.
|
protected |
name
Definition at line 86 of file GNEOptionsEditorRow.h.
|
private |
tooltip label for name
Definition at line 105 of file GNEOptionsEditorRow.h.
Referenced by adjustNameSize().
|
protected |
FOX needs this.
GNEOptionsEditor parent
Definition at line 80 of file GNEOptionsEditorRow.h.
Referenced by GNEOptionsEditorRow::OptionFloat::OptionFloat(), GNEOptionsEditorRow::OptionIntVector::OptionIntVector(), GNEOptionsEditorRow::OptionString::OptionString(), and GNEOptionsEditorRow::OptionTime::OptionTime().
|
private |
Definition at line 108 of file GNEOptionsEditorRow.h.
|
protected |
topic
Definition at line 83 of file GNEOptionsEditorRow.h.