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 KoCanvasBase;
20class KoShape;
24class KUndo2Command;
25
31class KRITAFLAKE_EXPORT KoShapeControllerBase
32{
33public:
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
73private:
75};
76
77#endif
KoshapeControllerBasePrivate *const d
virtual qreal pixelsPerInch() const =0
virtual QRectF documentRectInPixels() const =0