The Battle for Wesnoth  1.15.1+dev
edit_scenario.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2018 by Fabian Mueller <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 
18 
19 namespace gui2
20 {
21 namespace dialogs
22 {
23 
25 {
26 public:
27  editor_edit_scenario(std::string& id,
28  std::string& name,
29  std::string& description,
30  int& turns,
31  int& experience_modifier,
32  bool& victory_when_enemies_defeated,
33  bool& random_start_time);
34 
35  /** The execute function. See @ref modal_dialog for more information. */
37 
38 private:
39  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
40  virtual const std::string& window_id() const override;
41  /** Inherited from modal_dialog. */
42  virtual void pre_show(window& window) override;
43 };
44 } // namespace dialogs
45 } // namespace gui2
editor_edit_scenario(std::string &id, std::string &name, std::string &description, int &turns, int &experience_modifier, bool &victory_when_enemies_defeated, bool &random_start_time)
virtual const std::string & window_id() const override
The execute function.
Generic file dialog.
Definition: field-fwd.hpp:22
static const char * name(const std::vector< SDL_Joystick *> &joysticks, const std::size_t index)
Definition: joystick.cpp:48
virtual void pre_show(window &window) override
Inherited from modal_dialog.
Various uncategorised dialogs.
int turns()
Definition: game.cpp:572
Abstract base class for all modal dialogs.
bool random_start_time()
Definition: game.cpp:542
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:63