30 : index_(selection), themes_(themes)
36 listbox& list = find_widget<listbox>(&window,
"themes",
false);
37 window.keyboard_capture(&list);
41 std::map<std::string, string_map> data;
44 std::string theme_name =
t.name;
45 if(theme_name.empty()) {
49 column[
"label"] = theme_name;
50 data.emplace(
"name", column);
51 column[
"label"] =
t.description;
52 data.emplace(
"description", column);
70 listbox& list = find_widget<listbox>(&window,
"themes",
false);
Dialog for selecting a GUI theme.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
int get_selected_row() const
Returns the first selected row.
std::vector< theme_info > themes_
bool select_row(const unsigned row, const bool select=true)
Selects a row.
This file contains the settings handling of the widget library.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
unsigned get_item_count() const
Returns the number of items in the listbox.
Definitions related to theme-support.
grid & 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.
int get_retval() const
Returns the cached window exit code.
Dialog was closed with the OK button.
base class of top level items, the only item which needs to store the final canvases to draw on...