7#ifndef CHECKIMAGESIZE_H
8#define CHECKIMAGESIZE_H
12#include <klocalizedstring.h>
14#include <kis_image_ImageSize_interface.h>
21 ImageSizeCheck(
int maxWidth,
int maxHeight,
const QString &
id,
Level level,
const QString &customWarning = QString())
26 if (customWarning.isEmpty()) {
27 m_warning = i18nc(
"image conversion warning",
"This image is larger than <b>%1 x %2</b>. Images this size cannot be saved to this format.",
m_maxW,
m_maxH);
55 return new ImageSizeCheck(maxWidth, maxHeight,
id(), level, customWarning);
59 return "ImageSizeCheck";
KisExportCheckBase * create(int maxWidth, int maxHeight, KisExportCheckBase::Level level, const QString &customWarning)
virtual ~ImageSizeCheckFactory()
bool checkNeeded(KisImageSP image) const
Level check(KisImageSP) const
ImageSizeCheck(int maxWidth, int maxHeight, const QString &id, Level level, const QString &customWarning=QString())
The KisExportCheckBase class defines the interface of the individual checks of an export filter's cap...
virtual QString id() const