gui/auxiliary/window_builder/vertical_scrollbar.cpp

Go to the documentation of this file.
00001 /* $Id: vertical_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/vertical_scrollbar.hpp"
00019 
00020 #include "config.hpp"
00021 #include "gui/auxiliary/log.hpp"
00022 #include "gui/widgets/vertical_scrollbar.hpp"
00023 
00024 namespace gui2 {
00025 
00026 namespace implementation {
00027 
00028 tbuilder_vertical_scrollbar::tbuilder_vertical_scrollbar(const config& cfg)
00029     : tbuilder_control(cfg)
00030 {
00031 }
00032 
00033 twidget* tbuilder_vertical_scrollbar::build() const
00034 {
00035     tvertical_scrollbar *widget = new tvertical_scrollbar();
00036 
00037     init_control(widget);
00038 
00039     DBG_GUI_G << "Window builder:"
00040             << " placed vertical scrollbar '" << id
00041             << "' with definition '" << definition
00042             << "'.\n";
00043 
00044     return widget;
00045 }
00046 
00047 } // namespace implementation
00048 
00049 } // namespace gui2
00050 
00051 /*WIKI
00052  * @page = GUIWidgetInstanceWML
00053  * @order = 2_vertical_scrollbar
00054  *
00055  * == Vertical scrollbar ==
00056  *
00057  *
00058  * @begin{parent}{name="gui/window/resolution/grid/row/column/"}
00059  * @begin{tag}{name="vertical_scrollbar"}{min=0}{max=1}{super="generic/widget_instance"}
00060  * @end{tag}{name="vertical_scrollbar"}
00061  * @end{parent}{name="gui/window/resolution/grid/row/column/"}
00062  */
00063 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:02:42 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs