36 listbox& list = find_widget<listbox>(
"themes");
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>(
"themes");
Abstract base class for all modal dialogs.
int get_retval() const
Returns the cached window exit code.
virtual void post_show() override
Actions to be taken after the window has been shown.
virtual void pre_show() override
Actions to be taken before showing the window.
std::vector< theme_info > themes_
grid & add_row(const widget_item &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
bool select_row(const unsigned row, const bool select=true)
Selects a row.
int get_selected_row() const
Returns the first selected row.
unsigned get_item_count() const
Returns the number of items in the listbox.
void keyboard_capture(widget *widget)
REGISTER_DIALOG(editor_edit_unit)
std::map< std::string, widget_item > widget_data
std::map< std::string, t_string > widget_item
@ OK
Dialog was closed with the OK button.
Definitions related to theme-support.