The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
gui2::tmp_change_control::model Class Reference

The model is an interface defining the data to be displayed or otherwise acted upon in the user interface. More...

Public Member Functions

 model ()
 
void clear_sides ()
 
void add_side (int side_num, const std::string &label)
 
void clear_nicks ()
 
void add_nick (const std::string &nick, const std::string &label)
 

Public Attributes

tlistboxsides_list
 
tlistboxnicks_list
 
std::vector< intsides
 
std::vector< std::stringnicks
 

Detailed Description

The model is an interface defining the data to be displayed or otherwise acted upon in the user interface.

Definition at line 85 of file mp_change_control.cpp.

Constructor & Destructor Documentation

gui2::tmp_change_control::model::model ( )
inline

Definition at line 88 of file mp_change_control.cpp.

Member Function Documentation

void gui2::tmp_change_control::model::add_nick ( const std::string nick,
const std::string label 
)
inline

Definition at line 130 of file mp_change_control.cpp.

References gui2::tlistbox::add_row(), and DBG_GUI.

Referenced by gui2::side_controller::show_nicks_list().

void gui2::tmp_change_control::model::add_side ( int  side_num,
const std::string label 
)
inline
void gui2::tmp_change_control::model::clear_nicks ( )
inline
void gui2::tmp_change_control::model::clear_sides ( )
inline

Member Data Documentation

std::vector<std::string> gui2::tmp_change_control::model::nicks
tlistbox* gui2::tmp_change_control::model::nicks_list
std::vector<int> gui2::tmp_change_control::model::sides
tlistbox* gui2::tmp_change_control::model::sides_list

The documentation for this class was generated from the following file: