autoprogressbar.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                              dropdownselector
00003                              -------------------
00004     copyright            : (C)  2006 by Martin Bickel
00005     email                : <bickel@asc-hq.org>
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef autoprogressbarH
00018 #define autoprogressbarH
00019 
00020 #include <vector>
00021 #include <pgprogressbar.h>
00022 #include "../global.h"
00023 
00024 class AutoProgressBar: public PG_ProgressBar {
00025 
00026       int starttime;
00027       int time;
00028       int lastticktime;
00029       int lastdisplaytime;
00030       int counter;
00031       vector<int> newTickTimes;
00032       vector<int> prevTickTimes;
00033 
00034       void tick();
00035    public:
00036       AutoProgressBar( SigC::Signal0<void>& tickSignal, PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="Progressbar" );
00037       void close( );
00038 };
00039 
00040 #endif

Generated on Mon May 21 01:26:28 2012 for Advanced Strategic Command by  doxygen 1.5.1