00001 /* $Id: image.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 00016 #define GETTEXT_DOMAIN "wesnoth-lib" 00017 00018 #include "gui/auxiliary/window_builder/image.hpp" 00019 00020 #include "config.hpp" 00021 #include "gui/auxiliary/log.hpp" 00022 #include "gui/widgets/image.hpp" 00023 00024 namespace gui2 { 00025 00026 namespace implementation { 00027 00028 tbuilder_image::tbuilder_image(const config& cfg) 00029 : tbuilder_control(cfg) 00030 { 00031 } 00032 00033 twidget* tbuilder_image::build() const 00034 { 00035 timage* widget = new timage(); 00036 00037 init_control(widget); 00038 00039 DBG_GUI_G << "Window builder: placed image '" 00040 << id << "' with definition '" 00041 << definition << "'.\n"; 00042 00043 return widget; 00044 } 00045 00046 } // namespace implementation 00047 00048 } // namespace gui2 00049 00050 /*WIKI_MACRO 00051 * @begin{macro}{image_description} 00052 * An image shows a static image. 00053 * @end{macro} 00054 */ 00055 00056 /*WIKI 00057 * @page = GUIWidgetInstanceWML 00058 * @order = 2_image 00059 * 00060 * == Image == 00061 * 00062 * @macro = image_description 00063 * 00064 * An image has no extra fields. 00065 * @begin{parent}{name="gui/window/resolution/grid/row/column/"} 00066 * @begin{tag}{name="image"}{min=0}{max=-1}{super="generic/widget_instance"} 00067 * @end{tag}{name="image"} 00068 * @end{parent}{name="gui/window/resolution/grid/row/column/"} 00069 */ 00070
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:54 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |