00001 /* $Id: progressbar.hpp 23842 2008-02-16 08:47:16Z mordante $ */ 00002 /* 00003 Copyright (C) 2003 - 2008 by David White <dave@whitevine.net> 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 version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 #ifndef PROGRESS_BAR_HPP_INCLUDED 00016 #define PROGRESS_BAR_HPP_INCLUDED 00017 00018 #include "widget.hpp" 00019 00020 namespace gui { 00021 00022 class progress_bar : public widget 00023 { 00024 public: 00025 progress_bar(CVideo& video); 00026 00027 void set_progress_percent(int progress); 00028 void set_text(const std::string& text); 00029 00030 void draw_contents(); 00031 00032 private: 00033 int progress_; 00034 std::string text_; 00035 }; 00036 00037 } 00038 00039 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |