19 #ifndef _MFORMS_SIMPLEFORM_H_
20 #define _MFORMS_SIMPLEFORM_H_
39 SimpleForm(
const std::string &title,
const std::string &ok_caption);
42 void parse_definition(
const std::string &definition);
47 void add_label(
const std::string &text,
bool bold);
49 void add_file_picker(
const std::string &name,
const std::string &caption,
50 const std::string &default_value=
"");
52 void add_text_entry(
const std::string &name,
const std::string &caption,
53 const std::string &default_value=
"");
55 void add_text_area(
const std::string &name,
const std::string &caption,
56 int rows,
const std::string &default_value=
"");
58 void add_checkbox(
const std::string &name,
const std::string &caption,
59 bool default_value=
false);
61 void add_select(
const std::string &name,
const std::string &caption,
62 const std::list<std::string> &items,
int default_index=-1);
66 std::map<std::string, View*> get_views();
67 std::string get_string_value(
const std::string &name);
68 bool get_bool_value(
const std::string &name);
69 int get_int_value(
const std::string &name);
78 #pragma warning(disable:4251)