Commit c3a9f5c2 authored by Boudewijn Rempt's avatar Boudewijn Rempt

remove unused supportPreview flag

svn path=/trunk/koffice/; revision=1193586
parent 9c8615ab
......@@ -48,7 +48,6 @@ struct KisBaseProcessor::Private {
Private()
: bookmarkManager(0)
, supportsPainting(false)
, supportsPreview(true)
, supportsAdjustmentLayers(false)
, supportsIncrementalPainting(true)
, supportsThreading(true)
......@@ -61,7 +60,6 @@ struct KisBaseProcessor::Private {
KoID category; // The category in the filter menu this filter fits
QString entry; // the i18n'ed accelerated menu text
bool supportsPainting;
bool supportsPreview;
bool supportsAdjustmentLayers;
bool supportsIncrementalPainting;
bool supportsThreading;
......@@ -144,11 +142,6 @@ bool KisBaseProcessor::supportsPainting() const
return d->supportsPainting;
}
bool KisBaseProcessor::supportsPreview() const
{
return d->supportsPreview;
}
bool KisBaseProcessor::supportsAdjustmentLayers() const
{
return d->supportsAdjustmentLayers;
......@@ -173,18 +166,17 @@ void KisBaseProcessor::setSupportsPainting(bool v)
{
d->supportsPainting = v;
}
void KisBaseProcessor::setSupportsPreview(bool v)
{
d->supportsPreview = v;
}
void KisBaseProcessor::setSupportsAdjustmentLayers(bool v)
{
d->supportsAdjustmentLayers = v;
}
void KisBaseProcessor::setSupportsIncrementalPainting(bool v)
{
d->supportsIncrementalPainting = v;
}
void KisBaseProcessor::setSupportsThreading(bool v)
{
d->supportsThreading = v;
......
......@@ -111,9 +111,6 @@ public:
*/
bool supportsPainting() const;
/// This filter can be displayed in a preview dialog
bool supportsPreview() const;
/// This filter can be used in adjustment layers
bool supportsAdjustmentLayers() const;
......@@ -144,7 +141,6 @@ public:
protected:
void setSupportsPainting(bool v);
void setSupportsPreview(bool v);
void setSupportsAdjustmentLayers(bool v);
void setSupportsIncrementalPainting(bool v);
void setSupportsThreading(bool v);
......
......@@ -37,7 +37,6 @@ KisScriptFilter::KisScriptFilter(Kross::Action* action) : KisFilter(KoID(action-
{
d->action->addObject(this, "KritaFilter", Kross::ChildrenInterface::AutoConnectSignals);
setSupportsPainting(d->action->property("supportsPainting").toBool());
setSupportsPreview(d->action->property("supportsPreview").toBool());
setSupportsIncrementalPainting(d->action->property("supportsIncrementalPainting").toBool());
setSupportsAdjustmentLayers(d->action->property("supportsAdjustmentLayers").toBool());
setSupportsThreading(false);
......
......@@ -41,7 +41,6 @@ ShivaFilter::ShivaFilter(OpenShiva::Source* kernel) : KisFilter(KoID(kernel->nam
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -48,7 +48,6 @@ ShivaGenerator::ShivaGenerator(OpenShiva::Source* kernel) : KisGenerator(KoID(ke
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -39,7 +39,6 @@
KisBlurFilter::KisBlurFilter() : KisFilter(id(), categoryBlur(), i18n("&Blur..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
setSupportsAdjustmentLayers(true);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -44,7 +44,6 @@
KisGaussianBlurFilter::KisGaussianBlurFilter() : KisFilter(id(), categoryBlur(), i18n("&Gaussian Blur..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
setSupportsAdjustmentLayers(true);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -46,7 +46,6 @@
KisLensBlurFilter::KisLensBlurFilter() : KisFilter(id(), categoryBlur(), i18n("&Lens Blur..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
setSupportsAdjustmentLayers(true);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -46,7 +46,6 @@
KisMotionBlurFilter::KisMotionBlurFilter() : KisFilter(id(), categoryBlur(), i18n("&Motion Blur..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
setSupportsAdjustmentLayers(true);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -91,10 +91,7 @@ KisFilterBumpmap::KisFilterBumpmap()
{
setColorSpaceIndependence(TO_LAB16);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
}
namespace
......
......@@ -39,7 +39,6 @@
KisFilterColorToAlpha::KisFilterColorToAlpha() : KisFilter(id(), categoryColors(), i18n("&Color to Alpha..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsAdjustmentLayers(false);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -69,7 +69,6 @@ void minimize(const quint8* s, quint8* d, uint nbpixels)
KisFilterMax::KisFilterMax() : KisFilter(id(), categoryColors(), i18n("M&aximize Channel"))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(FULLY_INDEPENDENT);
}
......@@ -123,7 +122,6 @@ void KisFilterMax::process(KisConstProcessingInformation srcInfo,
KisFilterMin::KisFilterMin() : KisFilter(id(), categoryColors(), i18n("M&inimize Channel"))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(FULLY_INDEPENDENT);
}
......
......@@ -89,7 +89,6 @@ ColorsFilters::~ColorsFilters()
KisAutoContrast::KisAutoContrast() : KisFilter(id(), categoryAdjust(), i18n("&Auto Contrast"))
{
setSupportsPreview(true);
setSupportsPainting(false);
setSupportsThreading(false);
setColorSpaceIndependence(TO_LAB16);
......@@ -249,7 +248,6 @@ KisDesaturateFilter::KisDesaturateFilter()
KisDesaturateFilter::~KisDesaturateFilter()
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(TO_LAB16);
}
......
......@@ -146,7 +146,6 @@ KisBrightnessContrastFilter::KisBrightnessContrastFilter()
: KisColorTransformationFilter(id(), categoryAdjust(), i18n("&Brightness/Contrast curve..."))
{
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(TO_LAB16);
}
......
......@@ -31,7 +31,6 @@ KisHSVAdjustmentFilter::KisHSVAdjustmentFilter()
: KisColorTransformationFilter(id(), categoryAdjust(), i18n("&HSV Adjustment..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -381,7 +381,6 @@ void KisPerChannelFilterConfiguration::toXML(QDomDocument& doc, QDomElement& roo
KisPerChannelFilter::KisPerChannelFilter() : KisColorTransformationFilter(id(), categoryAdjust(), i18n("&Color Adjustment curves..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(TO_LAB16);
}
......
......@@ -69,7 +69,6 @@
KisCubismFilter::KisCubismFilter() : KisFilter(id(), KisFilter::categoryArtistic(), i18n("&Cubism..."))
{
setSupportsPainting(false);
setSupportsPreview(true);
// setSupportsThreading(false);
setColorSpaceIndependence(FULLY_INDEPENDENT);
}
......
......@@ -25,7 +25,6 @@ KisFilterDodgeBurn::KisFilterDodgeBurn(const QString& id, const QString& prefix,
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -58,7 +58,6 @@
KisEmbossFilter::KisEmbossFilter() : KisFilter(id(), categoryEmboss(), i18n("&Emboss with Variable Depth..."))
{
setSupportsPainting(false);
setSupportsPreview(true);
setColorSpaceIndependence(TO_RGBA8);
}
......
......@@ -59,7 +59,6 @@ KisFilterInvert::KisFilterInvert() : KisColorTransformationFilter(id(), category
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -62,7 +62,6 @@ KisFilterFastColorTransfer::KisFilterFastColorTransfer() : KisFilter(id(), categ
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsAdjustmentLayers(false);
}
......
......@@ -40,7 +40,6 @@ KisSimpleNoiseReducer::KisSimpleNoiseReducer()
: KisFilter(id(), categoryEnhance(), i18n("&Gaussian Noise Reduction"))
{
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -38,7 +38,6 @@ KisWaveletNoiseReduction::KisWaveletNoiseReduction()
: KisFilter(id(), categoryEnhance(), i18n("&Wavelet Noise Reducer"))
{
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsThreading(false);
}
......
......@@ -49,7 +49,6 @@ KisLevelFilter::KisLevelFilter()
: KisColorTransformationFilter(id(), categoryAdjust(), i18n("&Levels"))
{
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setColorSpaceIndependence(TO_LAB16);
}
......
......@@ -70,7 +70,6 @@ KisFilterNoise::KisFilterNoise() : KisFilter(id(), categoryOther(), i18n("&Rando
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -58,8 +58,6 @@
KisOilPaintFilter::KisOilPaintFilter() : KisFilter(id(), KisFilter::categoryArtistic(), i18n("&Oilpaint..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
}
void KisOilPaintFilter::process(KisConstProcessingInformation srcInfo,
......
......@@ -345,7 +345,6 @@ KisFilterPhongBumpmap::KisFilterPhongBumpmap()
{
setColorSpaceIndependence(TO_LAB16);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(true);
}
......
......@@ -60,7 +60,6 @@
KisPixelizeFilter::KisPixelizeFilter() : KisFilter(id(), KisFilter::categoryArtistic(), i18n("&Pixelize..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
}
void KisPixelizeFilter::process(KisConstProcessingInformation srcInfo,
......
......@@ -61,7 +61,6 @@ KisRainDropsFilter::KisRainDropsFilter() : KisFilter(id(), KisFilter::categoryAr
{
setSupportsPainting(false);
setSupportsThreading(false);
setSupportsPreview(true);
}
// This method have been ported from Pieter Z. Voloshyn algorithm code.
......
......@@ -70,7 +70,6 @@ KisFilterRandomPick::KisFilterRandomPick() : KisFilter(id(), categoryOther(), i1
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -52,7 +52,6 @@
KisRoundCornersFilter::KisRoundCornersFilter() : KisFilter(id(), KisFilter::categoryMap(), i18n("&Round Corners..."))
{
setSupportsPainting(false);
setSupportsPreview(true);
}
......
......@@ -58,7 +58,6 @@
KisSmallTilesFilter::KisSmallTilesFilter() : KisFilter(id(), KisFilter::categoryMap(), i18n("&Small Tiles..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsThreading(false);
}
......
......@@ -78,7 +78,6 @@
KisSobelFilter::KisSobelFilter() : KisFilter(id(), categoryEdgeDetection(), i18n("&Sobel..."))
{
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsThreading(false); // TODO Sobel doesn't support threading on image with height > 512
}
......
......@@ -42,7 +42,6 @@
KisUnsharpFilter::KisUnsharpFilter() : KisFilter(id(), categoryEnhance(), i18n("&Unsharp Mask..."))
{
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsAdjustmentLayers(false);
setColorSpaceIndependence(FULLY_INDEPENDENT);
......
......@@ -106,7 +106,6 @@ KisFilterWave::KisFilterWave() : KisFilter(id(), categoryOther(), i18n("&Wave...
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(false);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
setSupportsAdjustmentLayers(false);
......
......@@ -67,7 +67,6 @@ KisColorGenerator::KisColorGenerator() : KisGenerator(id(), KoID("basic"), i18n(
{
setColorSpaceIndependence(FULLY_INDEPENDENT);
setSupportsPainting(true);
setSupportsPreview(true);
setSupportsIncrementalPainting(false);
}
......
......@@ -20,9 +20,6 @@ public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
virtual ColorSpaceIndependence colorSpaceIndependence() const { return FULLY_INDEPENDENT; }
static inline KoID id() { return KoID("%{APPNAMELC}", i18n("%{APPNAME}")); }
virtual bool supportsPainting() const { return true; }
virtual bool supportsPreview() const { return true; }
virtual bool supportsIncrementalPainting() const { return false; }
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment