65 lines
930 B
65 lines
930 B
15 years ago
|
|
||
|
#ifndef __SPACE_H__
|
||
|
#define __SPACE_H__
|
||
|
|
||
15 years ago
|
#include <tqtimer.h>
|
||
|
#include <tqptrlist.h>
|
||
15 years ago
|
#include <kdialogbase.h>
|
||
15 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:
|
||
15 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:
|
||
15 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:
|
||
15 years ago
|
TQWidget *preview;
|
||
15 years ago
|
kSpaceSaver *saver;
|
||
|
|
||
|
int speed;
|
||
|
int warpinterval;
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|