Public Member Functions | Public Attributes

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

Collaboration diagram for gui2::tmp_change_control::model:
Collaboration graph
[legend]

List of all members.

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< int > sides
std::vector< std::string > nicks

Detailed Description

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

Definition at line 82 of file mp_change_control.cpp.


Constructor & Destructor Documentation

gui2::tmp_change_control::model::model (  )  [inline]

Definition at line 84 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 129 of file mp_change_control.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tmp_change_control::model::add_side ( int  side_num,
const std::string &  label 
) [inline]

Definition at line 108 of file mp_change_control.cpp.

References gui2::tlistbox::add_row(), DBG_GUI, sides, sides_list, and str_cast().

Referenced by gui2::tmp_change_control::controller::show_sides_list().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tmp_change_control::model::clear_nicks (  )  [inline]

Definition at line 122 of file mp_change_control.cpp.

References gui2::tlistbox::clear(), DBG_GUI, nicks, and nicks_list.

Referenced by gui2::tmp_change_control::view::pre_show(), and gui2::side_controller::show_nicks_list().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tmp_change_control::model::clear_sides (  )  [inline]

Definition at line 101 of file mp_change_control.cpp.

References gui2::tlistbox::clear(), DBG_GUI, sides, and sides_list.

Referenced by gui2::tmp_change_control::view::pre_show(), and gui2::tmp_change_control::controller::show_sides_list().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::vector<std::string> gui2::tmp_change_control::model::nicks

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

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:33 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs