diff options
author | Timothy Pearson <[email protected]> | 2013-01-26 13:16:15 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-26 13:16:15 -0600 |
commit | 7e09b5c2efae58399621a938de26b9675b8ba621 (patch) | |
tree | de2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/kdesavers/wave.h | |
parent | 159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff) | |
download | tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/kdesavers/wave.h')
-rw-r--r-- | tdescreensaver/kdesavers/wave.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/tdescreensaver/kdesavers/wave.h b/tdescreensaver/kdesavers/wave.h new file mode 100644 index 00000000..363e8ddd --- /dev/null +++ b/tdescreensaver/kdesavers/wave.h @@ -0,0 +1,100 @@ +//----------------------------------------------------------------------------- +// +// kwave - Partical Wave Screen Saver for KDE 2 +// +// Copyright (c) Ian Reinhart Geiser 2001 +// +///// +//NOTE: +// The base particle engine did not come from me, it was designed by Jeff Molofee <[email protected]> +// I did some extensive modifications to make it work with QT's OpenGL but the base principal is about +// the same. +//// + +#ifndef __WAVE_H__ +#define __WAVE_H__ + +#include <tqdialog.h> +#include <tqgl.h> +#ifdef TQ_WS_MACX +#include <OpenGL/glu.h> +#include <OpenGL/gl.h> +#else +#include <GL/glu.h> +#include <GL/gl.h> +#endif +#include <tdescreensaver.h> +#include <tqtimer.h> +#include <tqimage.h> +#include "wavecfg.h" + + +class Wave : public TQGLWidget +{ +Q_OBJECT + + +public: + Wave( TQWidget * parent=0, const char * name=0 ); + ~Wave(); + +protected: + /** paint the GL view */ + void paintGL (); + /** resize the gl view */ + void resizeGL ( int w, int h ); + /** setup the GL enviroment */ + void initializeGL (); + + +private: +// + GLUnurbsObj *pNurb; + GLint nNumPoints; +// float ctrlPoints[4][4][3]; +// float knots[8]; + int index; + bool LoadGLTextures(); + GLuint texture[1]; + TQImage tex; + +}; + +class KWaveSaver : public KScreenSaver +{ +Q_OBJECT + +public: + KWaveSaver( WId drawable ); + virtual ~KWaveSaver(); + void readSettings(); +public slots: + void blank(); + +private: + Wave *wave; + TQTimer *timer; +}; + +class KWaveSetup : public SetupUi +{ + Q_OBJECT + +public: + KWaveSetup( TQWidget *parent = NULL, const char *name = NULL ); + ~KWaveSetup( ); +protected: + void readSettings(); + +private slots: + void slotOkPressed(); + void aboutPressed(); +private: + KWaveSaver *saver; + float size; + float stars; +}; + +#endif + + |