The Battle for Wesnoth  1.15.2+dev
edit_side.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2018 by Fabian Müller <fabianmueller5@gmx.de>
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 
19 #include "gui/widgets/group.hpp"
20 #include "team.hpp"
21 
22 namespace gui2
23 {
24 
25 namespace dialogs
26 {
27 
29 {
30 public:
32 
33  /** The execute function. See @ref modal_dialog for more information. */
35 
36 private:
37  virtual void pre_show(window& window) override;
38  virtual void post_show(window& window) override;
39 
40  team::CONTROLLER& controller_;
42 
43  team::SHARE_VISION& share_vision_;
45 
46  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
47  virtual const std::string& window_id() const override;
48 };
49 } // namespace dialogs
50 } // namespace gui2
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
Definition: edit_side.cpp:95
logger & info()
Definition: log.cpp:90
team::SHARE_VISION & share_vision_
Definition: edit_side.hpp:43
virtual const std::string & window_id() const override
Inherited from modal_dialog, implemented by REGISTER_DIALOG.
-file sdl_utils.hpp
Generic file dialog.
Definition: field-fwd.hpp:22
virtual void pre_show(window &window) override
The execute function.
Definition: edit_side.cpp:77
Various uncategorised dialogs.
group< team::SHARE_VISION > vision_group
Definition: edit_side.hpp:44
editor_edit_side(editor::editor_team_info &info)
Definition: edit_side.cpp:55
Abstract base class for all modal dialogs.
team::CONTROLLER & controller_
Definition: edit_side.hpp:40
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
group< team::CONTROLLER > controller_group
Definition: edit_side.hpp:41