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 | 8b2aa1b5301ab60368a03e36df4ff5216726e87d (patch) | |
tree | 36163d4ee667c23b5cf232df2f3004cd0a76202a /kscreensaver/xsavers/space.h | |
download | tdeartwork-8b2aa1b5301ab60368a03e36df4ff5216726e87d.tar.gz tdeartwork-8b2aa1b5301ab60368a03e36df4ff5216726e87d.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/kdeartwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/xsavers/space.h')
-rw-r--r-- | kscreensaver/xsavers/space.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/kscreensaver/xsavers/space.h b/kscreensaver/xsavers/space.h new file mode 100644 index 00000000..6bf82c87 --- /dev/null +++ b/kscreensaver/xsavers/space.h @@ -0,0 +1,62 @@ + +#ifndef __SPACE_H__ +#define __SPACE_H__ + +#include <qtimer.h> +#include <qptrlist.h> +#include <kdialogbase.h> +#include <qlineedit.h> +#include "saver.h" + +class kSpaceSaver : public kScreenSaver +{ + Q_OBJECT +public: + kSpaceSaver( Drawable drawable ); + virtual ~kSpaceSaver(); + + void setSpeed( int spd ); + void setWarp( int l ); + void setPoints( int p ); + +protected: + void readSettings(); + +protected slots: + void slotTimeout(); + +protected: + QTimer timer; + int colorContext; + + int counter; + int speed; + int maxLevels; + int numPoints; +}; + +class kSpaceSetup : public KDialogBase +{ + Q_OBJECT +public: + kSpaceSetup( QWidget *parent = NULL, const char *name = NULL ); + +protected: + void readSettings(); + +private slots: + void slotSpeed( int ); + void slotWarp( int ); + void slotOk(); + void slotHelp(); + +private: + QWidget *preview; + kSpaceSaver *saver; + + int speed; + int warpinterval; +}; + +#endif + |