![]() |
Eclipse SUMO - Simulation of Urban MObility
|
input filename 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 | |
| InputFilename (GNEOptionsDialog *GUIDialogOptions, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue) | |
| FOX-declaration. | |
| long | onCmdOpenDialog (FXObject *, FXSelector, void *) |
| called when user press open dialog button | |
| 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 Member Functions | |
| InputFilename () | |
| FOX needs this. | |
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 | |
Private Attributes | |
| FXTextField * | myFilenameTextField = nullptr |
| text field | |
| MFXLabelTooltip * | myNameLabel = nullptr |
| tooltip label for name | |
| FXButton * | myOpenFilenameButton = nullptr |
| open filename button | |
| FXButton * | myResetButton = nullptr |
input filename
Definition at line 313 of file GNEOptionsDialogElements.h.
| GNEOptionsDialogElements::InputFilename::InputFilename | ( | 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 520 of file GNEOptionsDialogElements.cpp.
References GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignButtonIcon, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, GNEOptionsDialogElements::InputOption::myContentFrame, myFilenameTextField, myOpenFilenameButton, OPEN, TL, and updateOption().
|
protected |
FOX needs this.
Definition at line 575 of file GNEOptionsDialogElements.cpp.
|
inherited |
adjust input name size
Definition at line 89 of file GNEOptionsDialogElements.cpp.
References MARGIN, MINNAMEWIDTH, and GNEOptionsDialogElements::InputOption::myNameLabel.
|
inherited |
get description (Lower)
Definition at line 110 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
|
inherited |
get name (Lower)
Definition at line 104 of file GNEOptionsDialogElements.cpp.
References StringUtils::to_lower_case().
|
inherited |
get topic
Definition at line 98 of file GNEOptionsDialogElements.cpp.
|
privatevirtual |
get value
Implements GNEOptionsDialogElements::InputOption.
Definition at line 579 of file GNEOptionsDialogElements.cpp.
| long GNEOptionsDialogElements::InputFilename::onCmdOpenDialog | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user press open dialog button
Definition at line 543 of file GNEOptionsDialogElements.cpp.
References GNEApplicationWindowHelper::openXMLFileDialog().
Referenced by FXDEFMAP().
|
virtual |
called when user press reset button
Implements GNEOptionsDialogElements::InputOption.
Definition at line 569 of file GNEOptionsDialogElements.cpp.
|
virtual |
called when user set value in textField/button/checkBox
Implements GNEOptionsDialogElements::InputOption.
Definition at line 555 of file GNEOptionsDialogElements.cpp.
References SUMOXMLDefinitions::isValidFilename().
|
inherited |
update reset button
Definition at line 116 of file GNEOptionsDialogElements.cpp.
Referenced by FXDEFMAP().
|
virtual |
restore option
Implements GNEOptionsDialogElements::InputOption.
Definition at line 537 of file GNEOptionsDialogElements.cpp.
|
virtual |
update option
Implements GNEOptionsDialogElements::InputOption.
Definition at line 531 of file GNEOptionsDialogElements.cpp.
Referenced by InputFilename().
|
protectedinherited |
content frame
Definition at line 97 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputBool::InputBool(), InputFilename(), GNEOptionsDialogElements::InputFloat::InputFloat(), GNEOptionsDialogElements::InputInt::InputInt(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), GNEOptionsDialogElements::InputStringVector::InputStringVector(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protectedinherited |
default value
Definition at line 94 of file GNEOptionsDialogElements.h.
|
protectedinherited |
description
Definition at line 91 of file GNEOptionsDialogElements.h.
|
private |
text field
Definition at line 349 of file GNEOptionsDialogElements.h.
Referenced by InputFilename().
|
protectedinherited |
FOX needs this.
GNEOptionsDialog parent
Definition at line 82 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputFloat::InputFloat(), GNEOptionsDialogElements::InputIntVector::InputIntVector(), GNEOptionsDialogElements::InputString::InputString(), and GNEOptionsDialogElements::InputTime::InputTime().
|
protectedinherited |
name
Definition at line 88 of file GNEOptionsDialogElements.h.
|
privateinherited |
tooltip label for name
Definition at line 104 of file GNEOptionsDialogElements.h.
Referenced by GNEOptionsDialogElements::InputOption::adjustNameSize().
|
private |
open filename button
Definition at line 346 of file GNEOptionsDialogElements.h.
Referenced by InputFilename().
|
privateinherited |
Definition at line 107 of file GNEOptionsDialogElements.h.
|
protectedinherited |
topic
Definition at line 85 of file GNEOptionsDialogElements.h.