The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_change_control.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2016 by Lukasz Dobrogowski
4  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 #ifndef GUI_DIALOGS_MP_CHANGE_CONTROL_HPP_INCLUDED
17 #define GUI_DIALOGS_MP_CHANGE_CONTROL_HPP_INCLUDED
18 
19 #include "gui/dialogs/dialog.hpp"
20 #include "menu_events.hpp"
21 
22 #include <boost/shared_ptr.hpp>
23 
24 namespace gui2
25 {
26 
28 {
29 public:
30  class model;
31  class view;
32  class controller;
33 
36 
37 private:
38  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
39  virtual const std::string& window_id() const;
40 
41  /** Inherited from tdialog. */
42  void pre_show(twindow& window);
43  void post_show(twindow& window);
44 
47 };
48 }
49 
50 #endif /* ! GUI_DIALOGS_MP_CHANGE_CONTROL_HPP_INCLUDED */
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
events::menu_handler * menu_handler_
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
The controller acts upon the model.
Abstract base class for all dialogs.
Definition: dialog.hpp:121
void post_show(twindow &window)
Actions to be taken after the window has been shown.
void pre_show(twindow &window)
Inherited from tdialog.
boost::shared_ptr< view > view_
The model is an interface defining the data to be displayed or otherwise acted upon in the user inter...
GLsizei const GLcharARB ** string
Definition: glew.h:4503
The view is an interface that displays data (the model) and routes user commands to the controller to...
tmp_change_control(events::menu_handler *mh)
boost::shared_ptr< view > get_view()