gui/auxiliary/window_builder/slider.hpp

Go to the documentation of this file.
00001 /* $Id: slider.hpp 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 #ifndef GUI_AUXILIARY_WINDOW_BUILDER_SLIDER_HPP_INCLUDED
00017 #define GUI_AUXILIARY_WINDOW_BUILDER_SLIDER_HPP_INCLUDED
00018 
00019 #include "gui/auxiliary/window_builder/control.hpp"
00020 
00021 #include "tstring.hpp"
00022 
00023 #include <vector>
00024 
00025 namespace gui2 {
00026 
00027 namespace implementation {
00028 
00029 struct tbuilder_slider
00030     : public tbuilder_control
00031 {
00032     explicit tbuilder_slider(const config& cfg);
00033 
00034     twidget* build () const;
00035 
00036 private:
00037     unsigned best_slider_length_;
00038     int minimum_value_;
00039     int maximum_value_;
00040     unsigned step_size_;
00041     int value_;
00042 
00043     t_string minimum_value_label_;
00044     t_string maximum_value_label_;
00045 
00046     std::vector<t_string> value_labels_;
00047 };
00048 
00049 } // namespace implementation
00050 
00051 } // namespace gui2
00052 
00053 #endif
00054 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:56 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs