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 | |
model & | model_ |
side_controller_ptr_vector | side_controllers_ |
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.
typedef std::vector<boost::shared_ptr<side_controller> > gui2::tmp_change_control::controller::side_controller_ptr_vector |
Definition at line 234 of file mp_change_control.cpp.
|
inline |
Definition at line 235 of file mp_change_control.cpp.
|
inline |
Definition at line 294 of file mp_change_control.cpp.
References DBG_GUI, gui2::tlistbox::get_selected_row(), model_, gui2::tmp_change_control::model::nicks, gui2::tmp_change_control::model::nicks_list, events::menu_handler::request_control_change(), gui2::tmp_change_control::model::sides, and gui2::tmp_change_control::model::sides_list.
Referenced by gui2::tmp_change_control::view::post_show().
|
inline |
Definition at line 260 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().
|
inline |
Definition at line 279 of file mp_change_control.cpp.
References DBG_GUI, gui2::tlistbox::get_selected_row(), get_side_controller(), model_, gui2::tmp_change_control::model::nicks, game_config::images::selected, and gui2::tmp_change_control::model::sides_list.
Referenced by gui2::tmp_change_control::view::handle_nicks_list_item_clicked().
|
inline |
Definition at line 270 of file mp_change_control.cpp.
References DBG_GUI, gui2::tlistbox::get_selected_row(), get_side_controller(), model_, game_config::images::selected, gui2::tmp_change_control::model::sides, and gui2::tmp_change_control::model::sides_list.
Referenced by gui2::tmp_change_control::view::handle_sides_list_item_clicked().
|
inline |
Definition at line 239 of file mp_change_control.cpp.
References gui2::tmp_change_control::model::add_side(), schema_validation::at(), gui2::tmp_change_control::model::clear_sides(), DBG_GUI, team::get_side_color(), model_, side_controllers_, font::span_color(), resources::teams, and vgettext().
Referenced by gui2::tmp_change_control::view::pre_show().
|
inline |
Definition at line 288 of file mp_change_control.cpp.
References get_side_controller().
Referenced by gui2::tmp_change_control::view::pre_show().
|
private |
Definition at line 307 of file mp_change_control.cpp.
Referenced by change_control(), get_side_controller(), handle_nicks_list_item_clicked(), handle_sides_list_item_clicked(), and show_sides_list().
|
private |
Definition at line 308 of file mp_change_control.cpp.
Referenced by get_side_controller(), and show_sides_list().