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
18class QRectF;
19class KoShape;
23class KUndo2Command;
24
30class KRITAFLAKE_EXPORT KoShapeControllerBase
31{
32public:
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
72private:
74};
75
76#endif
KoshapeControllerBasePrivate *const d
virtual qreal pixelsPerInch() const =0
virtual QRectF documentRectInPixels() const =0