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.
65 lines
930 B
65 lines
930 B
15 years ago
|
|
||
|
#ifndef __SPACE_H__
|
||
|
#define __SPACE_H__
|
||
|
|
||
14 years ago
|
#include <tqtimer.h>
|
||
|
#include <tqptrlist.h>
|
||
15 years ago
|
#include <kdialogbase.h>
|
||
14 years ago
|
#include <tqlineedit.h>
|
||
15 years ago
|
#include "saver.h"
|
||
|
|
||
|
class kSpaceSaver : public kScreenSaver
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
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:
|
||
14 years ago
|
TQTimer timer;
|
||
15 years ago
|
int colorContext;
|
||
|
|
||
|
int counter;
|
||
|
int speed;
|
||
|
int maxLevels;
|
||
|
int numPoints;
|
||
|
};
|
||
|
|
||
|
class kSpaceSetup : public KDialogBase
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
14 years ago
|
kSpaceSetup( TQWidget *parent = NULL, const char *name = NULL );
|
||
15 years ago
|
|
||
|
protected:
|
||
|
void readSettings();
|
||
|
|
||
|
private slots:
|
||
|
void slotSpeed( int );
|
||
|
void slotWarp( int );
|
||
|
void slotOk();
|
||
|
void slotHelp();
|
||
|
|
||
|
private:
|
||
14 years ago
|
TQWidget *preview;
|
||
15 years ago
|
kSpaceSaver *saver;
|
||
|
|
||
|
int speed;
|
||
|
int warpinterval;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|