summaryrefslogtreecommitdiffstats
path: root/src/splashscreen.h
blob: 15114f3f7022e84f23b9e6143f9c41ae6ca62afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

#ifndef _SPLASHSCREEN_H_
#define _SPLASHSCREEN_H_

#include <qsplashscreen.h>
#include <qpainter.h>
#include <qlabel.h>

class QPixmap;

/**
Splash screen.
*/
class KDevSplashScreen : public QSplashScreen
{
Q_OBJECT

public:
	KDevSplashScreen(const QPixmap& pixmap, WFlags f = 0);
	virtual ~KDevSplashScreen();

protected:
	void drawContents (QPainter * painter);

public slots:
	void animate();
	void message( const QString &str, int flags = AlignLeft,
		const QColor &color = black );

private:
	int state;
	int progress_bar_size;
	QString m_string;

};

#endif