not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kscreensaver / kblank_screensaver / blankscrn.h
blobe06182379c78d9da7a201161983e952d68889adf
1 //-----------------------------------------------------------------------------
2 //
3 // kblankscrn - Basic screen saver for KDE
4 //
5 // Copyright (c) Martin R. Jones 1996
6 //
8 #ifndef BLANKSCRN_H
9 #define BLANKSCRN_H
11 #include <QColor>
12 #include <kdialog.h>
13 #include "kscreensaver.h"
17 class KBlankSaver : public KScreenSaver
19 Q_OBJECT
20 public:
21 KBlankSaver( WId drawable );
22 virtual ~KBlankSaver();
24 void setColor( const QColor &col );
26 private:
27 void readSettings();
28 void blank();
30 private:
31 QColor color;
34 class KBlankSetup : public KDialog
36 Q_OBJECT
37 public:
38 KBlankSetup( QWidget *parent = NULL, const char *name = NULL );
40 protected:
41 void readSettings();
43 private Q_SLOTS:
44 void slotColor( const QColor & );
45 void slotOk();
47 private:
48 QWidget *preview;
49 KBlankSaver *saver;
51 QColor color;
54 #endif