diff options
Diffstat (limited to 'kipi-plugins/batchprocessimages/imagepreview.h')
-rw-r--r-- | kipi-plugins/batchprocessimages/imagepreview.h | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/kipi-plugins/batchprocessimages/imagepreview.h b/kipi-plugins/batchprocessimages/imagepreview.h index 27e7204..82b4ba1 100644 --- a/kipi-plugins/batchprocessimages/imagepreview.h +++ b/kipi-plugins/batchprocessimages/imagepreview.h @@ -23,11 +23,11 @@ #ifndef IMAGEPREVIEW_H #define IMAGEPREVIEW_H -// Include files for Qt +// Include files for TQt -#include <qscrollview.h> -#include <qimage.h> -#include <qstring.h> +#include <tqscrollview.h> +#include <tqimage.h> +#include <tqstring.h> // Include files for KDE @@ -37,11 +37,11 @@ #include "kpaboutdata.h" -class QPixmap; -class QCursor; -class QLCDNumber; -class QSlider; -class QPushButton; +class TQPixmap; +class TQCursor; +class TQLCDNumber; +class TQSlider; +class TQPushButton; class KProcess; @@ -50,26 +50,27 @@ namespace KIPIBatchProcessImagesPlugin ///////////////////////////////////////////////////////////////////////////////////////////////////// -class PixmapView : public QScrollView +class PixmapView : public TQScrollView { Q_OBJECT + TQ_OBJECT public: - PixmapView(bool cropAction, QWidget *parent=0, const char *name=0); + PixmapView(bool cropAction, TQWidget *tqparent=0, const char *name=0); ~PixmapView(); - void setImage(const QString &ImagePath, const QString &tmpPath); + void setImage(const TQString &ImagePath, const TQString &tmpPath); void resizeImage(int ZoomFactor); private slots: void slotPreviewReadStd(KProcess* proc, char *buffer, int buflen); void PreviewProcessDone(KProcess* proc); - void contentsWheelEvent( QWheelEvent * e ); - void contentsMousePressEvent ( QMouseEvent * e ); - void contentsMouseReleaseEvent ( QMouseEvent * e ); - void contentsMouseMoveEvent( QMouseEvent * e ); + void contentsWheelEvent( TQWheelEvent * e ); + void contentsMousePressEvent ( TQMouseEvent * e ); + void contentsMouseReleaseEvent ( TQMouseEvent * e ); + void contentsMouseMoveEvent( TQMouseEvent * e ); signals: @@ -77,9 +78,9 @@ signals: protected: - QPixmap *m_pix; + TQPixmap *m_pix; - QImage m_img; + TQImage m_img; int m_w; int m_h; @@ -88,16 +89,16 @@ protected: KProcess *m_PreviewProc; - QString m_previewOutput; - QString m_previewFileName; + TQString m_previewOutput; + TQString m_previewFileName; bool m_validPreview; bool m_cropAction; - QCursor *m_handCursor; + TQCursor *m_handCursor; - void drawContents(QPainter *p, int x, int y, int w, int h); - void PreviewCal(const QString &ImagePath, const QString &tmpPath); + void drawContents(TQPainter *p, int x, int y, int w, int h); + void PreviewCal(const TQString &ImagePath, const TQString &tmpPath); }; @@ -106,12 +107,13 @@ protected: class ImagePreview : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - ImagePreview(const QString &fileOrig, const QString &fileDest, const QString &tmpPath, - bool cropActionOrig, bool cropActionDest, const QString &EffectName, - const QString &FileName, QWidget *parent=0); + ImagePreview(const TQString &fileOrig, const TQString &fileDest, const TQString &tmpPath, + bool cropActionOrig, bool cropActionDest, const TQString &EffectName, + const TQString &FileName, TQWidget *tqparent=0); ~ImagePreview(); private slots: @@ -125,11 +127,11 @@ protected: PixmapView *m_previewOrig; PixmapView *m_previewDest; - QLCDNumber *LCDZoomFactorValue; + TQLCDNumber *LCDZoomFactorValue; - QSlider *ZoomFactorSlider; + TQSlider *ZoomFactorSlider; - QPushButton *m_helpButton; + TQPushButton *m_helpButton; private: |