00001 /* $Id: horizontal_scrollbar.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/horizontal_scrollbar.hpp" 00019 00020 #include "gui/auxiliary/log.hpp" 00021 #include "gui/widgets/horizontal_scrollbar.hpp" 00022 00023 namespace gui2 { 00024 00025 namespace implementation { 00026 00027 tbuilder_horizontal_scrollbar::tbuilder_horizontal_scrollbar(const config& cfg) 00028 : tbuilder_control(cfg) 00029 { 00030 } 00031 00032 twidget* tbuilder_horizontal_scrollbar::build() const 00033 { 00034 thorizontal_scrollbar *widget = new thorizontal_scrollbar(); 00035 00036 init_control(widget); 00037 00038 DBG_GUI_G << "Window builder:" 00039 << " placed horizontal scrollbar '" << id 00040 << "' with definition '" << definition 00041 << "'.\n"; 00042 00043 return widget; 00044 } 00045 00046 } // namespace implementation 00047 00048 } // namespace gui2 00049 00050 /*WIKI_MACRO 00051 * @begin{macro}{horizontal_scrollbar_description} 00052 * 00053 * A horizontal scrollbar is a widget that shows a horizontal scrollbar. 00054 * This widget is most of the time used in a container to control the 00055 * scrolling of its contents. 00056 * @end{macro} 00057 */ 00058 00059 /*WIKI 00060 * @page = GUIToolkitWML 00061 * @order = 2_horizontal_scrollbar 00062 * 00063 * == Horizontal scrollbar == 00064 * 00065 * @macro = horizontal_scrollbar_description 00066 * @begin{parent}{name="gui/window/resolution/grid/row/column/"} 00067 * @begin{tag}{name="horizontal_scrollbar"}{min=0}{max=-1}{super="generic/widget_instance"} 00068 * @end{tag}{name="horizontal_scrollbar"} 00069 * @end{parent}{name="gui/window/resolution/grid/row/column/"} 00070 * A horizontal scrollbar has no special fields. 00071 */ 00072
| Generated by doxygen 1.7.1 on Wed May 23 2012 01:02:41 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |