summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/perspective/perspectivewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/perspective/perspectivewidget.h')
-rw-r--r--digikam/imageplugins/perspective/perspectivewidget.h77
1 files changed, 39 insertions, 38 deletions
diff --git a/digikam/imageplugins/perspective/perspectivewidget.h b/digikam/imageplugins/perspective/perspectivewidget.h
index 0fb5126b..d84af472 100644
--- a/digikam/imageplugins/perspective/perspectivewidget.h
+++ b/digikam/imageplugins/perspective/perspectivewidget.h
@@ -25,13 +25,13 @@
#ifndef PERSPECTIVEWIDGET_H
#define PERSPECTIVEWIDGET_H
-// Qt includes.
+// TQt includes.
-#include <qwidget.h>
-#include <qpoint.h>
-#include <qpointarray.h>
-#include <qcolor.h>
-#include <qrect.h>
+#include <tqwidget.h>
+#include <tqpoint.h>
+#include <tqpointarray.h>
+#include <tqcolor.h>
+#include <tqrect.h>
// Digikam includes.
@@ -41,7 +41,7 @@
#include "matrix.h"
-class QPixmap;
+class TQPixmap;
namespace Digikam
{
@@ -51,20 +51,21 @@ class ImageIface;
namespace DigikamPerspectiveImagesPlugin
{
-class PerspectiveWidget : public QWidget
+class PerspectiveWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- PerspectiveWidget(int width, int height, QWidget *parent=0);
+ PerspectiveWidget(int width, int height, TQWidget *tqparent=0);
~PerspectiveWidget();
- QRect getTargetSize(void);
- QPoint getTopLeftCorner(void);
- QPoint getTopRightCorner(void);
- QPoint getBottomLeftCorner(void);
- QPoint getBottomRightCorner(void);
+ TQRect getTargetSize(void);
+ TQPoint getTopLeftCorner(void);
+ TQPoint getTopRightCorner(void);
+ TQPoint getBottomLeftCorner(void);
+ TQPoint getBottomRightCorner(void);
void reset(void);
float getAngleTopLeft(void);
@@ -82,21 +83,21 @@ public slots:
void slotToggleDrawWhileMoving(bool draw);
void slotToggleDrawGrid(bool grid);
- void slotChangeGuideColor(const QColor &color);
+ void slotChangeGuideColor(const TQColor &color);
void slotChangeGuideSize(int size);
signals:
- void signalPerspectiveChanged( QRect newSize, float topLeftAngle, float topRightAngle,
+ void signalPerspectiveChanged( TQRect newSize, float topLeftAngle, float topRightAngle,
float bottomLeftAngle, float bottomRightAngle );
protected:
- void paintEvent( QPaintEvent *e );
- void resizeEvent( QResizeEvent * e );
- void mousePressEvent ( QMouseEvent * e );
- void mouseReleaseEvent ( QMouseEvent * e );
- void mouseMoveEvent ( QMouseEvent * e );
+ void paintEvent( TQPaintEvent *e );
+ void resizeEvent( TQResizeEvent * e );
+ void mousePressEvent ( TQMouseEvent * e );
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ void mouseMoveEvent ( TQMouseEvent * e );
private: // Widget methods.
@@ -105,9 +106,9 @@ private: // Widget methods.
void transformAffine(Digikam::DImg *orgImage, Digikam::DImg *destImage,
const Matrix &matrix, Digikam::DColor background);
- QPoint buildPerspective(QPoint orignTopLeft, QPoint orignBottomRight,
- QPoint transTopLeft, QPoint transTopRight,
- QPoint transBottomLeft, QPoint transBottomRight,
+ TQPoint buildPerspective(TQPoint orignTopLeft, TQPoint orignBottomRight,
+ TQPoint transTopLeft, TQPoint transTopRight,
+ TQPoint transBottomLeft, TQPoint transBottomRight,
Digikam::DImg *orgImage=0, Digikam::DImg *destImage=0,
Digikam::DColor background=Digikam::DColor());
@@ -136,31 +137,31 @@ private:
int m_guideSize;
- QRect m_rect;
+ TQRect m_rect;
// Tranformed center area for mouse position control.
- QPoint m_transformedCenter;
+ TQPoint m_transformedCenter;
// Draggable local region selection corners.
- QRect m_topLeftCorner;
- QRect m_topRightCorner;
- QRect m_bottomLeftCorner;
- QRect m_bottomRightCorner;
+ TQRect m_topLeftCorner;
+ TQRect m_topRightCorner;
+ TQRect m_bottomLeftCorner;
+ TQRect m_bottomRightCorner;
- QPoint m_topLeftPoint;
- QPoint m_topRightPoint;
- QPoint m_bottomLeftPoint;
- QPoint m_bottomRightPoint;
- QPoint m_spot;
+ TQPoint m_topLeftPoint;
+ TQPoint m_topRightPoint;
+ TQPoint m_bottomLeftPoint;
+ TQPoint m_bottomRightPoint;
+ TQPoint m_spot;
- QColor m_guideColor;
+ TQColor m_guideColor;
// 60 points will be stored to compute a grid of 15x15 lines.
- QPointArray m_grid;
+ TQPointArray m_grid;
- QPixmap *m_pixmap;
+ TQPixmap *m_pixmap;
Digikam::ImageIface *m_iface;
Digikam::DImg m_previewImage;