31 struct hotkey_command;
54 static std::map<PREFERENCE_VIEW, std::pair<int,int>>
pef_view_map {
80 virtual const std::string&
window_id()
const override;
92 template<
bool(*toggle_getter)(),
bool(*toggle_setter)(
bool),
int(*vol_getter)(),
void(*vol_setter)(
int)>
Abstract base class for all modal dialogs.
void set_visible_page(unsigned int page, const std::string &pager_id)
void set_theme_list(menu_button &theme_list)
void remove_hotkey_callback(listbox &hotkeys)
const std::pair< int, int > & initial_index_
void initialize_tabs(listbox &selector)
virtual void post_show(window &) override
Actions to be taken after the window has been shown.
void set_resolution_list(menu_button &res_list)
void on_advanced_prefs_list_select(listbox &tree)
const preferences::advanced_pref_list & adv_preferences_
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
void default_hotkey_callback()
void on_page_select()
Callback for selection changes.
void on_friends_list_select(listbox &list, text_box &textbox)
void hotkey_filter_callback()
void add_friend_list_entry(const bool is_friend, text_box &textbox)
void handle_theme_select()
std::vector< double > accl_speeds_
group< preferences::lobby_joins > lobby_joins_group
std::vector< const hotkey::hotkey_command * > visible_hotkeys_
std::vector< theme_info > themes_
virtual const std::string & window_id() const override
The display function – see modal_dialog for more information.
widget_data get_friends_list_row_data(const preferences::acquaintance &entry)
std::set< hotkey::HOTKEY_CATEGORY > visible_categories_
void update_friends_list_controls(listbox &list)
void handle_res_select()
Special callback functions.
void fullscreen_toggle_callback()
listbox & setup_hotkey_list()
preferences_dialog(const preferences::PREFERENCE_VIEW initial_view=preferences::VIEW_DEFAULT)
void remove_friend_list_entry(listbox &friends_list, text_box &textbox)
void initialize_sound_option_group(const std::string &id_suffix)
void add_hotkey_callback(listbox &hotkeys)
void initialize_callbacks()
Initializers.
std::vector< point > resolutions_
Dialog for selecting a GUI theme.
Class for a single line text area.
base class of top level items, the only item which needs to store the final canvases to draw on.
#define DEFINE_SIMPLE_DISPLAY_WRAPPER(dialog)
Adds a bare-bones static display function to a dialog class that immediately invokes the dialogs's mo...
Various uncategorised dialogs.
std::map< std::string, widget_item > widget_data
Keyboard shortcuts for game actions.
Modify, read and display user preferences.
std::vector< advanced_manager::option > advanced_pref_list
static std::map< PREFERENCE_VIEW, std::pair< int, int > > pef_view_map
Map containing page mappings that can be used to set the initially displayed page of the dialog.
bool is_friend(const std::string &nick)
Definitions related to theme-support.