Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoCanvasController.h
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Line(s) | 341 | public: | |||
---|---|---|---|---|---|
344 | 344 | | |||
345 | void emitCanvasRemoved(KoCanvasController *canvasController) { emit canvasRemoved(canvasController); } | 345 | void emitCanvasRemoved(KoCanvasController *canvasController) { emit canvasRemoved(canvasController); } | ||
346 | void emitCanvasSet(KoCanvasController *canvasController) { emit canvasSet(canvasController); } | 346 | void emitCanvasSet(KoCanvasController *canvasController) { emit canvasSet(canvasController); } | ||
347 | void emitCanvasOffsetXChanged(int offset) { emit canvasOffsetXChanged(offset); } | 347 | void emitCanvasOffsetXChanged(int offset) { emit canvasOffsetXChanged(offset); } | ||
348 | void emitCanvasOffsetYChanged(int offset) { emit canvasOffsetYChanged(offset); } | 348 | void emitCanvasOffsetYChanged(int offset) { emit canvasOffsetYChanged(offset); } | ||
349 | void emitCanvasMousePositionChanged(const QPoint &position) { emit canvasMousePositionChanged(position); } | 349 | void emitCanvasMousePositionChanged(const QPoint &position) { emit canvasMousePositionChanged(position); } | ||
350 | void emitDocumentMousePositionChanged(const QPointF &position) { emit documentMousePositionChanged(position); } | 350 | void emitDocumentMousePositionChanged(const QPointF &position) { emit documentMousePositionChanged(position); } | ||
351 | void emitSizeChanged(const QSize &size) { emit sizeChanged(size); } | 351 | void emitSizeChanged(const QSize &size) { emit sizeChanged(size); } | ||
352 | void emitMoveDocumentOffset(const QPoint &point) { emit moveDocumentOffset(point); } | 352 | void emitMoveDocumentOffsetDevicePixel(const QPoint &point) { emit moveDocumentOffsetDevicePixel(point); } | ||
353 | void emitZoomRelative(const qreal factor, const QPointF &stillPoint) { emit zoomRelative(factor, stillPoint); } | 353 | void emitZoomRelative(const qreal factor, const QPointF &stillPoint) { emit zoomRelative(factor, stillPoint); } | ||
354 | 354 | | |||
355 | // Convenience method to retrieve the canvas controller for who needs to use QPointer | 355 | // Convenience method to retrieve the canvas controller for who needs to use QPointer | ||
356 | KoCanvasController *canvasController() const { return m_canvasController; } | 356 | KoCanvasController *canvasController() const { return m_canvasController; } | ||
357 | 357 | | |||
358 | Q_SIGNALS: | 358 | Q_SIGNALS: | ||
359 | /** | 359 | /** | ||
360 | * Emitted when a previously added canvas is about to be removed. | 360 | * Emitted when a previously added canvas is about to be removed. | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
402 | void sizeChanged(const QSize &size); | 402 | void sizeChanged(const QSize &size); | ||
403 | 403 | | |||
404 | /** | 404 | /** | ||
405 | * Emitted whenever the document is scrolled. | 405 | * Emitted whenever the document is scrolled. | ||
406 | * | 406 | * | ||
407 | * @param point the new top-left point from which the document should | 407 | * @param point the new top-left point from which the document should | ||
408 | * be drawn. | 408 | * be drawn. | ||
409 | */ | 409 | */ | ||
410 | void moveDocumentOffset(const QPoint &point); | 410 | void moveDocumentOffsetDevicePixel(const QPoint &point); | ||
411 | 411 | | |||
412 | /** | 412 | /** | ||
413 | * Emitted when zoomRelativeToPoint have calculated a factor by which | 413 | * Emitted when zoomRelativeToPoint have calculated a factor by which | ||
414 | * the zoom should change and the point which should stand still | 414 | * the zoom should change and the point which should stand still | ||
415 | * on screen. | 415 | * on screen. | ||
416 | * Someone needs to connect to this and take action | 416 | * Someone needs to connect to this and take action | ||
417 | * | 417 | * | ||
418 | * @param factor by how much the zoom needs to change. | 418 | * @param factor by how much the zoom needs to change. | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |