20 #ifndef _MFORMS_POPUPSELECT_H_
21 #define _MFORMS_POPUPSELECT_H_
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 struct SelectorImplPtrs
41 void (*clear)(Selector *
self);
42 void (*add_items)(Selector *
self,
const std::list<std::string> &items);
43 int (*add_item)(Selector *
self,
const std::string &item);
44 std::string (*get_item)(Selector *
self,
int index);
45 std::string (*get_text)(Selector *
self);
46 void (*set_index)(Selector *
self,
int index);
47 int (*get_index)(Selector *
self);
48 int (*get_item_count)(Selector *
self);
49 void (*set_value)(Selector *
self,
const std::string& value);
67 int add_item(
const std::string &item);
69 void add_items(
const std::list<std::string> &items);
72 std::string get_item_title(
int i);
75 void set_selected(
int index);
77 int index_of_item_with_title(
const std::string &title);
80 virtual std::string get_string_value();
82 int get_selected_index();
86 void set_value(
const std::string& value);
93 boost::signals2::signal<void ()>*
signal_changed() {
return &_signal_changed; }
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS