The Battle for Wesnoth  1.15.1+dev
gamestate_inspector.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 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 namespace game_events {class manager; }
21 class display_context;
22 
23 namespace gui2
24 {
25 namespace dialogs
26 {
27 
29 {
30 public:
31  class model;
32  class view;
33  class controller;
34  gamestate_inspector(const config& vars, const game_events::manager& events, const display_context& dc, const std::string& title = "");
35 
37 
38 private:
39  /** Inherited from modal_dialog. */
40  virtual void pre_show(window& window) override;
41 
42  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
43  virtual const std::string& window_id() const override;
44 
45  std::shared_ptr<view> view_;
46  std::shared_ptr<model> model_;
47  std::shared_ptr<controller> controller_;
48  std::string title_;
49  const config& vars_;
52 };
53 } // namespace dialogs
54 } // namespace gui2
const game_events::manager & events_
Generic file dialog.
Definition: field-fwd.hpp:22
Various uncategorised dialogs.
Domain specific events.
Definition: action_wml.cpp:88
The game event manager loads the scenario configuration object, and ensures that events are handled a...
Definition: manager.hpp:43
Handling of system events.
Definition: manager.hpp:41
Abstract base class for all modal dialogs.
std::shared_ptr< controller > controller_
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:68
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:63