00001 /* $Id: progress_bar.cpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2010 - 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/progress_bar.hpp" 00019 00020 #include "config.hpp" 00021 #include "gui/auxiliary/log.hpp" 00022 #include "gui/widgets/progress_bar.hpp" 00023 00024 namespace gui2 { 00025 00026 namespace implementation { 00027 00028 tbuilder_progress_bar::tbuilder_progress_bar(const config& cfg) 00029 : tbuilder_control(cfg) 00030 { 00031 } 00032 00033 twidget* tbuilder_progress_bar::build() const 00034 { 00035 tprogress_bar* widget = new tprogress_bar(); 00036 00037 init_control(widget); 00038 00039 DBG_GUI_G << "Window builder: placed progress bar '" 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}{progress_bar_description} 00052 * A progress bar shows the progress of a certain object. 00053 * @end{macro} 00054 */ 00055 00056 /*WIKI 00057 * @page = GUIWidgetInstanceWML 00058 * @order = 2_progress_bar 00059 * 00060 * == Image == 00061 * 00062 * @macro = progress_bar_description 00063 * 00064 * A progress bar has no extra fields. 00065 * @begin{parent}{name="gui/window/resolution/grid/row/column/"} 00066 * @begin{tag}{name="progress_bar"}{min=0}{max=-1}{super="generic/widget_instance"} 00067 * @end{tag}{name="progress_bar"} 00068 * @end{parent}{name="gui/window/resolution/grid/row/column/"} 00069 */ 00070
| Generated by doxygen 1.7.1 on Wed May 23 2012 01:02:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |