00001 /* $Id: editor_new_map.cpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2008 - 2012 by Mark de Wever <koraq@xs4all.nl> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY. 00012 00013 See the COPYING file for more details. 00014 */ 00015 #define GETTEXT_DOMAIN "wesnoth-editor" 00016 00017 #include "gui/dialogs/editor_new_map.hpp" 00018 00019 #include "gui/widgets/settings.hpp" 00020 00021 namespace gui2 { 00022 00023 /*WIKI 00024 * @page = GUIWindowDefinitionWML 00025 * @order = 2_editor_new_map 00026 * 00027 * == Editor new map == 00028 * 00029 * This shows the dialog to generate a new map in the editor. 00030 * 00031 * @begin{table}{dialog_widgets} 00032 * 00033 * width & & integer_selector & m & 00034 * An integer selector to determine the width of the map to create. $ 00035 * 00036 * height & & integer_selector & m & 00037 * An integer selector to determine the height of the map to create. $ 00038 * 00039 * @end{table} 00040 */ 00041 00042 REGISTER_DIALOG(editor_new_map) 00043 00044 teditor_new_map::teditor_new_map(int& width, int& height) 00045 { 00046 register_integer("width", true, width); 00047 register_integer("height", true, height); 00048 } 00049 00050 } // namespace gui2 00051
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |