Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/abstractimageview.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
48 | ~AbstractImageView(); | 48 | ~AbstractImageView(); | ||
49 | 49 | | |||
50 | qreal zoom() const; | 50 | qreal zoom() const; | ||
51 | 51 | | |||
52 | virtual void setZoom(qreal zoom, const QPointF& center = QPointF(-1, -1), UpdateType updateType = UpdateIfNecessary); | 52 | virtual void setZoom(qreal zoom, const QPointF& center = QPointF(-1, -1), UpdateType updateType = UpdateIfNecessary); | ||
53 | 53 | | |||
54 | bool zoomToFit() const; | 54 | bool zoomToFit() const; | ||
55 | 55 | | |||
56 | bool zoomToFitWidth() const; | 56 | bool zoomToFill() const; | ||
57 | 57 | | |||
58 | virtual void setZoomToFit(bool value); | 58 | virtual void setZoomToFit(bool value); | ||
59 | 59 | | |||
60 | virtual void setZoomToFitWidth(bool value); | 60 | virtual void setZoomToFill(bool value); | ||
61 | 61 | | |||
62 | virtual void setDocument(Document::Ptr doc); | 62 | virtual void setDocument(Document::Ptr doc); | ||
63 | 63 | | |||
64 | Document::Ptr document() const; | 64 | Document::Ptr document() const; | ||
65 | 65 | | |||
66 | qreal computeZoomToFit() const; | 66 | qreal computeZoomToFit() const; | ||
67 | 67 | | |||
68 | qreal computeZoomToFitWidth() const; | 68 | qreal computeZoomToFill() const; | ||
69 | 69 | | |||
70 | QSizeF documentSize() const; | 70 | QSizeF documentSize() const; | ||
71 | 71 | | |||
72 | QSizeF visibleImageSize() const; | 72 | QSizeF visibleImageSize() const; | ||
73 | 73 | | |||
74 | /** | 74 | /** | ||
75 | * If the image is smaller than the view, imageOffset is the distance from | 75 | * If the image is smaller than the view, imageOffset is the distance from | ||
76 | * the topleft corner of the view to the topleft corner of the image. | 76 | * the topleft corner of the view to the topleft corner of the image. | ||
Show All 22 Lines | |||||
99 | 99 | | |||
100 | void applyPendingScrollPos(); | 100 | void applyPendingScrollPos(); | ||
101 | 101 | | |||
102 | public Q_SLOTS: | 102 | public Q_SLOTS: | ||
103 | void updateCursor(); | 103 | void updateCursor(); | ||
104 | 104 | | |||
105 | Q_SIGNALS: | 105 | Q_SIGNALS: | ||
106 | void zoomToFitChanged(bool); | 106 | void zoomToFitChanged(bool); | ||
107 | void zoomToFitWidthChanged(bool); | 107 | void zoomToFillChanged(bool); | ||
108 | void zoomChanged(qreal); | 108 | void zoomChanged(qreal); | ||
109 | void zoomInRequested(const QPointF&); | 109 | void zoomInRequested(const QPointF&); | ||
110 | void zoomOutRequested(const QPointF&); | 110 | void zoomOutRequested(const QPointF&); | ||
111 | void scrollPosChanged(); | 111 | void scrollPosChanged(); | ||
112 | void completed(); | 112 | void completed(); | ||
113 | void previousImageRequested(); | 113 | void previousImageRequested(); | ||
114 | void nextImageRequested(); | 114 | void nextImageRequested(); | ||
115 | void toggleFullScreenRequested(); | 115 | void toggleFullScreenRequested(); | ||
Show All 32 Lines |