You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
968 B
68 lines
968 B
15 years ago
|
//-----------------------------------------------------------------------------
|
||
|
//
|
||
|
// kswarm - port of "swarm" from xlock
|
||
|
//
|
||
|
|
||
|
#ifndef __SWARM_H__
|
||
|
#define __SWARM_H__
|
||
|
|
||
15 years ago
|
#include <tqtimer.h>
|
||
15 years ago
|
|
||
|
#include <kdialogbase.h>
|
||
|
#include "saver.h"
|
||
|
|
||
|
|
||
|
class kSwarmSaver : public kScreenSaver
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
|
kSwarmSaver( Drawable drawable );
|
||
|
virtual ~kSwarmSaver();
|
||
|
|
||
|
void setSpeed( int spd );
|
||
|
void setLevels( int l );
|
||
|
|
||
|
protected:
|
||
|
void readSettings();
|
||
|
|
||
|
protected slots:
|
||
|
void slotTimeout();
|
||
|
|
||
|
protected:
|
||
|
KRandomSequence rnd;
|
||
15 years ago
|
TQTimer timer;
|
||
15 years ago
|
int colorContext;
|
||
|
|
||
|
int speed;
|
||
|
int maxLevels;
|
||
|
};
|
||
|
|
||
|
class kSwarmSetup : public KDialogBase
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
15 years ago
|
kSwarmSetup( TQWidget *parent = NULL, const char *name = NULL );
|
||
15 years ago
|
|
||
|
protected:
|
||
|
void readSettings();
|
||
|
|
||
|
private slots:
|
||
|
void slotSpeed( int );
|
||
|
void slotLevels( int );
|
||
|
|
||
|
void slotOk();
|
||
|
void slotHelp();
|
||
|
|
||
|
private:
|
||
15 years ago
|
TQWidget *preview;
|
||
15 years ago
|
kSwarmSaver *saver;
|
||
|
|
||
|
int speed;
|
||
|
int maxLevels;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|