The Battle for Wesnoth  1.15.1+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 
35  /** Inherited from modal_dialog. */
36  virtual void pre_show(window& window) override;
37 
38  std::shared_ptr<view> get_view();
39 
40 private:
41  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
42  virtual const std::string& window_id() const override;
43 
44  std::shared_ptr<view> view_;
45 };
46 } // namespace dialogs
47 } // 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:44
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:42
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:63