7#ifndef COLORMODELCHECK_H
8#define COLORMODELCHECK_H
12#include <klocalizedstring.h>
26 Q_ASSERT(!colorModelID.
name().isEmpty());
27 Q_ASSERT(!colorDepthID.
name().isEmpty());
29 if (customWarning.isEmpty()) {
30 m_warning = i18nc(
"image conversion warning",
31 "The color model <b>%1</b> or channel depth <b>%2</b> cannot be saved to this format. Your image will be converted.",
68 QString
id()
const override {
~ColorModelCheckFactory() override
const KoID m_colorModelID
ColorModelCheckFactory(const KoID &colorModelID, const KoID &colorDepthId)
KisExportCheckBase * create(KisExportCheckBase::Level level, const QString &customWarning) override
QString id() const override
const KoID m_colorDepthID
bool checkNeeded(KisImageSP image) const override
const KoID m_colorModelID
ColorModelCheck(const KoID &colorModelID, const KoID &colorDepthID, const QString &id, Level level, const QString &customWarning=QString())
Level check(KisImageSP) const 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
const KoColorSpace * colorSpace() const
virtual KoID colorModelId() const =0
virtual KoID colorDepthId() const =0