The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
chat_log.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2016 by Yurii Chernyi <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef GUI_DIALOGS_CHAT_LOG_HPP_INCLUDED
16 #define GUI_DIALOGS_CHAT_LOG_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 #include "variable.hpp"
20 
21 #include <boost/shared_ptr.hpp>
22 
23 class replay;
24 
25 namespace gui2
26 {
27 
28 class tchat_log : public tdialog
29 {
30 public:
31  class model;
32  class view;
33  class controller;
34  tchat_log(const vconfig& cfg, replay* replay);
35 
36  /** Inherited from tdialog. */
37  twindow* build_window(CVideo& video);
38 
39  /** Inherited from tdialog. */
40  void pre_show(twindow& window);
41 
43 
44 private:
45  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
46  virtual const std::string& window_id() const;
47 
49 };
50 }
51 
52 #endif /* ! GUI_DIALOGS_CHAT_LOG_HPP_INCLUDED */
boost::shared_ptr< view > get_view()
Definition: chat_log.cpp:439
Definition: video.hpp:58
boost::shared_ptr< view > view_
Definition: chat_log.hpp:48
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
Abstract base class for all dialogs.
Definition: dialog.hpp:121
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
twindow * build_window(CVideo &video)
Inherited from tdialog.
Definition: chat_log.cpp:444
void pre_show(twindow &window)
Inherited from tdialog.
Definition: chat_log.cpp:449
A variable-expanding proxy for the config class.
Definition: variable.hpp:36
tchat_log(const vconfig &cfg, replay *replay)
Definition: chat_log.cpp:432
GLsizei const GLcharARB ** string
Definition: glew.h:4503