Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeControllerBase.h
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
3
SPDX-FileCopyrightText: 2006 Jan Hambrecht <jaham@gmx.net>
4
SPDX-FileCopyrightText: 2006, 2010 Thomas Zander <zander@kde.org>
5
SPDX-FileCopyrightText: 2008 C. Boemann <cbo@boemann.dk>
6
7
SPDX-License-Identifier: LGPL-2.0-or-later
8
*/
9
10
#ifndef KOshapeControllerBASE_H
11
#define KOshapeControllerBASE_H
12
13
#include "kritaflake_export.h"
14
15
#include <QDomDocument>
16
#include <QList>
17
18
class
QRectF;
19
class
KoCanvasBase
;
20
class
KoShape
;
21
class
KoShapeContainer
;
22
class
KoshapeControllerBasePrivate
;
23
class
KoDocumentResourceManager
;
24
class
KUndo2Command
;
25
31
class
KRITAFLAKE_EXPORT
KoShapeControllerBase
32
{
33
public
:
34
KoShapeControllerBase
();
35
virtual
~KoShapeControllerBase
();
36
47
virtual
KoShapeContainer
* createParentForShapes(
const
QList<KoShape*>
shapes,
bool
forceNewLayer,
KoCanvasBase
*canvas,
KUndo2Command
*parentCommand);
48
55
virtual
KoDocumentResourceManager
*resourceManager()
const
;
56
61
virtual
QRectF
documentRectInPixels
()
const
= 0;
62
66
QRectF documentRect()
const
;
67
71
virtual
qreal
pixelsPerInch
()
const
= 0;
72
73
private
:
74
KoshapeControllerBasePrivate
*
const
d
;
75
};
76
77
#endif
KUndo2Command
Definition
kundo2stack.h:87
KoCanvasBase
Definition
KoCanvasBase.cpp:25
KoDocumentResourceManager
Definition
KoDocumentResourceManager.cpp:20
KoShapeContainer
Definition
KoShapeContainer.h:56
KoShapeControllerBase
Definition
KoShapeControllerBase.h:32
KoShapeControllerBase::d
KoshapeControllerBasePrivate *const d
Definition
KoShapeControllerBase.h:74
KoShapeControllerBase::pixelsPerInch
virtual qreal pixelsPerInch() const =0
KoShapeControllerBase::documentRectInPixels
virtual QRectF documentRectInPixels() const =0
KoShape
Definition
KoShape.h:89
KoshapeControllerBasePrivate
Definition
KoShapeControllerBase.cpp:23
QList
Definition
KisQStringListFwd.h:16
libs
flake
KoShapeControllerBase.h
Generated at
2026-12-01 02:30:03+01:00
from
Krita
branch
master
, commit
b26c9f3874ea47e043fb7787ab8ff9a3254784df