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