24 #ifndef DIGIKAM_PREVIEW_LAYOUT_H
25 #define DIGIKAM_PREVIEW_LAYOUT_H
40 class GraphicsDImgItem;
41 class GraphicsDImgView;
53 SnapZoomFactor = 1 << 1
55 Q_DECLARE_FLAGS(SetZoomFlags, SetZoomFlag)
73 bool isFitToWindow()
const;
74 double zoomFactor()
const;
75 double realZoomFactor()
const;
80 double maxZoomFactor()
const;
81 double minZoomFactor()
const;
82 void setMaxZoomFactor(
double z);
83 void setMinZoomFactor(
double z);
84 bool atMaxZoom()
const;
85 bool atMinZoom()
const;
94 void increaseZoom(
const QPoint& viewportAnchor = QPoint());
95 void decreaseZoom(
const QPoint& viewportAnchor = QPoint());
96 void setZoomFactor(
double z,
const QPoint& viewportAnchor = QPoint(), SetZoomFlags flags = JustSetFactor);
97 void setZoomFactor(
double z, SetZoomFlags flags);
98 void setZoomFactorSnapped(
double z);
102 void toggleFitToWindow();
105 void toggleFitToWindowOr100();
108 void updateZoomAndSize();
122 Q_DECLARE_OPERATORS_FOR_FLAGS(SinglePhotoPreviewLayout::SetZoomFlags)
Definition: dimgitems_p.h:75
Definition: graphicsdimgview.h:44
Definition: previewlayout.h:44
void fitToWindowToggled(bool fitToWindow)
SetZoomFlag
Definition: previewlayout.h:50
void zoomFactorChanged(double)
Definition: datefolderview.cpp:43