diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /kstars/kstars/kstarssplash.h | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/kstarssplash.h')
-rw-r--r-- | kstars/kstars/kstarssplash.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/kstars/kstars/kstarssplash.h b/kstars/kstars/kstarssplash.h new file mode 100644 index 00000000..13ec4a6e --- /dev/null +++ b/kstars/kstars/kstarssplash.h @@ -0,0 +1,73 @@ +/*************************************************************************** + KStarsSplash.h - description + ------------------- + begin : Thu Jul 26 2001 + copyright : (C) 2001 by Heiko Evermann + email : heiko@evermann.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KSTARSSPLASH_H_ +#define KSTARSSPLASH_H_ + +#include <kdialogbase.h> + +/**@class KStarsSplash + *The KStars Splash Screen. The splash screen shows the KStars logo and + *progress messages while data files are parsed and objects are initialized. + *@short the KStars Splash Screen. + *@author Heiko Evermann + *@version 1.0 + */ + +class QLabel; + +class KStarsSplash : public KDialogBase +{ + Q_OBJECT + + public: + /**Constructor. Create widgets. Load KStars logo. Start load timer. + */ + KStarsSplash( QWidget *parent, const char* name ); + + /**Destructor + */ + ~KStarsSplash(); + + public slots: + /**Display the text argument in the Splash Screen's status label. + *This is connected to KStarsData::progressText(QString)*/ + void setMessage(QString s); + + protected: + /**Paint event to redraw the widgets. This only gets called when the timer fires. + *It should also repaint if another window was on top of the splash screen, but + *this may be difficult to implement (it may be that the program is too busy loading data + *to notice that a redraw is required). + */ + virtual void paintEvent( QPaintEvent* ); + + /**If the user clicks on the "X" close-window button, then abort loading + *as soon as possible and shut down the program. + */ + void closeEvent( QCloseEvent *e ); + + signals: + void closeWindow(); + + private: + QLabel *textCurrentStatus, *label; + QWidget *Banner; + QPixmap *splashImage; +}; + +#endif |