![]() |
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, myContentFrame, myDefaultValue, myDescription, myName, myNameLabel, myOptionsEditor, myResetButton, myTopic, OptionRow(), RESET, and TL.
Referenced by onCmdResetOption(), GNEOptionsEditorRow::OptionBool::OptionBool(), GNEOptionsEditorRow::OptionFilename::OptionFilename(), GNEOptionsEditorRow::OptionFloat::OptionFloat(), GNEOptionsEditorRow::OptionInt::OptionInt(), GNEOptionsEditorRow::OptionIntVector::OptionIntVector(), OptionRow(), GNEOptionsEditorRow::OptionString::OptionString(), GNEOptionsEditorRow::OptionStringVector::OptionStringVector(), and GNEOptionsEditorRow::OptionTime::OptionTime().
| 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 myDescription, and StringUtils::to_lower_case().
| const std::string GNEOptionsEditorRow::OptionRow::getNameLower | ( | ) | const |
get name (Lower)
Definition at line 100 of file GNEOptionsEditorRow.cpp.
References myName, and StringUtils::to_lower_case().
| const std::string & GNEOptionsEditorRow::OptionRow::getTopic | ( | ) | const |
|
privatepure virtual |
get value
Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.
References getValue().
Referenced by getValue(), and updateResetButton().
|
pure virtual |
called when user press reset button
Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.
References OptionRow().
Referenced by FXDEFMAP().
|
pure virtual |
called when user set value in textField/button/checkBox
Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.
Referenced by FXDEFMAP().
|
pure virtual |
restore option (used for setting original options)
Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.
|
pure virtual |
update option (used after load options)
Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.
|
protected |
update reset button
Definition at line 112 of file GNEOptionsEditorRow.cpp.
References getValue(), myDefaultValue, and myResetButton.
Referenced by GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEOptionsEditorRow::OptionBool::onCmdResetOption(), GNEOptionsEditorRow::OptionFilename::onCmdResetOption(), GNEOptionsEditorRow::OptionFloat::onCmdResetOption(), GNEOptionsEditorRow::OptionInt::onCmdResetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdResetOption(), GNEOptionsEditorRow::OptionString::onCmdResetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdResetOption(), GNEOptionsEditorRow::OptionTime::onCmdResetOption(), GNEOptionsEditorRow::OptionBool::onCmdSetOption(), GNEOptionsEditorRow::OptionFilename::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdSetOption(), GNEOptionsEditorRow::OptionString::onCmdSetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), GNEOptionsEditorRow::OptionBool::updateOption(), GNEOptionsEditorRow::OptionFilename::updateOption(), GNEOptionsEditorRow::OptionFloat::updateOption(), GNEOptionsEditorRow::OptionInt::updateOption(), GNEOptionsEditorRow::OptionIntVector::updateOption(), GNEOptionsEditorRow::OptionString::updateOption(), GNEOptionsEditorRow::OptionStringVector::updateOption(), and GNEOptionsEditorRow::OptionTime::updateOption().
|
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(), OptionRow(), GNEOptionsEditorRow::OptionString::OptionString(), GNEOptionsEditorRow::OptionStringVector::OptionStringVector(), and GNEOptionsEditorRow::OptionTime::OptionTime().
|
protected |
default value
Definition at line 92 of file GNEOptionsEditorRow.h.
Referenced by GNEOptionsEditorRow::OptionBool::onCmdResetOption(), GNEOptionsEditorRow::OptionFilename::onCmdResetOption(), GNEOptionsEditorRow::OptionFloat::onCmdResetOption(), GNEOptionsEditorRow::OptionInt::onCmdResetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdResetOption(), GNEOptionsEditorRow::OptionString::onCmdResetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdResetOption(), GNEOptionsEditorRow::OptionTime::onCmdResetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), OptionRow(), and updateResetButton().
|
protected |
description
Definition at line 89 of file GNEOptionsEditorRow.h.
Referenced by getDescriptionLower(), and OptionRow().
|
protected |
name
Definition at line 86 of file GNEOptionsEditorRow.h.
Referenced by getNameLower(), GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEOptionsEditorRow::OptionBool::onCmdSetOption(), GNEOptionsEditorRow::OptionFilename::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdSetOption(), GNEOptionsEditorRow::OptionString::onCmdSetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), OptionRow(), GNEOptionsEditorRow::OptionBool::restoreOption(), GNEOptionsEditorRow::OptionFilename::restoreOption(), GNEOptionsEditorRow::OptionFloat::restoreOption(), GNEOptionsEditorRow::OptionInt::restoreOption(), GNEOptionsEditorRow::OptionIntVector::restoreOption(), GNEOptionsEditorRow::OptionString::restoreOption(), GNEOptionsEditorRow::OptionStringVector::restoreOption(), GNEOptionsEditorRow::OptionTime::restoreOption(), GNEOptionsEditorRow::OptionBool::updateOption(), GNEOptionsEditorRow::OptionFilename::updateOption(), GNEOptionsEditorRow::OptionFloat::updateOption(), GNEOptionsEditorRow::OptionInt::updateOption(), GNEOptionsEditorRow::OptionIntVector::updateOption(), GNEOptionsEditorRow::OptionString::updateOption(), GNEOptionsEditorRow::OptionStringVector::updateOption(), and GNEOptionsEditorRow::OptionTime::updateOption().
|
private |
tooltip label for name
Definition at line 105 of file GNEOptionsEditorRow.h.
Referenced by adjustNameSize(), and OptionRow().
|
protected |
FOX needs this.
GNEOptionsEditor parent
Definition at line 80 of file GNEOptionsEditorRow.h.
Referenced by GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEOptionsEditorRow::OptionBool::onCmdSetOption(), GNEOptionsEditorRow::OptionFilename::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdSetOption(), GNEOptionsEditorRow::OptionString::onCmdSetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::OptionFloat(), GNEOptionsEditorRow::OptionIntVector::OptionIntVector(), OptionRow(), GNEOptionsEditorRow::OptionString::OptionString(), GNEOptionsEditorRow::OptionTime::OptionTime(), GNEOptionsEditorRow::OptionBool::restoreOption(), GNEOptionsEditorRow::OptionFilename::restoreOption(), GNEOptionsEditorRow::OptionFloat::restoreOption(), GNEOptionsEditorRow::OptionInt::restoreOption(), GNEOptionsEditorRow::OptionIntVector::restoreOption(), GNEOptionsEditorRow::OptionString::restoreOption(), GNEOptionsEditorRow::OptionStringVector::restoreOption(), GNEOptionsEditorRow::OptionTime::restoreOption(), GNEOptionsEditorRow::OptionBool::updateOption(), GNEOptionsEditorRow::OptionFilename::updateOption(), GNEOptionsEditorRow::OptionFloat::updateOption(), GNEOptionsEditorRow::OptionInt::updateOption(), GNEOptionsEditorRow::OptionIntVector::updateOption(), GNEOptionsEditorRow::OptionString::updateOption(), GNEOptionsEditorRow::OptionStringVector::updateOption(), and GNEOptionsEditorRow::OptionTime::updateOption().
|
private |
Definition at line 108 of file GNEOptionsEditorRow.h.
Referenced by OptionRow(), and updateResetButton().
|
protected |
topic
Definition at line 83 of file GNEOptionsEditorRow.h.
Referenced by getTopic(), and OptionRow().