36 listbox& list = find_widget<listbox>(
"themes");
42 {
"label",
t.name.empty() ?
t_string(
t.id) :
t.name }
45 {
"label",
t.description }
63 listbox& list = find_widget<listbox>(
"themes");
Abstract base class for all modal dialogs.
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
@ OK
Dialog was closed with the OK button.
Definitions related to theme-support.