3 //============================================================================
5 // Terence Welsh Screensaver - Flux
6 // http://www.reallyslick.com/
8 // Ported to KDE by Karl Robillard
10 //============================================================================
25 class FluxWidget
: public QGLWidget
42 FluxWidget( QWidget
* parent
=0, const char* name
=0 );
45 void setDefaults( int which
);
46 void updateParameters();
51 void resizeGL( int w
, int h
);
54 void keyPressEvent( QKeyEvent
* );
65 float cosCameraAngle
, sinCameraAngle
;
66 unsigned char lightTexture
[LIGHTSIZE
][LIGHTSIZE
];
85 // Using QTimer rather than timerEvent() to avoid getting locked out of
86 // the QEvent loop on lower-end systems. Ian Geiser <geiseri@kde.org>
87 // says this is the way to go.
92 friend class particle
;
98 #include <kscreensaver.h>
101 class KFluxScreenSaver
: public KScreenSaver
107 KFluxScreenSaver( WId id
);
108 virtual ~KFluxScreenSaver();
110 int mode() const { return _mode
; }
127 class KFluxSetup
: public KDialog
133 KFluxSetup( QWidget
* parent
= 0, const char* name
= 0 );
144 KFluxScreenSaver
* _saver
;
149 #endif //__FLUXSS_H__