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
00029 class StelFont;
00030
00041 class StelLoadingBar
00042 {
00043 public:
00053 StelLoadingBar(float fontSize, const QString& splashTex, const QString& extraTextString="",
00054 float extraTextSize = 30.f, float extraTextPosx = 0.f, float extraTextPosy = 0.f);
00055
00056 virtual ~StelLoadingBar();
00057
00060 void SetMessage(QString m) {message=m;}
00061
00065 void Draw(float val);
00066
00067 private:
00068 QString message;
00069 int splashx, splashy, barx, bary, width, height, barwidth, barheight;
00070 StelFont& barfont;
00071 StelFont& extraTextFont;
00072 StelTextureSP splash;
00073 QString extraText;
00074 Vec2f extraTextPos;
00075 double timeCounter;
00076 };
00077
00078 #endif // _STELLOADINGBAR_HPP_