diff options
Diffstat (limited to 'kipi-plugins/imageviewer/viewerwidget.h')
-rw-r--r-- | kipi-plugins/imageviewer/viewerwidget.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/kipi-plugins/imageviewer/viewerwidget.h b/kipi-plugins/imageviewer/viewerwidget.h index 6ea093c..3b7afe9 100644 --- a/kipi-plugins/imageviewer/viewerwidget.h +++ b/kipi-plugins/imageviewer/viewerwidget.h @@ -22,16 +22,16 @@ #define _VIEWERWIDGET_H_ //QT includes -#include <qgl.h> -#include <qdir.h> -#include <qimage.h> -#include <qdatetime.h> +#include <tqgl.h> +#include <tqdir.h> +#include <tqimage.h> +#include <tqdatetime.h> #include <iostream> #include <kurl.h> #include <kmimetype.h> -#include <qregexp.h> -#include <qcursor.h> -#include <qtimer.h> +#include <tqregexp.h> +#include <tqcursor.h> +#include <tqtimer.h> //kipi includes #include <libkipi/imageinfo.h> @@ -59,9 +59,10 @@ enum OGLstate { oglOK, oglNoRectangularTexture, oglNoContext }; -class ViewerWidget : public QGLWidget +class ViewerWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: ViewerWidget(KIPI::Interface*); @@ -81,9 +82,9 @@ public: Texture * loadImage(int file_index); void prevImage(); void nextImage(); - void zoom(int mdelta, QPoint pos, float factor); - virtual void mouseReleaseEvent(QMouseEvent * e); - virtual void keyReleaseEvent ( QKeyEvent * e ); + void zoom(int mdelta, TQPoint pos, float factor); + virtual void mouseReleaseEvent(TQMouseEvent * e); + virtual void keyReleaseEvent ( TQKeyEvent * e ); OGLstate getOGLstate(); protected: @@ -99,29 +100,29 @@ protected: Texture * texture; unsigned int old_file_idx,file_idx,idx, oldidx; float ratio_view_y,ratio_view_x,delta; - QTime timer; - QDir directory; - QStringList files; + TQTime timer; + TQDir directory; + TQStringList files; unsigned char * imageJPEGLIB; Cache cache[CACHESIZE]; GLuint tex[3]; float vertex_height,vertex_width,vertex_left,vertex_top,vertex_right,vertex_bottom; - QPoint startdrag, previous_pos; + TQPoint startdrag, previous_pos; WheelAction wheelAction; bool firstImage; - QSize zoomsize; - QTimer timerMouseMove; - QCursor moveCursor, zoomCursor; + TQSize zoomsize; + TQTimer timerMouseMove; + TQCursor moveCursor, zoomCursor; float zoomfactor_scrollwheel, zoomfactor_mousemove, zoomfactor_keyboard; - QString nullImage; + TQString nullImage; KIPI::Interface * kipiInterface; protected: - virtual void keyPressEvent(QKeyEvent *k); - virtual void wheelEvent ( QWheelEvent * e ); - virtual void mouseMoveEvent ( QMouseEvent * e ); - virtual void mousePressEvent ( QMouseEvent * e ); - virtual void mouseDoubleClickEvent(QMouseEvent * e ); + virtual void keyPressEvent(TQKeyEvent *k); + virtual void wheelEvent ( TQWheelEvent * e ); + virtual void mouseMoveEvent ( TQMouseEvent * e ); + virtual void mousePressEvent ( TQMouseEvent * e ); + virtual void mouseDoubleClickEvent(TQMouseEvent * e ); private slots: void timeoutMouseMove(); }; |