Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeRegistry.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt (boud@valdyas.org)
3 * SPDX-FileCopyrightText: 2006, 2010 Thomas Zander <zander@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef KOSHAPEREGISTRY_H
9#define KOSHAPEREGISTRY_H
10
11#include <KoGenericRegistry.h>
12#include <KoShapeFactoryBase.h>
13#include <QDomDocument>
14
15#include "kritaflake_export.h"
16
17class KoShape;
19
20
26class KRITAFLAKE_EXPORT KoShapeRegistry : public KoGenericRegistry<KoShapeFactoryBase*>
27{
28public:
30 ~KoShapeRegistry() override;
31
36 static KoShapeRegistry *instance();
37
44 void addFactory(KoShapeFactoryBase *factory);
45
52 QList<KoShapeFactoryBase*> factoriesForElement(const QString &nameSpace, const QString &elementName);
53
54private:
57
58 class Private;
59 Private * const d;
60};
61
62#endif
PythonPluginManager * instance
KoShapeRegistry operator=(const KoShapeRegistry &)
KoShapeRegistry(const KoShapeRegistry &)
Private *const d
addFactory(MyPaintPressureId, 0, 20, "", "", "")