15 std::string parent_type, parent_options;
17 std::string textual_gui_definition;
18 bool is_named_gui_assignment_m;
21 enum ParsingTasks { PT_NR_TOGGLES, PT_INIT_TOGGLES, PT_CREATE_GUI };
22 void parse_definition(ParsingTasks pt);
23 std::string error_start(
const char* ptr)
const;
24 bool find_member(
const std::string& name,
void*& member_ptr, std::string& member_type);
28 const std::string& gui_def =
"",
bool _is_named_gui_assignment =
false);
37 std::string get_parent_type()
const;
39 std::string get_type_name()
const;
43 void read_gui_definition(
const std::string& file_name);
45 void set_gui_definition(
const std::string& new_def);
47 const std::string& get_gui_definition()
const;
49 bool is_named_gui_assignment()
const {
return is_named_gui_assignment_m; }
51 void set_named_gui_assignment(
bool value =
true) { is_named_gui_assignment_m = value; }
bool create_gui(provider *p, const std::string &label, void *value_ptr, const std::string &value_type, const std::string &gui_type, const std::string &options, bool *toggles)
create the gui for a composed structure