SVN_SILENT made messages (.desktop file)
[kdeartwork.git] / kscreensaver / xsavers / swarm.h
blob1402912fc3916741f2bf61147f9ee73175b8b730
1 //-----------------------------------------------------------------------------
2 //
3 // kswarm - port of "swarm" from xlock
4 //
6 #ifndef __SWARM_H__
7 #define __SWARM_H__
8 #include <fixx11h.h>
9 #include <qtimer.h>
11 #include <kdialog.h>
12 #include "saver.h"
15 class kSwarmSaver : public kScreenSaver
17 Q_OBJECT
18 public:
19 kSwarmSaver( Drawable drawable );
20 virtual ~kSwarmSaver();
22 void setSpeed( int spd );
23 void setLevels( int l );
25 protected:
26 void readSettings();
28 protected slots:
29 void slotTimeout();
31 protected:
32 KRandomSequence rnd;
33 QTimer timer;
34 int colorContext;
36 int speed;
37 int maxLevels;
40 class kSwarmSetup : public KDialog
42 Q_OBJECT
43 public:
44 kSwarmSetup( QWidget *parent = NULL, const char *name = NULL );
46 protected:
47 void readSettings();
49 private slots:
50 void slotSpeed( int );
51 void slotLevels( int );
53 void slotOk();
54 void slotHelp();
56 private:
57 QWidget *preview;
58 kSwarmSaver *saver;
60 int speed;
61 int maxLevels;
64 #endif