 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
67 FXTabBook* tabbook =
new FXTabBook(contentFrame,
nullptr, 0,
GUIDesignTabBook);
70 if (it_topic ==
"Configuration") {
73 new FXTabItem(tabbook, it_topic.c_str(),
nullptr, TAB_LEFT_NORMAL);
74 FXScrollWindow* scrollTab =
new FXScrollWindow(tabbook, LAYOUT_FILL_X | LAYOUT_FILL_Y);
75 FXVerticalFrame* tabContent =
new FXVerticalFrame(scrollTab, FRAME_THICK | FRAME_RAISED | LAYOUT_FILL_X | LAYOUT_FILL_Y);
77 for (
auto it_opt : entries) {
78 if (it_opt !=
"geometry.remove" && it_opt !=
"edges.join" && it_opt !=
"geometry.split" && it_opt !=
"ramps.guess" && it_opt !=
"ramps.set") {
80 if (type ==
"STR" || type ==
"FILE") {
82 }
else if (type ==
"BOOL") {
84 }
else if (type ==
"INT") {
86 }
else if (type ==
"FLOAT") {
105 FXHorizontalFrame(parent, LAYOUT_FILL_X),
108 new FXLabel(
this, (name +
"\t\t" + oc.
getDescription(name)).c_str());
109 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_NORMAL | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
118 oc.
set(myName, myTextField->getText().text());
124 FXHorizontalFrame(parent, LAYOUT_FILL_X),
127 new FXLabel(
this, (name +
"\t\t" + oc.
getDescription(name)).c_str());
137 oc.
set(myName, myCheck->getCheck() ?
"true" :
"false");
139 if ((myName ==
"gui-testing-debug") && oc.
isSet(
"gui-testing-debug")) {
142 if ((myName ==
"gui-testing-debug-gl") && oc.
isSet(
"gui-testing-debug-gl")) {
150 FXHorizontalFrame(parent, LAYOUT_FILL_X),
153 new FXLabel(
this, (name +
"\t\t" + oc.
getDescription(name)).c_str());
154 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_INTEGER | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
163 oc.
set(myName, myTextField->getText().text());
169 FXHorizontalFrame(parent, LAYOUT_FILL_X),
172 new FXLabel(
this, (name +
"\t\t" + oc.
getDescription(name)).c_str());
173 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_REAL | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
182 oc.
set(myName, myTextField->getText().text());
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
void resetWritable()
Resets all options to be writeable.
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
#define GUIDesignStatusBar
design used in status bar
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
#define GUIDesignButtonOK
const std::vector< std::string > & getSubTopics() const
return the list of subtopics
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.
const std::string & getDescription(const std::string &name) const
Returns the option description.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
static void enableDebugGLMessages(bool enable)
enable/disable gl-debug messages
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
A storage for options typed value containers)
FXDEFMAP(GUIDialog_Options::InputString) InputStringMap[]
~GUIDialog_Options()
Destructor.
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignTabBook
desgin for TabBooks
std::string getTypeName(const std::string name)
return the type name for the given option
std::vector< std::string > getSubTopicsEntries(const std::string &subtopic) const
return the list of entries for the given subtopic
#define GUIDesignDialogBox
static void enableDebugMessages(bool enable)
enable/disable debug messages