Public Types | |
typedef std::map< std::string, std::map< std::string, tcontrol_definition_ptr > > | tcontrol_definition_map |
Public Member Functions | |
tgui_definition () | |
const std::string & | read (const config &cfg) |
void | activate () const |
Activates a gui. More... | |
void | load_widget_definitions (const std::string &definition_type, const std::vector< tcontrol_definition_ptr > &definitions) |
Public Attributes | |
std::string | id |
t_string | description |
tcontrol_definition_map | control_definition |
std::map< std::string, twindow_definition > | windows |
std::map< std::string, twindow_builder > | window_types |
Private Attributes | |
unsigned | popup_show_delay_ |
unsigned | popup_show_time_ |
unsigned | help_show_time_ |
unsigned | double_click_time_ |
unsigned | repeat_button_repeat_time_ |
std::string | sound_button_click_ |
std::string | sound_toggle_button_click_ |
std::string | sound_toggle_panel_click_ |
std::string | sound_slider_adjust_ |
t_string | has_helptip_message_ |
std::vector< ttip > | tips_ |
Definition at line 98 of file settings.cpp.
typedef std::map<std::string , std::map<std::string , tcontrol_definition_ptr> > gui2::tgui_definition::tcontrol_definition_map |
Definition at line 130 of file settings.cpp.
|
inline |
Definition at line 100 of file settings.cpp.
void gui2::tgui_definition::activate | ( | ) | const |
Activates a gui.
Definition at line 416 of file settings.cpp.
References gui2::settings::double_click_time, double_click_time_, gui2::settings::has_helptip_message, has_helptip_message_, gui2::settings::help_show_time, help_show_time_, gui2::settings::popup_show_delay, popup_show_delay_, gui2::settings::popup_show_time, popup_show_time_, gui2::settings::repeat_button_repeat_time, repeat_button_repeat_time_, gui2::settings::sound_button_click, sound_button_click_, gui2::settings::sound_slider_adjust, sound_slider_adjust_, gui2::settings::sound_toggle_button_click, sound_toggle_button_click_, gui2::settings::sound_toggle_panel_click, sound_toggle_panel_click_, gui2::settings::tips, and tips_.
void gui2::tgui_definition::load_widget_definitions | ( | const std::string & | definition_type, |
const std::vector< tcontrol_definition_ptr > & | definitions | ||
) |
Definition at line 431 of file settings.cpp.
References control_definition, gui2::event::find(), game_logic::msg(), VALIDATE, and vgettext().
Referenced by gui2::load_widget_definitions().
const std::string & gui2::tgui_definition::read | ( | const config & | cfg | ) |
Definition at line 336 of file settings.cpp.
References config::child(), config::child_range(), DBG_GUI_P, description, double_click_time_, t_string::empty(), has_helptip_message_, help_show_time_, id, itor, gui2::tips::load(), missing_mandatory_wml_key(), popup_show_delay_, popup_show_time_, gui2::registered_window_types(), gui2::registred_widget_type(), repeat_button_repeat_time_, sound_button_click_, sound_slider_adjust_, sound_toggle_button_click_, sound_toggle_panel_click_, tips_, VALIDATE, and window_types.
tcontrol_definition_map gui2::tgui_definition::control_definition |
Definition at line 132 of file settings.cpp.
Referenced by load_widget_definitions().
t_string gui2::tgui_definition::description |
Definition at line 121 of file settings.cpp.
Referenced by read().
|
private |
Definition at line 146 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 154 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 145 of file settings.cpp.
Referenced by activate(), and read().
std::string gui2::tgui_definition::id |
Definition at line 120 of file settings.cpp.
Referenced by read().
|
private |
Definition at line 143 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 144 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 147 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 149 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 152 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 150 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 151 of file settings.cpp.
Referenced by activate(), and read().
|
private |
Definition at line 156 of file settings.cpp.
Referenced by activate(), and read().
std::map<std::string, twindow_builder> gui2::tgui_definition::window_types |
Definition at line 136 of file settings.cpp.
Referenced by read().
std::map<std::string, twindow_definition> gui2::tgui_definition::windows |
Definition at line 134 of file settings.cpp.