1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SPLASHSCREEN_H
8 #define SPLASHSCREEN_H
9 
10 #include <QLabel>
11 #include <QSplashScreen>
12 #include <QPixmap>
13 #include <QString>
14 #include "scribusapi.h"
15 
16 
17 //! \brief Scribus splash screen
18 class SCRIBUS_API ScSplashScreen : public QSplashScreen
19 {
20 	Q_OBJECT
21 
22 	public:
23 		/*!
24 		\author Franz Schmid
25 		\brief Constructor for SplashScreen
26 		 */
27 		ScSplashScreen ( const QPixmap & pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags() );
~ScSplashScreen()28 		~ScSplashScreen() {}
29 		/*!
30 		\author Franz Schmid
31 		\brief Sets new status on SplashScreen and calls for a SplashScreen::repaint afterwards.
32 		\param message const QString& message to display as actions are performed on startup when SplashScreen is displayed.
33 		*/
34 		void setStatus( const QString &message );
35 
36 	protected:
37 		void drawContents(QPainter *painter);
38 };
39 
40 #endif
41 
42