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
KoShape
;
20
class
KoShapeContainer
;
21
class
KoshapeControllerBasePrivate
;
22
class
KoDocumentResourceManager
;
23
class
KUndo2Command
;
24
30
class
KRITAFLAKE_EXPORT
KoShapeControllerBase
31
{
32
public
:
33
KoShapeControllerBase
();
34
virtual
~KoShapeControllerBase
();
35
46
virtual
KoShapeContainer
* createParentForShapes(
const
QList<KoShape*>
shapes,
bool
forceNewLayer,
KUndo2Command
*parentCommand);
47
54
virtual
KoDocumentResourceManager
*resourceManager()
const
;
55
60
virtual
QRectF
documentRectInPixels
()
const
= 0;
61
65
QRectF documentRect()
const
;
66
70
virtual
qreal
pixelsPerInch
()
const
= 0;
71
72
private
:
73
KoshapeControllerBasePrivate
*
const
d
;
74
};
75
76
#endif
KUndo2Command
Definition
kundo2stack.h:87
KoDocumentResourceManager
Definition
KoDocumentResourceManager.cpp:20
KoShapeContainer
Definition
KoShapeContainer.h:56
KoShapeControllerBase
Definition
KoShapeControllerBase.h:31
KoShapeControllerBase::d
KoshapeControllerBasePrivate *const d
Definition
KoShapeControllerBase.h:73
KoShapeControllerBase::pixelsPerInch
virtual qreal pixelsPerInch() const =0
KoShapeControllerBase::documentRectInPixels
virtual QRectF documentRectInPixels() const =0
KoShape
Definition
KoShape.h:92
KoshapeControllerBasePrivate
Definition
KoShapeControllerBase.cpp:23
QList
Definition
KisQStringListFwd.h:16
libs
flake
KoShapeControllerBase.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52