Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/documentview.h
Show All 27 Lines | |||||
28 | 28 | | |||
29 | // KDE | 29 | // KDE | ||
30 | 30 | | |||
31 | // Local | 31 | // Local | ||
32 | #include <lib/document/document.h> | 32 | #include <lib/document/document.h> | ||
33 | 33 | | |||
34 | class QPropertyAnimation; | 34 | class QPropertyAnimation; | ||
35 | class QUrl; | 35 | class QUrl; | ||
36 | class QGestureEvent; | ||||
37 | class QTapGesture; | ||||
38 | class QPinchGesture; | ||||
39 | class QGesture; | ||||
36 | 40 | | |||
37 | namespace Gwenview | 41 | namespace Gwenview | ||
38 | { | 42 | { | ||
39 | 43 | | |||
40 | class AbstractRasterImageViewTool; | 44 | class AbstractRasterImageViewTool; | ||
41 | class RasterImageView; | 45 | class RasterImageView; | ||
42 | 46 | | |||
43 | struct DocumentViewPrivate; | 47 | struct DocumentViewPrivate; | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 207 | protected: | |||
205 | 209 | | |||
206 | void resizeEvent(QGraphicsSceneResizeEvent* event) override; | 210 | void resizeEvent(QGraphicsSceneResizeEvent* event) override; | ||
207 | void mousePressEvent(QGraphicsSceneMouseEvent* event) override; | 211 | void mousePressEvent(QGraphicsSceneMouseEvent* event) override; | ||
208 | void wheelEvent(QGraphicsSceneWheelEvent* event) override; | 212 | void wheelEvent(QGraphicsSceneWheelEvent* event) override; | ||
209 | void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override; | 213 | void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override; | ||
210 | bool sceneEventFilter(QGraphicsItem*, QEvent*) override; | 214 | bool sceneEventFilter(QGraphicsItem*, QEvent*) override; | ||
211 | void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override; | 215 | void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override; | ||
212 | void dropEvent(QGraphicsSceneDragDropEvent* event) override; | 216 | void dropEvent(QGraphicsSceneDragDropEvent* event) override; | ||
213 | 217 | | |||
rkflx: `override` | |||||
214 | private Q_SLOTS: | 218 | private Q_SLOTS: | ||
rkflx: Remove extra space after `(`. | |||||
rkflx: Better put this into the `private` section? | |||||
215 | void finishOpenUrl(); | 219 | void finishOpenUrl(); | ||
216 | void slotCompleted(); | 220 | void slotCompleted(); | ||
217 | void slotLoadingFailed(); | 221 | void slotLoadingFailed(); | ||
218 | 222 | | |||
219 | void zoomActualSize(); | 223 | void zoomActualSize(); | ||
220 | 224 | | |||
221 | void zoomIn(QPointF center = QPointF(-1, -1)); | 225 | void zoomIn(QPointF center = QPointF(-1, -1)); | ||
222 | void zoomOut(QPointF center = QPointF(-1, -1)); | 226 | void zoomOut(QPointF center = QPointF(-1, -1)); | ||
223 | 227 | | |||
224 | void slotZoomChanged(qreal); | 228 | void slotZoomChanged(qreal); | ||
225 | 229 | | |||
226 | void slotBusyChanged(const QUrl&, bool); | 230 | void slotBusyChanged(const QUrl&, bool); | ||
227 | 231 | | |||
228 | void emitHudTrashClicked(); | 232 | void emitHudTrashClicked(); | ||
229 | void emitHudDeselectClicked(); | 233 | void emitHudDeselectClicked(); | ||
230 | void emitFocused(); | 234 | void emitFocused(); | ||
231 | 235 | | |||
232 | void slotFadeInFinished(); | 236 | void slotFadeInFinished(); | ||
233 | 237 | | |||
234 | void dragThumbnailLoaded(const KFileItem&, const QPixmap&); | 238 | void dragThumbnailLoaded(const KFileItem&, const QPixmap&); | ||
235 | void dragThumbnailLoadingFailed(const KFileItem&); | 239 | void dragThumbnailLoadingFailed(const KFileItem&); | ||
240 | void setPinchParameter(); | ||||
241 | void zoomGesture(qreal newZoom, const QPoint& pos); | ||||
242 | void rotationsGesture(qreal); | ||||
243 | void swipeRight(); | ||||
244 | void swipeLeft(); | ||||
245 | void panGesture(const QPointF& delta); | ||||
246 | void startDragFromTouch(const QPoint& pos); | ||||
236 | 247 | | |||
237 | private: | 248 | private: | ||
238 | friend struct DocumentViewPrivate; | 249 | friend struct DocumentViewPrivate; | ||
239 | DocumentViewPrivate* const d; | 250 | DocumentViewPrivate* const d; | ||
240 | 251 | | |||
241 | void createAdapterForDocument(); | 252 | void createAdapterForDocument(); | ||
242 | }; | 253 | }; | ||
243 | 254 | | |||
244 | } // namespace | 255 | } // namespace | ||
245 | 256 | | |||
246 | #endif /* DOCUMENTVIEW_H */ | 257 | #endif /* DOCUMENTVIEW_H */ |
override