|
Krita Source Code Documentation
|
#include <KoZoomStrategy.h>
Inheritance diagram for KoZoomStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| Execute the zoom. | |
| void | forceZoomIn () |
| void | forceZoomOut () |
| KoZoomStrategy (KoZoomTool *tool, KoCanvasController *controller, const QPointF &clicked) | |
Public Member Functions inherited from KoShapeRubberSelectStrategy | |
| KUndo2Command * | createCommand () override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoShapeRubberSelectStrategy (KoToolBase *tool, const QPointF &clicked, bool useSnapToGrid=false) | |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
Public Member Functions inherited from KoInteractionStrategy | |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Protected Member Functions | |
| SelectionMode | currentMode () const override |
Protected Member Functions inherited from KoShapeRubberSelectStrategy | |
| KoShapeRubberSelectStrategy (KoShapeRubberSelectStrategyPrivate &) | |
| constructor | |
| QRectF | selectedRectangle () const |
Protected Member Functions inherited from KoInteractionStrategy | |
| uint | decorationThickness () const |
| uint | grabSensitivity () const |
| Convenience function to get the global grab sensitivity. | |
| uint | handleRadius () const |
| Convenience function to get the global handle radius. | |
| KoInteractionStrategy (KoInteractionStrategyPrivate &) | |
| constructor | |
Private Attributes | |
| KoCanvasController * | m_controller |
| bool | m_forceZoomOut |
Additional Inherited Members | |
Protected Types inherited from KoShapeRubberSelectStrategy | |
| enum | SelectionMode { CrossingSelection , CoveringSelection } |
Protected Attributes inherited from KoInteractionStrategy | |
| KoInteractionStrategyPrivate * | d_ptr |
//internal This is a strategy for the KoZoomTool which will be used to do the actual zooming
Definition at line 19 of file KoZoomStrategy.h.
| KoZoomStrategy::KoZoomStrategy | ( | KoZoomTool * | tool, |
| KoCanvasController * | controller, | ||
| const QPointF & | clicked ) |
constructor
| tool | the parent tool this strategy is for |
| controller | the canvas controller that wraps the canvas the tool is acting on. |
| clicked | the location (in document points) where the interaction starts. |
Definition at line 20 of file KoZoomStrategy.cpp.
|
overridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 56 of file KoZoomStrategy.cpp.
|
overrideprotectedvirtual |
Reimplemented from KoShapeRubberSelectStrategy.
Definition at line 62 of file KoZoomStrategy.cpp.
References KoShapeRubberSelectStrategy::CoveringSelection.
|
overridevirtual |
Execute the zoom.
Implements KoInteractionStrategy.
Definition at line 27 of file KoZoomStrategy.cpp.
References KoCanvasController::canvas(), KoViewConverter::documentToView(), m_controller, m_forceZoomOut, KoViewConverter::makeWidgetStillPoint(), KoCanvasBase::viewConverter(), KoViewConverter::viewToWidget(), KoCanvasController::zoomIn(), KoCanvasController::zoomOut(), and KoCanvasController::zoomTo().
| void KoZoomStrategy::forceZoomIn | ( | ) |
Definition at line 72 of file KoZoomStrategy.cpp.
References m_forceZoomOut.
| void KoZoomStrategy::forceZoomOut | ( | ) |
Definition at line 67 of file KoZoomStrategy.cpp.
References m_forceZoomOut.
|
private |
Definition at line 40 of file KoZoomStrategy.h.
|
private |
Definition at line 42 of file KoZoomStrategy.h.