20 #ifndef __KPIXMAPREGIONSELECTORWIDGET_H__
21 #define __KPIXMAPREGIONSELECTORWIDGET_H__
26 #include <kimageeffect.h>
30 #include <tdelibs_export.h>
63 void setPixmap(
const TQPixmap &pixmap );
69 TQPixmap
pixmap()
const {
return m_unzoomedPixmap; }
74 void setSelectedRegion(
const TQRect &rect);
79 TQRect selectedRegion()
const;
84 TQRect unzoomedSelectedRegion()
const;
89 void resetSelection();
95 TQImage selectedImage()
const;
102 void setSelectionAspectRatio(
int width,
int height);
109 void setFreeSelectionAspectRatio();
116 void setMaximumWidgetSize(
int width,
int height );
130 void rotateClockwise();
134 void rotateCounterclockwise();
143 bool eventFilter(TQObject *obj, TQEvent *ev);
151 TQRect calcSelectionRectangle(
const TQPoint &startPoint,
const TQPoint & endPoint );
153 enum CursorState { None=0, Resizing, Moving };
156 TQPixmap m_unzoomedPixmap;
157 TQPixmap m_originalPixmap;
158 TQPixmap m_linedPixmap;
159 TQRect m_selectedRegion;
162 TQPoint m_tempFirstClick;
163 double m_forcedAspectRatio;
165 int m_maxWidth, m_maxHeight;