7#ifndef SHAPELAYERTYPECHECK_H
8#define SHAPELAYERTYPECHECK_H
13#include <klocalizedstring.h>
53 check(shapeLayer->shapes());
76 Q_FOREACH(
KoShape* shape, shapes) {
82 check(group->shapes());
89 }
else if (
m_shapeId == path->shapeId()) {
110 ShapeLayerTypeCheck(
const QString &ShapeId,
const QString &PathShapeId,
const QString &
id,
Level level,
const QString &customWarning = QString())
115 if (customWarning.isEmpty()) {
118 m_warning = i18nc(
"image conversion warning",
"The image contains a Vector Layer with Shapes of type <b>%1</b>, which is not supported, these will not be saved.", name);
120 m_warning = i18nc(
"image conversion warning",
"The image contains a Vector Layer with Shapes of type <b>%1</b>, which is not supported, these will be saved as paths",
m_pathShapeId);
129 return (
v.count() > 0);
158 QString
id()
const override {
160 return "ShapeLayerTypeCheck/" +
m_shapeId;
The KisExportCheckBase class defines the interface of the individual checks of an export filter's cap...
virtual QString id() const
KisGroupLayerSP rootLayer() const
virtual bool visit(KisNode *node)=0
bool visitAll(KisNode *node, bool breakOnFail=false)
The position of a path point within a path shape.
~ShapeLayerTypeCheckFactory() override
QString id() const override
ShapeLayerTypeCheckFactory(const QString &ShapeId, const QString &PathShapeId="")
KisExportCheckBase * create(KisExportCheckBase::Level level, const QString &customWarning) override
const QString m_pathShapeId
bool visit(KisGeneratorLayer *) override
bool visit(KisColorizeMask *) override
bool visit(KisPaintLayer *) override
bool visit(KisExternalLayer *layer) override
bool visit(KisTransparencyMask *) override
bool visit(KisNode *) override
bool visit(KisAdjustmentLayer *) override
bool check(QList< KoShape * > shapes)
ShapeLayerTypeCheckVisitor(QString shapeId, QString pathId)
bool visit(KisGroupLayer *layer) override
bool visit(KisFilterMask *) override
bool visit(KisSelectionMask *) override
bool visit(KisTransformMask *) override
bool visit(KisCloneLayer *) override
const QString m_pathShapeId
bool checkNeeded(KisImageSP image) const override
Level check(KisImageSP) const override
ShapeLayerTypeCheck(const QString &ShapeId, const QString &PathShapeId, const QString &id, Level level, const QString &customWarning=QString())
bool accept(KisNodeVisitor &v) override