summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/swarm.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
commit7e09b5c2efae58399621a938de26b9675b8ba621 (patch)
treede2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/xsavers/swarm.h
parent159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff)
downloadtdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz
tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/xsavers/swarm.h')
-rw-r--r--tdescreensaver/xsavers/swarm.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/tdescreensaver/xsavers/swarm.h b/tdescreensaver/xsavers/swarm.h
new file mode 100644
index 00000000..d8cca36c
--- /dev/null
+++ b/tdescreensaver/xsavers/swarm.h
@@ -0,0 +1,67 @@
+//-----------------------------------------------------------------------------
+//
+// kswarm - port of "swarm" from xlock
+//
+
+#ifndef __SWARM_H__
+#define __SWARM_H__
+
+#include <tqtimer.h>
+
+#include <kdialogbase.h>
+#include "saver.h"
+
+
+class kSwarmSaver : public kScreenSaver
+{
+ Q_OBJECT
+
+public:
+ kSwarmSaver( Drawable drawable );
+ virtual ~kSwarmSaver();
+
+ void setSpeed( int spd );
+ void setLevels( int l );
+
+protected:
+ void readSettings();
+
+protected slots:
+ void slotTimeout();
+
+protected:
+ KRandomSequence rnd;
+ TQTimer timer;
+ int colorContext;
+
+ int speed;
+ int maxLevels;
+};
+
+class kSwarmSetup : public KDialogBase
+{
+ Q_OBJECT
+
+public:
+ kSwarmSetup( TQWidget *parent = NULL, const char *name = NULL );
+
+protected:
+ void readSettings();
+
+private slots:
+ void slotSpeed( int );
+ void slotLevels( int );
+
+ void slotOk();
+ void slotHelp();
+
+private:
+ TQWidget *preview;
+ kSwarmSaver *saver;
+
+ int speed;
+ int maxLevels;
+};
+
+#endif
+