9#ifndef KOSHAPEFACTORYBASE_H
10#define KOSHAPEFACTORYBASE_H
15#include <QDomDocument>
17#include "kritaflake_export.h"
27#define SHAPETEMPLATE_MIMETYPE "application/x-flake-shapetemplate"
28#define SHAPEID_MIMETYPE "application/x-flake-shapeId"
84 KoShapeFactoryBase(
const QString &
id,
const QString &name,
const QString &deferredPluginName = QString());
113 QString toolTip()
const;
211 void setToolTip(
const QString &tooltip);
217 void setIconName(
const char *iconName);
224 void setFamily(
const QString &family);
231 void setLoadingPriority(
int priority);
244 void setXmlElementNames(
const QString &nameSpace,
const QStringList &elementNames);
255 void setXmlElements(
const QList<QPair<QString, QStringList> > &elementNamesList);
263 void setHidden(
bool hidden);
267 void getDeferredPlugin();
272 void pruneDocumentResourceManager(QObject *);
int loadingPriority() const
lower prio means the shape is more generic and will be checked later
virtual bool supports(const QDomElement &element, KoShapeLoadingContext &context) const =0
QList< KoShapeTemplate > templates() const
virtual QList< KoShapeConfigWidgetBase * > createShapeOptionPanels()
QString iconName
Icon name.
QString family
The family of the shape (possible values are: "funny","arrow")
QString id
The id of the shape.
QString toolTip
The tooltip text for the template.
QString name
The name to be shown for this template.
const KoProperties * properties
QString templateId
The id of this particular template - only has to be unique with the shape.