Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeController.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
*
3
* SPDX-FileCopyrightText: 2006-2007, 2010 Thomas Zander <zander@kde.org>
4
* SPDX-FileCopyrightText: 2006-2008 Thorsten Zachmann <zachmann@kde.org>
5
*
6
* SPDX-License-Identifier: LGPL-2.0-or-later
7
*/
8
9
#ifndef KOSHAPECONTROLLER_H
10
#define KOSHAPECONTROLLER_H
11
12
#include "kritaflake_export.h"
13
14
#include <QObject>
15
#include <QList>
16
#include <QMetaType>
17
18
class
KoCanvasBase
;
19
class
KoShape
;
20
class
KoShapeContainer
;
21
class
KoShapeControllerBase
;
22
class
KUndo2Command
;
23
class
KoDocumentResourceManager
;
24
34
class
KRITAFLAKE_EXPORT
KoShapeController
:
public
QObject
35
{
36
Q_OBJECT
37
38
public
:
45
KoShapeController
(
KoCanvasBase
*canvas,
KoShapeControllerBase
*shapeController);
47
~KoShapeController
()
override
;
48
52
void
reset();
53
65
KUndo2Command
* addShape(
KoShape
*shape,
KoShapeContainer
*parentShape,
KUndo2Command
*parent = 0);
66
76
KUndo2Command
* addShapeDirect(
KoShape
*shape,
KoShapeContainer
*parentShape,
KUndo2Command
*parent = 0);
77
87
KUndo2Command
* addShapesDirect(
const
QList<KoShape*>
shape,
KoShapeContainer
*parentShape,
KUndo2Command
*parent = 0);
88
98
KUndo2Command
* removeShape(
KoShape
*shape,
KUndo2Command
*parent = 0);
99
109
KUndo2Command
* removeShapes(
const
QList<KoShape*>
&shapes,
KUndo2Command
*parent = 0);
110
120
void
setShapeControllerBase(
KoShapeControllerBase
*shapeController);
121
126
QRectF documentRectInPixels()
const
;
127
131
qreal pixelsPerInch()
const
;
132
136
QRectF documentRect()
const
;
137
144
KoDocumentResourceManager
*resourceManager()
const
;
145
151
KoShapeControllerBase
*documentBase()
const
;
152
153
private
:
154
class
Private
;
155
Private
*
const
d
;
156
};
157
158
Q_DECLARE_METATYPE
(
KoShapeController
*)
159
160
#endif
KUndo2Command
Definition
kundo2stack.h:87
KoCanvasBase
Definition
KoCanvasBase.cpp:24
KoDocumentResourceManager
Definition
KoDocumentResourceManager.cpp:20
KoShapeContainer
Definition
KoShapeContainer.h:56
KoShapeControllerBase
Definition
KoShapeControllerBase.h:31
KoShapeController
Definition
KoShapeController.h:35
KoShapeController::d
Private *const d
Definition
KoShapeController.h:155
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(KisPaintopLodLimitations)
Private
Definition
SvgTransformParser.cpp:20
libs
flake
KoShapeController.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52