00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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:
00052 StelLoadingBar(float fontSize, const QString& splashTex, const QString& extraTextString="",
00053 float extraTextSize = 30.f, float extraTextPosx = 0.f, float extraTextPosy = 0.f);
00054
00055 virtual ~StelLoadingBar();
00056
00059 void SetMessage(QString m) {message=m;}
00060
00064 void Draw(float val);
00065
00066 private:
00067 QString message;
00068 int splashx, splashy, barx, bary, width, height, barwidth, barheight;
00069 QFont barfont;
00070 QFont extraTextFont;
00071 StelTextureSP splash;
00072 QString extraText;
00073 Vec2f extraTextPos;
00074 double timeCounter;
00075
00076 class StelPainter* sPainter;
00077 };
00078
00079 #endif // _STELLOADINGBAR_HPP_