StelLoadingBar.hpp   StelLoadingBar.hpp 
skipping to change at line 44 skipping to change at line 44
//! modified after the creation of the StelLoadingBar. //! modified after the creation of the StelLoadingBar.
//! It can also have an image which is set at object creation time, and som e //! It can also have an image which is set at object creation time, and som e
//! static text (called extra text, which is set at object creation time. //! static text (called extra text, which is set at object creation time.
//! Stellarium's splash screen, visible when the program is first started, is //! Stellarium's splash screen, visible when the program is first started, is
//! a StelLoadingBar. The image is the logo for the project, the extra tex t is //! a StelLoadingBar. The image is the logo for the project, the extra tex t is
//! used to show the application name and version. //! used to show the application name and version.
class StelLoadingBar class StelLoadingBar
{ {
public: public:
//! Create and initialise the StelLoadingBar. //! Create and initialise the StelLoadingBar.
//! @param fontSize the size of the font to use in the StelLoadingBa //! @param splashTex the file name of a texture to display with the
r StelLoadingBar.
//! @param splashTex the file name of a texture to display with the //! @param extraTextString extra text which does not change during t
StelLoadingBar he life.
//! @param extraTextString extra text which does not change during t
he life
//! life of the StelLoadingBar. This is used for the application nam e and version //! life of the StelLoadingBar. This is used for the application nam e and version
//! when the StelLoadingBar is used as a splash screen. //! when the StelLoadingBar is used as a splash screen.
//! @param extraTextSize the size of the font used for the exta text //! @param extraTextSize the size of the font used for the exta text
//! @param extraTextPosx the x position of the extra text .
//! @param extraTextPosy the y position of the extra text //! @param extraTextPosx the x position of the extra text.
StelLoadingBar(float fontSize, const QString& splashTex, const QStr //! @param extraTextPosy the y position of the extra text.
ing& extraTextString="", //! @param width the width to use for the texture display.
float extraTextSize = 30.f, float extraTextPosx = 0.f, fl //! @param height the height to use for the texture display.
oat extraTextPosy = 0.f); StelLoadingBar(const QString& splashTex, const QString& extraTextSt
ring="",
float extraTextSize = 30.f, float extraTextPosx =
0.f, float extraTextPosy = 0.f,
int width=512, int height=512);
virtual ~StelLoadingBar(); virtual ~StelLoadingBar();
//! Set the message for the loading bar. //! Draw the splashscreen.
//! @param m a QString message to display under the loading bar void draw();
void SetMessage(QString m) {message=m;}
//! Draw the StelLoadingBar, setting the value.
//! @param val the value which the progress bar should display. This
is a
//! float which should take a value between 0.0 and 1.0.
void Draw(float val);
private: private:
QString message; QString message;
int splashx, splashy, barx, bary, width, height, barwidth, barheight int splashx, splashy, width, height;
;
QFont barfont;
QFont extraTextFont; QFont extraTextFont;
StelTextureSP splash; StelTextureSP splash;
QString extraText; QString extraText;
Vec2f extraTextPos; Vec2f extraTextPos;
double timeCounter;
class StelPainter* sPainter; class StelPainter* sPainter;
}; };
#endif // _STELLOADINGBAR_HPP_ #endif // _STELLOADINGBAR_HPP_
 End of changes. 5 change blocks. 
26 lines changed or deleted 18 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/