00001 /* $Id: edit_label.cpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2010 - 2012 by Ignacio Riquelme Morelle <shadowm2006@gmail.com> 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 00016 #define GETTEXT_DOMAIN "wesnoth-lib" 00017 00018 #include "gui/dialogs/edit_label.hpp" 00019 00020 #include "gui/widgets/settings.hpp" 00021 00022 namespace gui2 { 00023 00024 /*WIKI 00025 * @page = GUIWindowDefinitionWML 00026 * @order = 2_edit_label 00027 * 00028 * == Edit label == 00029 * 00030 * Dialog for editing gamemap labels. 00031 * 00032 * @begin{table}{dialog_widgets} 00033 * 00034 * title & & label & m & 00035 * Dialog title label. $ 00036 * 00037 * label & & text_box & m & 00038 * Input field for the map label. $ 00039 * 00040 * team_only_toggle & & toggle_button & m & 00041 * Checkbox for whether to make the label visible to the player's team 00042 * only or not. $ 00043 * 00044 * @end{table} 00045 */ 00046 00047 REGISTER_DIALOG(edit_label) 00048 00049 tedit_label::tedit_label(std::string& label, bool& team_only) 00050 { 00051 register_text("label", true, label, true); 00052 register_bool("team_only_toggle", true, team_only); 00053 } 00054 00055 } 00056
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |