Stellarium 0.11.3
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

core/StelLoadingBar.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2005 Fabien Chereau
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
00018  */
00019 
00020 #ifndef _STELLOADINGBAR_HPP_
00021 #define _STELLOADINGBAR_HPP_
00022 
00023 #include "StelTextureTypes.hpp"
00024 #include "StelProjectorType.hpp"
00025 #include "VecMath.hpp"
00026 
00027 #include <QString>
00028 #include <QFont>
00029 
00040 class StelLoadingBar
00041 {
00042 public:
00053     StelLoadingBar(const QString&  splashTex, const QString& extraTextString="",
00054                float extraTextSize = 30.f, float extraTextPosx = 0.f, float extraTextPosy = 0.f,
00055                int width=512, int height=512);
00056 
00057     virtual ~StelLoadingBar();
00058     
00060     void draw();
00061 
00062 private:
00063     QString message;
00064     int splashx, splashy, width, height;
00065     QFont extraTextFont;
00066     StelTextureSP splash;
00067     QString extraText;
00068     Vec2f extraTextPos;
00069 
00070     class StelPainter* sPainter;
00071 };
00072 
00073 #endif // _STELLOADINGBAR_HPP_
Generated on Thu May 31 10:37:18 2012 for Stellarium by  doxygen 1.6.3