1 #ifndef __EUPHORIASS_H__
2 #define __EUPHORIASS_H__
3 //============================================================================
5 // Terence Welsh Screensaver - Euphoria
6 // http://www.reallyslick.com/
8 // KDE port by Karl Robillard
10 //============================================================================
22 class EuphoriaWidget
: public QGLWidget
35 UHFTEM
, // ultra high frequency tunneling electron microscope
42 EuphoriaWidget( QWidget
* parent
=0 );
45 void updateParameters();
46 void setDefaults( int which
);
51 void resizeGL( int w
, int h
);
54 void keyPressEvent( QKeyEvent
* );
66 unsigned char* feedbackmap
;
71 // feedback texture object
72 unsigned int feedbacktex
;
98 // Using QTimer rather than timerEvent() to avoid getting locked out of
99 // the QEvent loop on lower-end systems. Ian Geiser <geiseri@kde.org>
100 // says this is the way to go.
110 #include <kscreensaver.h>
113 class KEuphoriaScreenSaver
: public KScreenSaver
119 KEuphoriaScreenSaver( WId id
);
120 virtual ~KEuphoriaScreenSaver();
122 int mode() const { return _mode
; }
132 EuphoriaWidget
* _effect
;
139 class KEuphoriaSetup
: public KDialog
144 KEuphoriaSetup( QWidget
* parent
= 0, const char* name
= 0 );
153 KEuphoriaScreenSaver
* _saver
;
157 #endif //__EUPHORIASS_H__