Public Types | Public Member Functions | Private Attributes

gui2::tmp_change_control::controller Class Reference

The controller acts upon the model. More...

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

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr
< side_controller > > 
side_controller_ptr_vector

Public Member Functions

 controller (model &m)
void show_sides_list ()
boost::shared_ptr
< side_controller
get_side_controller ()
void handle_sides_list_item_clicked ()
void handle_nicks_list_item_clicked ()
void update_view_from_model ()
void change_control (events::menu_handler *mh)

Private Attributes

modelmodel_
side_controller_ptr_vector side_controllers_

Detailed Description

The controller acts upon the model.

It retrieves data from repositories, persists it, manipulates it, and determines how it will be displayed in the view.

Definition at line 224 of file mp_change_control.cpp.


Member Typedef Documentation

Definition at line 226 of file mp_change_control.cpp.


Constructor & Destructor Documentation

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

Definition at line 227 of file mp_change_control.cpp.


Member Function Documentation

void gui2::tmp_change_control::controller::change_control ( events::menu_handler mh  )  [inline]
boost::shared_ptr<side_controller> gui2::tmp_change_control::controller::get_side_controller (  )  [inline]

Definition at line 253 of file mp_change_control.cpp.

References gui2::tlistbox::get_selected_row(), model_, game_config::images::selected, side_controllers_, and gui2::tmp_change_control::model::sides_list.

Referenced by handle_nicks_list_item_clicked(), handle_sides_list_item_clicked(), and update_view_from_model().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tmp_change_control::controller::handle_nicks_list_item_clicked (  )  [inline]
void gui2::tmp_change_control::controller::handle_sides_list_item_clicked (  )  [inline]
void gui2::tmp_change_control::controller::show_sides_list (  )  [inline]
void gui2::tmp_change_control::controller::update_view_from_model (  )  [inline]

Definition at line 280 of file mp_change_control.cpp.

References get_side_controller().

Referenced by gui2::tmp_change_control::view::pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 298 of file mp_change_control.cpp.

Referenced by get_side_controller(), and show_sides_list().


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:32 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs