The Battle for Wesnoth  1.15.2+dev
chat_log.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2018 by Yurii Chernyi <terraninfo@terraninfo.net>
3  Part of the Battle for Wesnoth Project https://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 #pragma once
16 
18 #include "variable.hpp"
19 
20 class replay;
21 
22 namespace gui2
23 {
24 namespace dialogs
25 {
26 
27 class chat_log : public modal_dialog
28 {
29 public:
30  class model;
31  class view;
32  class controller;
33  chat_log(const vconfig& cfg, const replay& replay);
34 
36 
37  /** Inherited from modal_dialog. */
38  virtual void pre_show(window& window) override;
39 
40  std::shared_ptr<view> get_view();
41 
42 private:
43  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
44  virtual const std::string& window_id() const override;
45 
46  std::shared_ptr<view> view_;
47 };
48 } // namespace dialogs
49 } // namespace gui2
virtual const std::string & window_id() const override
Inherited from modal_dialog, implemented by REGISTER_DIALOG.
std::shared_ptr< view > view_
Definition: chat_log.hpp:46
virtual void pre_show(window &window) override
Inherited from modal_dialog.
Definition: chat_log.cpp:442
Generic file dialog.
Definition: field-fwd.hpp:22
std::shared_ptr< view > get_view()
Definition: chat_log.cpp:437
Various uncategorised dialogs.
chat_log(const vconfig &cfg, const replay &replay)
Definition: chat_log.cpp:430
A variable-expanding proxy for the config class.
Definition: variable.hpp:44
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62