summaryrefslogtreecommitdiffstats
path: root/kscreensaver/xsavers/space.h
blob: 6bf82c87760d278dfdee7e2480776d6bca23004a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

#ifndef __SPACE_H__
#define __SPACE_H__

#include <qtimer.h>
#include <qptrlist.h>
#include <kdialogbase.h>
#include <qlineedit.h>
#include "saver.h"

class kSpaceSaver : public kScreenSaver
{
	Q_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:
	QTimer      timer;
	int         colorContext;

	int         counter;
	int         speed;
	int			maxLevels;
	int			numPoints;
};

class kSpaceSetup : public KDialogBase
{
	Q_OBJECT
public:
	kSpaceSetup( QWidget *parent = NULL, const char *name = NULL );

protected:
	void readSettings();

private slots:
	void slotSpeed( int );
	void slotWarp( int );
	void slotOk();
	void slotHelp();

private:
	QWidget *preview;
	kSpaceSaver *saver;

	int			speed;
	int			warpinterval;
};

#endif