Krita Source Code Documentation
Loading...
Searching...
No Matches
EnhancedPathShapeFactory.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOENHANCEDPATHSHAPEFACTORY_H
8#define KOENHANCEDPATHSHAPEFACTORY_H
9
10#include <KoShapeFactoryBase.h>
11
12class KoShape;
13
16{
17public:
21 KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const override;
22 KoShape *createDefaultShape(KoDocumentResourceManager *documentResources = 0) const override;
23 bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override;
24private:
25 void addCross();
26 void addArrow();
27 void addCallout();
28 void addSmiley();
29 void addCircularArrow();
30 void addGearhead();
31
32 typedef QMap<QString, QVariant > ComplexType;
34 KoProperties *dataToProperties(const QString &modifiers, const QStringList &commands,
35 const ListType &handles, const ComplexType &formulae) const;
36
37};
38
39#endif // KOENHANCEDPATHSHAPEFACTORY_H
KoShape * createDefaultShape(KoDocumentResourceManager *documentResources=0) const override
bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override
KoShape * createShape(const KoProperties *params, KoDocumentResourceManager *documentResources=0) const override
QMap< QString, QVariant > ComplexType
KoProperties * dataToProperties(const QString &modifiers, const QStringList &commands, const ListType &handles, const ComplexType &formulae) const