The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
new_map.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Mark de Wever <[email protected]>
3  Part of the Battle for Wesnoth Project http://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 
23 /*WIKI
24  * @page = GUIWindowDefinitionWML
25  * @order = 2_editor_new_map
26  *
27  * == Editor new map ==
28  *
29  * This shows the dialog to generate a new map in the editor.
30  *
31  * @begin{table}{dialog_widgets}
32  *
33  * width & & integer_selector & m &
34  * An integer selector to determine the width of the map to create. $
35  *
36  * height & & integer_selector & m &
37  * An integer selector to determine the height of the map to create. $
38  *
39  * @end{table}
40  */
41 
42 REGISTER_DIALOG(editor_new_map)
43 
45 {
46  register_integer("width", true, width);
47  register_integer("height", true, height);
48 }
49 
50 } // namespace gui2
REGISTER_DIALOG(label_settings)
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
This file contains the settings handling of the widget library.
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
Definition: glew.h:1220
GLint GLint GLint GLint GLint GLint GLsizei width
Definition: glew.h:1220