43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 66 FXIMPLEMENT(
GNEDialog_Wizard::InputBool, FXHorizontalFrame, InputBoolMap, ARRAYNUMBER(InputBoolMap))
67 FXIMPLEMENT(
GNEDialog_Wizard::InputInt, FXHorizontalFrame, InputIntMap, ARRAYNUMBER(InputIntMap))
68 FXIMPLEMENT(
GNEDialog_Wizard::InputFloat, FXHorizontalFrame, InputFloatMap, ARRAYNUMBER(InputFloatMap))
80 const std::vector<std::string>& topics = oc.
getSubTopics();
81 for (std::vector<std::string>::const_iterator it_topic = topics.begin(); it_topic != topics.end(); it_topic++) {
82 std::string topic = *it_topic;
83 if (topic ==
"Configuration") {
86 new FXTabItem(tabbook, topic.c_str(), NULL, TAB_LEFT_NORMAL);
87 FXScrollWindow* scrollTab =
new FXScrollWindow(tabbook, LAYOUT_FILL_X | LAYOUT_FILL_Y);
88 FXVerticalFrame* tabContent =
new FXVerticalFrame(scrollTab, FRAME_THICK | FRAME_RAISED | LAYOUT_FILL_X | LAYOUT_FILL_Y);
90 for (std::vector<std::string>::const_iterator it_opt = entries.begin(); it_opt != entries.end(); it_opt++) {
91 std::string name = *it_opt;
92 if (name !=
"geometry.remove" && name !=
"edges.join" && name !=
"geometry.split" && name !=
"ramps.guess" && name !=
"ramps.set") {
94 if (type ==
"STR" || type ==
"FILE") {
96 }
else if (type ==
"BOOL") {
97 new InputBool(tabContent, name);
98 }
else if (type ==
"INT") {
99 new InputInt(tabContent, name);
100 }
else if (type ==
"FLOAT") {
101 new InputFloat(tabContent, name);
119 FXHorizontalFrame(parent, LAYOUT_FILL_X),
122 new FXLabel(
this, name.c_str());
123 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_NORMAL | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
124 myTextField->setText(oc.
getString(name).c_str());
138 FXHorizontalFrame(parent, LAYOUT_FILL_X),
141 new FXLabel(
this, name.c_str());
143 myCheck->setCheck(oc.
getBool(name));
157 FXHorizontalFrame(parent, LAYOUT_FILL_X),
160 new FXLabel(
this, name.c_str());
161 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_INTEGER | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
176 FXHorizontalFrame(parent, LAYOUT_FILL_X),
179 new FXLabel(
this, name.c_str());
180 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_REAL | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
FXDEFMAP(GNEDialog_Wizard::InputString) InputStringMap[]
const std::vector< std::string > & getSubTopics() const
return the list of subtopics
void resetWritable()
Resets all options to be writeable.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
~GNEDialog_Wizard()
Destructor.
SUMOReal getFloat(const std::string &name) const
Returns the SUMOReal-value of the named option (only for Option_Float)
static OptionsCont & getOptions()
Retrieves the options.
std::string getTypeName(const std::string name)
return the type name for the given option
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignTabBook
desgin for TabBooks
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
#define GUIDesignDialogBox
A storage for options typed value containers)
#define GUIDesignButtonOK
std::vector< std::string > getSubTopicsEntries(const std::string &subtopic) const
return the list of entries for the given subtopic
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon