72 const std::vector<std::string>& topics = oc.
getSubTopics();
73 for (std::vector<std::string>::const_iterator it_topic = topics.begin(); it_topic != topics.end(); it_topic++) {
74 std::string topic = *it_topic;
75 if (topic ==
"Configuration") {
78 new FXTabItem(tabbook, topic.c_str(), NULL, TAB_LEFT_NORMAL);
79 FXScrollWindow* scrollTab =
new FXScrollWindow(tabbook, LAYOUT_FILL_X | LAYOUT_FILL_Y);
80 FXVerticalFrame* tabContent =
new FXVerticalFrame(scrollTab, FRAME_THICK | FRAME_RAISED | LAYOUT_FILL_X | LAYOUT_FILL_Y);
82 for (std::vector<std::string>::const_iterator it_opt = entries.begin(); it_opt != entries.end(); it_opt++) {
83 std::string name = *it_opt;
84 if (name !=
"geometry.remove" && name !=
"edges.join" && name !=
"geometry.split" && name !=
"ramps.guess" && name !=
"ramps.set") {
86 if (type ==
"STR" || type ==
"FILE") {
88 }
else if (type ==
"BOOL") {
90 }
else if (type ==
"INT") {
92 }
else if (type ==
"FLOAT") {
111 FXHorizontalFrame(parent, LAYOUT_FILL_X),
114 new FXLabel(
this, name.c_str());
115 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_NORMAL | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
116 myTextField->setText(oc.
getString(name).c_str());
130 FXHorizontalFrame(parent, LAYOUT_FILL_X),
133 new FXLabel(
this, name.c_str());
135 myCheck->setCheck(oc.
getBool(name));
149 FXHorizontalFrame(parent, LAYOUT_FILL_X),
152 new FXLabel(
this, name.c_str());
153 myTextField =
new FXTextField(
this, 100,
this,
MID_GNE_SET_ATTRIBUTE, TEXTFIELD_INTEGER | LAYOUT_RIGHT, 0, 0, 0, 0, 4, 2, 0, 2);
168 FXHorizontalFrame(parent, LAYOUT_FILL_X),
171 new FXLabel(
this, name.c_str());
172 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[]
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.
const std::vector< std::string > & getSubTopics() const
return the list of subtopics
#define GUIDesignContentsFrame
design for the main content frame of every frame/dialog
~GNEDialog_Wizard()
Destructor.
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.
std::string getTypeName(const std::string name)
return the type name for the given option
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define GUIDesignTabBook
desgin for TabBooks
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
#define GUIDesignDialogBox
std::vector< std::string > getSubTopicsEntries(const std::string &subtopic) const
return the list of entries for the given subtopic
A storage for options typed value containers)
#define GUIDesignButtonOK
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon