Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_shape_selection_canvas.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2007 Sven Langkamp <sven.langkamp@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
9
10
11#include <QPainter>
12
13#include <KoShapeManager.h>
15#include <KoUnit.h>
17
19 : KoCanvasBase(shapeController)
20 , m_shapeManager(new KoShapeManager(this))
21 , m_selectedShapesProxy(new KoSelectedShapesProxySimple(m_shapeManager.data()))
22{
23}
24
28
29void KisShapeSelectionCanvas::gridSize(QPointF *offset, QSizeF *spacing) const
30{
31 Q_ASSERT(false); // This should never be called as this canvas should have no tools.
32 Q_UNUSED(offset);
33 Q_UNUSED(spacing);
34}
35
37{
38 Q_ASSERT(false); // This should never be called as this canvas should have no tools.
39 return false;
40}
41
43{
44 Q_ASSERT(false); // This should never be called as this canvas should have no tools.
45}
46
51
56
58{
59 Q_UNUSED(rc);
60 m_shapeManager->explicitlyIssueShapeChangedSignals();
61}
62
64{
65 // Q_ASSERT(false); // This should never be called as this canvas should have no tools.
66 return 0;
67}
68
70{
71 return 0;
72}
73
78
80{
81 return 0;
82}
83
85{
86 return 0;
87}
88
90{
91 Q_ASSERT(false); // This should never be called as this canvas should have no tools.
92 return KoUnit(KoUnit::Point);
93}
94
void gridSize(QPointF *offset, QSizeF *spacing) const override
KisShapeSelectionCanvas(KoShapeControllerBase *shapeController)
KoShapeManager * shapeManager() const override
const KoViewConverter * viewConverter() const override
void updateCanvas(const QRectF &rc) override
KoToolProxy * toolProxy() const override
QScopedPointer< KoSelectedShapesProxy > m_selectedShapesProxy
void addCommand(KUndo2Command *command) override
KoSelectedShapesProxy * selectedShapesProxy() const override
selectedShapesProxy() is a special interface for keeping a persistent connections to selectionChanged...
QScopedPointer< KoShapeManager > m_shapeManager
The KoSelectedShapesProxy class is a special interface of KoCanvasBase to have a stable connection to...
@ Point
Postscript point, 1/72th of an Inco.
Definition KoUnit.h:76