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

The controller acts upon the model. More...

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 230 of file mp_change_control.cpp.

Member Typedef Documentation

Definition at line 234 of file mp_change_control.cpp.

Constructor & Destructor Documentation

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

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

References get_side_controller().

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

Member Data Documentation

model& gui2::tmp_change_control::controller::model_
private
side_controller_ptr_vector gui2::tmp_change_control::controller::side_controllers_
private

Definition at line 308 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: