![]() |
Eclipse SUMO - Simulation of Urban MObility
|
input string 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 | |
| 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 | |
| OptionString (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue) | |
| constructor | |
| void | restoreOption () |
| restore option | |
| void | updateOption () |
| update option | |
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 | |
| std::string | getValue () const |
| get value | |
Private Attributes | |
| MFXLabelTooltip * | myNameLabel = nullptr |
| tooltip label for name | |
| FXButton * | myResetButton = nullptr |
| FXTextField * | myStringTextField = nullptr |
| text field | |
input string
Definition at line 112 of file GNEOptionsEditorRow.h.
| GNEOptionsEditorRow::OptionString::OptionString | ( | GNEOptionsEditor * | optionsEditor, |
| FXComposite * | parent, | ||
| const std::string & | topic, | ||
| const std::string & | name, | ||
| const std::string & | description, | ||
| const std::string & | defaultValue ) |
constructor
Definition at line 124 of file GNEOptionsEditorRow.cpp.
References GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, GNEOptionsEditorRow::OptionRow::myContentFrame, GNEOptionsEditorRow::OptionRow::myOptionsEditor, myStringTextField, GNEOptionsEditorRow::OptionRow::OptionRow(), and updateOption().
|
inherited |
adjust input name size
Definition at line 85 of file GNEOptionsEditorRow.cpp.
References MARGIN, MINNAMEWIDTH, and myNameLabel.
|
inherited |
get description (Lower)
Definition at line 106 of file GNEOptionsEditorRow.cpp.
References myDescription, and StringUtils::to_lower_case().
|
inherited |
get name (Lower)
Definition at line 100 of file GNEOptionsEditorRow.cpp.
References myName, and StringUtils::to_lower_case().
|
inherited |
|
privatevirtual |
get value
Implements GNEOptionsEditorRow::OptionRow.
Definition at line 166 of file GNEOptionsEditorRow.cpp.
References myStringTextField.
|
virtual |
called when user press reset button
Implements GNEOptionsEditorRow::OptionRow.
Definition at line 158 of file GNEOptionsEditorRow.cpp.
References GNEOptionsEditorRow::OptionRow::myDefaultValue, myStringTextField, and GNEOptionsEditorRow::OptionRow::updateResetButton().
|
virtual |
called when user set value in textField/button/checkBox
Implements GNEOptionsEditorRow::OptionRow.
Definition at line 148 of file GNEOptionsEditorRow.cpp.
References GNEOptionsEditorRow::OptionRow::myName, GNEOptionsEditorRow::OptionRow::myOptionsEditor, myStringTextField, and GNEOptionsEditorRow::OptionRow::updateResetButton().
Referenced by restoreOption().
|
virtual |
restore option
Implements GNEOptionsEditorRow::OptionRow.
Definition at line 141 of file GNEOptionsEditorRow.cpp.
References GNEOptionsEditorRow::OptionRow::myName, GNEOptionsEditorRow::OptionRow::myOptionsEditor, myStringTextField, and onCmdSetOption().
|
virtual |
update option
Implements GNEOptionsEditorRow::OptionRow.
Definition at line 134 of file GNEOptionsEditorRow.cpp.
References GNEOptionsEditorRow::OptionRow::myName, GNEOptionsEditorRow::OptionRow::myOptionsEditor, myStringTextField, and GNEOptionsEditorRow::OptionRow::updateResetButton().
Referenced by OptionString().
|
protectedinherited |
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().
|
protectedinherited |
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().
|
protectedinherited |
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().
|
protectedinherited |
description
Definition at line 89 of file GNEOptionsEditorRow.h.
Referenced by getDescriptionLower(), and OptionRow().
|
protectedinherited |
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().
|
privateinherited |
tooltip label for name
Definition at line 105 of file GNEOptionsEditorRow.h.
Referenced by adjustNameSize(), and OptionRow().
|
protectedinherited |
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().
|
privateinherited |
Definition at line 108 of file GNEOptionsEditorRow.h.
Referenced by OptionRow(), and updateResetButton().
|
private |
text field
Definition at line 136 of file GNEOptionsEditorRow.h.
Referenced by getValue(), onCmdResetOption(), onCmdSetOption(), OptionString(), restoreOption(), and updateOption().
|
protectedinherited |
topic
Definition at line 83 of file GNEOptionsEditorRow.h.
Referenced by getTopic(), and OptionRow().