The Battle for Wesnoth  1.15.2+dev
new_map.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2018 by Mark de Wever <koraq@xs4all.nl>
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 #define GETTEXT_DOMAIN "wesnoth-editor"
15 
17 
18 #include "gui/widgets/settings.hpp"
19 
20 namespace gui2
21 {
22 namespace dialogs
23 {
24 
25 /*WIKI
26  * @page = GUIWindowDefinitionWML
27  * @order = 2_editor_new_map
28  *
29  * == Editor new map ==
30  *
31  * This shows the dialog to generate a new map in the editor.
32  *
33  * @begin{table}{dialog_widgets}
34  *
35  * width & & integer_selector & m &
36  * An integer selector to determine the width of the map to create. $
37  *
38  * height & & integer_selector & m &
39  * An integer selector to determine the height of the map to create. $
40  *
41  * @end{table}
42  */
43 
44 REGISTER_DIALOG(editor_new_map)
45 
46 editor_new_map::editor_new_map(const t_string& title, int& width, int& height)
47 {
48  register_label("title", true, title);
49 
50  register_integer("width", true, width);
51  register_integer("height", true, height);
52 }
53 
54 } // namespace dialogs
55 } // namespace gui2
Generic file dialog.
Definition: field-fwd.hpp:22
This file contains the settings handling of the widget library.
Various uncategorised dialogs.