30 struct hotkey_command;
52 static std::map<PREFERENCE_VIEW, std::pair<int,int>>
pef_view_map {
80 virtual const
std::
string& window_id() const override;
84 virtual
void post_show(
window& ) override;
87 void initialize_tabs(
listbox& selector);
91 template<
bool(*toggle_getter)(),
bool(*toggle_setter)(
bool),
int(*vol_getter)(),
void(*vol_setter)(
int)>
92 void initialize_sound_option_group(const
std::
string& id_suffix);
94 void apply_pixel_scale();
99 void remove_friend_list_entry(
listbox& friends_list,
text_box& textbox);
102 void update_friends_list_controls(
listbox& list);
104 void set_visible_page(
unsigned int page, const
std::
string& pager_id);
107 void on_page_select();
108 void on_tab_select();
109 void on_advanced_prefs_list_select(
listbox& tree);
112 void handle_res_select();
113 void fullscreen_toggle_callback();
114 void add_hotkey_callback(
listbox& hotkeys);
115 void remove_hotkey_callback(
listbox& hotkeys);
116 void default_hotkey_callback();
117 void hotkey_filter_callback() const;
125 int last_selected_item_;
127 std::vector<
double> accl_speeds_;
128 visible_hotkeys_t visible_hotkeys_;
133 const
std::pair<
int,
int>& initial_index_;
std::vector< advanced_manager::option > advanced_pref_list
Definitions for the interface to Wesnoth Markup Language (WML).
Keyboard shortcuts for game actions.
Class for a single line text area.
bool is_friend(const std::string &nick)
Modify, read and display user preferences.
std::vector< const hotkey::hotkey_command * > visible_hotkeys_t
The display function – see modal_dialog for more information.
Various uncategorised dialogs.
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...
Abstract base class for all modal dialogs.
#define DEFINE_SIMPLE_DISPLAY_WRAPPER(dialog)
Adds a bare-bones static display function to a dialog class that immediately invokes the dialogs's mo...
base class of top level items, the only item which needs to store the final canvases to draw on...