24 #ifndef DIGIKAM_IMAGE_GUIDE_WIDGET_H
25 #define DIGIKAM_IMAGE_GUIDE_WIDGET_H
32 #include <QResizeEvent>
33 #include <QMouseEvent>
34 #include <QPaintEvent>
37 #include <QTimerEvent>
72 bool spotVisible =
true,
73 int guideMode = PickColorMode,
74 const QColor& guideColor = Qt::red,
81 QImage getMask()
const;
82 QPoint getSpotPosition()
const;
83 DColor getSpotColor(
int getColorFrom)
const;
84 int previewMode()
const;
86 void setSpotVisible(
bool spotVisible,
bool blink =
false);
87 void setSpotVisibleNoUpdate(
bool spotVisible);
88 void resetSpotPosition();
90 void setPoints(
const QPolygon& p,
bool drawLine =
false);
93 void setPaintColor(
const QColor& color);
94 void setEraseMode(
bool erase);
95 void setMaskEnabled(
bool enabled);
96 void setMaskPenSize(
int size);
99 void setBackgroundColor(
const QColor&);
100 void ICCSettingsChanged();
101 void exposureSettingsChanged();
105 void slotChangeGuideColor(
const QColor& color);
106 void slotChangeGuideSize(
int size);
107 void slotPreviewModeChanged(
int mode);
117 void paintEvent(QPaintEvent*)
override;
118 void resizeEvent(QResizeEvent*)
override;
119 void timerEvent(QTimerEvent*)
override;
120 void mousePressEvent(QMouseEvent*)
override;
121 void mouseReleaseEvent(QMouseEvent*)
override;
122 void mouseMoveEvent(QMouseEvent*)
override;
124 #if (QT_VERSION > QT_VERSION_CHECK(5, 99, 0))
125 void enterEvent(QEnterEvent*)
override;
127 void enterEvent(QEvent*)
override;
130 void leaveEvent(QEvent*)
override;
132 void drawLineTo(
const QPoint& endPoint);
133 void drawLineTo(
int width,
bool erase,
const QColor& color,
const QPoint& start,
const QPoint& end);
134 QPoint translatePointPosition(
const QPoint& point)
const;
135 void drawText(QPainter*
const p,
const QPoint& corner,
const QString& text);
136 void updateMaskCursor();
137 void setSpotPosition(
const QPoint& point);
138 void updateSpotPosition(
int x,
int y);
139 QPoint translateItemPosition(
const QPoint& point,
bool src)
const;
Definition: imageiface.h:47
PreviewType
Definition: imageiface.h:52
@ FullImage
Preview will be rendered using full image.
Definition: imageiface.h:53
Definition: datefolderview.cpp:43