18 #ifdef GUI2_EXPERIMENTAL_LISTBOX
55 : index_(selection), themes_(themes)
61 tlistbox& list = find_widget<tlistbox>(&window,
"themes",
false);
62 window.keyboard_capture(&list);
66 std::map<std::string, string_map>
data;
70 if(theme_name.empty()) {
74 column[
"label"] = theme_name;
75 data.insert(std::make_pair(
"name", column));
76 column[
"label"] =
t.description;
77 data.insert(std::make_pair(
"description", column));
95 tlistbox& list = find_widget<tlistbox>(&window,
"themes",
false);
bool select_row(const unsigned row, const bool select=true)
Selectes a row.
REGISTER_DIALOG(label_settings)
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
void post_show(twindow &window)
Inherited from tdialog.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
Dialog is closed with ok button.
unsigned get_item_count() const
Returns the number of items in the listbox.
void add_row(const string_map &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
std::map< std::string, t_string > string_map
GLenum GLenum GLvoid GLvoid * column
void pre_show(twindow &window)
Inherited from tdialog.
Definitions related to theme-support.
std::vector< theme_info > themes_
int get_selected_row() const
Returns the first selected row.
GLsizei const GLcharARB ** string