Public Types | Public Member Functions | Public Attributes | Private Attributes

gui2::tgui_definition Struct Reference

Collaboration diagram for gui2::tgui_definition:
Collaboration graph
[legend]

List of all members.

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.
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< ttiptips_

Detailed Description

Definition at line 94 of file settings.cpp.


Member Typedef Documentation

typedef std::map<std::string , std::map<std::string , tcontrol_definition_ptr> > gui2::tgui_definition::tcontrol_definition_map

Definition at line 126 of file settings.cpp.


Constructor & Destructor Documentation

gui2::tgui_definition::tgui_definition (  )  [inline]

Member Function Documentation

void gui2::tgui_definition::activate (  )  const

Activates a gui.

Definition at line 405 of file settings.cpp.

void gui2::tgui_definition::load_widget_definitions ( const std::string &  definition_type,
const std::vector< tcontrol_definition_ptr > &  definitions 
)

Definition at line 420 of file settings.cpp.

const std::string & gui2::tgui_definition::read ( const config cfg  ) 

Todo:
Regarding sounds: Need to evaluate but probably we want the widget definition be able to:
  • Override the default (and clear it). This will allow toggle buttons in a listbox to sound like a toggle panel.
  • Override the default and above per instance of the widget, some buttons can give a different sound.

Definition at line 155 of file settings.cpp.


Member Data Documentation

Definition at line 128 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 117 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 142 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 150 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 141 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 116 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 139 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 140 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 143 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 145 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 148 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 146 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 147 of file settings.cpp.

Referenced by tgui_definition().

std::vector<ttip> gui2::tgui_definition::tips_ [private]

Definition at line 152 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 132 of file settings.cpp.

Referenced by tgui_definition().

Definition at line 130 of file settings.cpp.

Referenced by tgui_definition().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:22:50 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs