Back to index

kdeartwork  4.3.2
space.h
Go to the documentation of this file.
00001 
00002 #ifndef __SPACE_H__
00003 #define __SPACE_H__
00004 
00005 #include <qtimer.h>
00006 #include <q3ptrlist.h>
00007 #include <kdialogbase.h>
00008 #include <qlineedit.h>
00009 #include "saver.h"
00010 
00011 class kSpaceSaver : public kScreenSaver
00012 {
00013        Q_OBJECT
00014 public:
00015        kSpaceSaver( Drawable drawable );
00016        virtual ~kSpaceSaver();
00017 
00018        void setSpeed( int spd );
00019        void setWarp( int l );
00020        void setPoints( int p );
00021 
00022 protected:
00023        void readSettings();
00024 
00025 protected slots:
00026        void slotTimeout();
00027 
00028 protected:
00029        QTimer      timer;
00030        int         colorContext;
00031 
00032        int         counter;
00033        int         speed;
00034        int                  maxLevels;
00035        int                  numPoints;
00036 };
00037 
00038 class kSpaceSetup : public KDialogBase
00039 {
00040        Q_OBJECT
00041 public:
00042        kSpaceSetup( QWidget *parent = NULL, const char *name = NULL );
00043 
00044 protected:
00045        void readSettings();
00046 
00047 private slots:
00048        void slotSpeed( int );
00049        void slotWarp( int );
00050        void slotOk();
00051        void slotHelp();
00052 
00053 private:
00054        QWidget *preview;
00055        kSpaceSaver *saver;
00056 
00057        int                  speed;
00058        int                  warpinterval;
00059 };
00060 
00061 #endif
00062