The Battle for Wesnoth  1.15.12+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::dialogs
23 {
24 
25 class chat_log : public modal_dialog
26 {
27 public:
28  class model;
29  class view;
30  class controller;
31  chat_log(const vconfig& cfg, const replay& replay);
32 
34 
35  virtual void pre_show(window& window) override;
36 
37  std::shared_ptr<view> get_view() const;
38 
39 private:
40  virtual const std::string& window_id() const override;
41 
42  std::shared_ptr<view> view_;
43 };
44 } // namespace dialogs
virtual const std::string & window_id() const override
The id of the window to build.
std::shared_ptr< view > view_
Definition: chat_log.hpp:42
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Definition: chat_log.cpp:429
std::shared_ptr< view > get_view() const
Definition: chat_log.cpp:424
chat_log(const vconfig &cfg, const replay &replay)
Definition: chat_log.cpp:417
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:64