The Battle for Wesnoth  1.15.2+dev
terrain_layers.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2016 - 2018 by the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
17 #include "terrain/builder.hpp"
18 
19 class display;
20 
21 namespace gui2
22 {
23 namespace dialogs
24 {
25 
27 {
28  // Since the 'display' type name clashes with the standard GUI2 static display
29  // function name, we need a type alias.
31 
32 public:
33  terrain_layers(display_t& disp, const map_location& loc);
34 
36 
37 private:
38  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
39  virtual const std::string& window_id() const override;
40 
41  /** Inherited from modal_dialog. */
42  virtual void pre_show(window& window) override;
43 
46 };
47 
48 } // namespace dialogs
49 } // namespace gui2
terrain_layers(display_t &disp, const map_location &loc)
Generic file dialog.
Definition: field-fwd.hpp:22
Represents a tile of the game map, with all associated builder-specific parameters: flags...
Definition: builder.hpp:318
std::vector< log_details > logs
Definition: builder.hpp:325
Various uncategorised dialogs.
Encapsulates the map of the game.
Definition: location.hpp:42
virtual const std::string & window_id() const override
Inherited from modal_dialog, implemented by REGISTER_DIALOG.
Definitions for the terrain builder.
terrain_builder::tile * tile_
terrain_builder::tile::logs tile_logs_
Abstract base class for all modal dialogs.
virtual void pre_show(window &window) override
Inherited from modal_dialog.
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62