The Battle for Wesnoth  1.15.12+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::dialogs
21 {
22 
23 REGISTER_DIALOG(editor_new_map)
24 
25 editor_new_map::editor_new_map(const t_string& title, int& width, int& height)
26 {
27  register_label("title", true, title);
28 
29  register_integer("width", true, width);
30  register_integer("height", true, height);
31 }
32 
33 } // namespace dialogs
This file contains the settings handling of the widget library.
Key Type MandatoryDescription width integer_selector yes An integer selector to determine the width ...
Definition: new_map.hpp:32