7#ifndef ColorModelPerLayerCHECK_H
8#define ColorModelPerLayerCHECK_H
12#include <klocalizedstring.h>
112 Q_ASSERT(!colorModelID.
name().isEmpty());
113 Q_ASSERT(!colorDepthID.
name().isEmpty());
115 if (customWarning.isEmpty()) {
116 m_warning = i18nc(
"image conversion warning",
"Your image contains layers with the color model <b>%1</b> and channel depth <b>%2</b> which cannot be saved to this format. The layers will be converted."
126 return (
v.count() > 0);
155 QString
id()
const override {
~ColorModelPerLayerCheckFactory() override
const KoID m_colorDepthID
QString id() const override
KisExportCheckBase * create(KisExportCheckBase::Level level, const QString &customWarning) override
const KoID m_colorModelID
ColorModelPerLayerCheckFactory(const KoID &ColorModelID, const KoID &colorDepthId)
Level check(KisImageSP) const override
const KoID m_colorDepthID
const KoID m_ColorModelID
ColorModelPerLayerCheck(const KoID &colorModelID, const KoID &colorDepthID, const QString &id, Level level, const QString &customWarning=QString())
bool checkNeeded(KisImageSP image) const override
bool visit(KisCloneLayer *layer) override
bool visit(KisGroupLayer *layer) override
bool visit(KisFilterMask *) override
bool check(KisNode *node)
bool visit(KisExternalLayer *layer) override
bool visit(KisNode *node) override
KisColorModelCheckVisitor(KoID colorModelID, KoID colorDepthID)
bool visit(KisColorizeMask *) override
bool visit(KisGeneratorLayer *layer) override
bool visit(KisTransformMask *) override
bool visit(KisAdjustmentLayer *layer) override
bool visit(KisSelectionMask *) override
const KoID m_colorModelID
bool visit(KisPaintLayer *layer) override
bool visit(KisTransparencyMask *) override
const KoID m_colorDepthID
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)
virtual KoID colorModelId() const =0
virtual KoID colorDepthId() const =0
bool accept(KisNodeVisitor &v) override
const KoColorSpace * colorSpace() const override
returns the image's colorSpace or null, if there is no image