1 //-----------------------------------------------------------------------------
3 // klines 0.1.1 - Basic screen saver for KDE
4 // by Dirk Staneker 1997
5 // based on kpolygon 0.3 by Martin R. Jones 1996
12 #include <q3ptrlist.h>
15 #include <krandomsequence.h>
16 #include <kscreensaver.h>
26 Ln
*start
, *end
, *akt
;
27 int offx1
, offy1
, offx2
, offy2
;
33 inline void getKoord(int&, int&, int&, int&);
34 inline void setKoord(const int&, const int&, const int&, const int&);
35 inline void next(void);
36 void turn(const int&, const int&);
39 class kLinesSaver
:public KScreenSaver
{
42 kLinesSaver( WId id
);
43 virtual ~kLinesSaver();
45 void setLines(int len
);
46 void setSpeed(int spd
);
47 void setColor(const QColor
&, const QColor
&, const QColor
&);
52 void initialiseLines();
53 void initialiseColor();
64 QColor colstart
, colmid
, colend
;
69 class kLinesSetup
: public KDialog
{
72 kLinesSetup(QWidget
*parent
=NULL
, const char *name
=NULL
);
81 void slotColstart(const QColor
&);
82 void slotColmid(const QColor
&);
83 void slotColend(const QColor
&);
88 KColorButton
*colorPush0
, *colorPush1
, *colorPush2
;
92 QColor colstart
, colmid
, colend
;