26 #ifndef DIGIKAM_DPREVIEW_IMAGE_H
27 #define DIGIKAM_DPREVIEW_IMAGE_H
31 #include <QGraphicsView>
32 #include <QGraphicsPixmapItem>
73 void setMaxRight(qreal maxRight);
74 void setMaxBottom(qreal maxBottom);
76 Intersects intersects(QPointF& point);
78 void saveZoom(qreal zoom);
80 void setRect(
const QRectF& rect);
82 QPointF fixTranslation(QPointF dp)
const;
87 QRectF boundingRect()
const override;
88 void paint(QPainter* painter,
89 const QStyleOptionGraphicsItem* option,
90 QWidget* widget)
override;
115 bool load(
const QUrl& file)
const;
116 bool setImage(
const QImage& img)
const;
117 void enableSelectionArea(
bool b);
124 void setSelectionArea(
const QRectF& rectangle);
125 QRectF getSelectionArea()
const;
136 void slotSetTLX(
float ratio);
137 void slotSetTLY(
float ratio);
138 void slotSetBRX(
float ratio);
139 void slotSetBRY(
float ratio);
150 void slotSetSelection(
float tl_x,
float tl_y,
float br_x,
float br_y);
151 void slotClearActiveSelection();
161 void slotSetHighlightArea(
float tl_x,
float tl_y,
float br_x,
float br_y);
169 void slotSetHighlightShown(
int percentage,
const QColor& highLightColor = Qt::white);
174 void slotClearHighlight();
178 void wheelEvent(QWheelEvent*)
override;
179 void mousePressEvent(QMouseEvent*)
override;
180 void mouseReleaseEvent(QMouseEvent*)
override;
181 void mouseMoveEvent(QMouseEvent*)
override;
182 void leaveEvent(QEvent*)
override;
183 bool eventFilter(QObject*, QEvent*)
override;
184 void resizeEvent(QResizeEvent*)
override;
186 #if (QT_VERSION > QT_VERSION_CHECK(5, 99, 0))
187 void enterEvent(QEnterEvent*)
override;
189 void enterEvent(QEvent*)
override;
192 void updateSelVisibility();
193 void updateHighlight();
Definition: dpreviewimage.h:105
Definition: dpreviewimage.h:49
@ Top
Definition: dpreviewimage.h:55
@ None
Definition: dpreviewimage.h:54
@ TopLeft
Definition: dpreviewimage.h:62
@ TopRight
Definition: dpreviewimage.h:56
@ BottomRight
Definition: dpreviewimage.h:58
@ BottomLeft
Definition: dpreviewimage.h:60
@ Right
Definition: dpreviewimage.h:57
@ Bottom
Definition: dpreviewimage.h:59
@ Left
Definition: dpreviewimage.h:61
Definition: datefolderview.cpp:43