Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomStrategy.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOZOOMSTRATEGY_H
8#define KOZOOMSTRATEGY_H
9
11
13class KoZoomTool;
14
20{
21public:
28 KoZoomStrategy(KoZoomTool *tool, KoCanvasController *controller, const QPointF &clicked);
29
30 bool isZoomOutMode() const;
31
32 void forceZoomOut();
33 void forceZoomIn();
34
36 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
37 void cancelInteraction() override;
38
39protected:
40 SelectionMode currentMode() const override;
41private:
43
45 Q_DECLARE_PRIVATE(KoShapeRubberSelectStrategy)
46};
47
48#endif
49
KoZoomStrategy(KoZoomTool *tool, KoCanvasController *controller, const QPointF &clicked)
SelectionMode currentMode() const override
bool isZoomOutMode() const
void finishInteraction(Qt::KeyboardModifiers modifiers) override
Execute the zoom.
void cancelInteraction() override
KoCanvasController * m_controller