Commit 51605ef8 authored by Michel Hermier's avatar Michel Hermier
Browse files

-pedantic user will like this patch I think.

svn path=/trunk/koffice/; revision=602644
parent 252a9808
......@@ -29,12 +29,12 @@ class KisBlurFilter : public KisFilter
KisBlurFilter();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("blur", i18n("Blur")); };
static inline KoID id() { return KoID("blur", i18n("Blur")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual bool supportsAdjustmentLayers() { return false; }
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; };
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; }
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration* configuration(QWidget*);
......
......@@ -31,7 +31,7 @@ class KisWdgBlur : public KisFilterConfigWidget
Q_OBJECT
public:
KisWdgBlur( KisFilter* nfilter, QWidget * parent, const char * name);
inline Ui_WdgBlur* widget() { return m_widget; };
inline Ui_WdgBlur* widget() { return m_widget; }
virtual void setConfiguration(KisFilterConfiguration*);
private slots:
void linkSpacingToggled(bool);
......
......@@ -73,8 +73,8 @@ public:
KisFilterBumpmap();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; };
static inline KoID id() { return KoID("bumpmap", i18n("Bumpmap")); };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; }
static inline KoID id() { return KoID("bumpmap", i18n("Bumpmap")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return true; }
......@@ -88,7 +88,7 @@ class KisBumpmapConfigWidget : public KisFilterConfigWidget {
public:
KisBumpmapConfigWidget(KisFilter * filter, KisPaintDeviceSP dev, QWidget * parent, Qt::WFlags f = 0 );
virtual ~KisBumpmapConfigWidget() {};
virtual ~KisBumpmapConfigWidget() {}
void setConfiguration(KisFilterConfiguration * config);
KisFilterConfiguration* configuration() const;
......
......@@ -55,14 +55,14 @@ public:
KisCImgFilter();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("cimg", i18n("Image Restoration (cimg-based)")); };
static inline KoID id() { return KoID("cimg", i18n("Image Restoration (cimg-based)")); }
virtual bool supportsPainting() { return false; }
virtual bool supportsPreview() { return false; }
virtual ColorSpaceIndependence colorSpaceIndependence();
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration * configuration(QWidget*);
virtual KisFilterConfiguration * configuration() { return new KisCImgFilterConfiguration();};
virtual KisFilterConfiguration * configuration() { return new KisCImgFilterConfiguration();}
private:
bool process();
......@@ -117,8 +117,6 @@ private:
cimg_library::CImgl<> eigen;
cimg_library::CImg<unsigned char> mask;
};
#endif
......@@ -42,7 +42,7 @@ class KisCImgconfigWidget : public KisFilterConfigWidget {
public:
KisCImgconfigWidget(KisFilter* nfilter, QWidget * parent = 0, const char * name = 0, Qt::WFlags f = 0 );
virtual ~KisCImgconfigWidget() {};
virtual ~KisCImgconfigWidget() {}
public:
......
......@@ -28,12 +28,12 @@ class KisFilterColorToAlpha : public KisFilter {
KisFilterColorToAlpha();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("colortoalpha", i18n("Color to Alpha")); };
static inline KoID id() { return KoID("colortoalpha", i18n("Color to Alpha")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual bool supportsAdjustmentLayers() { return false; }
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; };
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; }
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration* configuration(QWidget*);
......
......@@ -29,11 +29,11 @@ class KisFilterMax : public KisFilter
KisFilterMax();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("maximize", i18n("Maximize Channel")); };
static inline KoID id() { return KoID("maximize", i18n("Maximize Channel")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; };
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; }
};
class KisFilterMin : public KisFilter
......@@ -42,11 +42,11 @@ class KisFilterMin : public KisFilter
KisFilterMin();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("minimize", i18n("Minimize Channel")); };
static inline KoID id() { return KoID("minimize", i18n("Minimize Channel")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; };
virtual ColorSpaceIndependence colorspaceIndependence() { return FULLY_INDEPENDENT; }
};
#endif
......@@ -31,7 +31,7 @@ class KisWdgColorToAlpha : public KisFilterConfigWidget
Q_OBJECT
public:
KisWdgColorToAlpha( KisFilter* nfilter, QWidget * parent, const char * name);
inline Ui_WdgColorToAlphaBase* widget() { return m_widget; };
inline Ui_WdgColorToAlphaBase* widget() { return m_widget; }
virtual void setConfiguration(KisFilterConfiguration*);
private:
Ui_WdgColorToAlphaBase* m_widget;
......
......@@ -38,12 +38,12 @@ public:
KisAutoContrast();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("autocontrast", i18n("Auto Contrast")); };
static inline KoID id() { return KoID("autocontrast", i18n("Auto Contrast")); }
virtual bool supportsPreview() { return true; }
virtual bool supportsPainting() { return false; }
virtual bool supportsThreading() { return false; };
virtual bool supportsThreading() { return false; }
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; }
virtual bool workWith(KoColorSpace* cs);
};
......@@ -55,12 +55,12 @@ class KisDesaturateFilter : public KisFilter {
~KisDesaturateFilter();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("desaturate", i18n("Desaturate")); };
static inline KoID id() { return KoID("desaturate", i18n("Desaturate")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; }
virtual bool workWith(KoColorSpace* cs);
private:
......
......@@ -67,15 +67,15 @@ public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration * configuration(QWidget *);
virtual KisFilterConfiguration * configuration() { return new KisBrightnessContrastFilterConfiguration(); };
virtual KisFilterConfiguration * configuration() { return new KisBrightnessContrastFilterConfiguration(); }
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("brightnesscontrast", i18n("Brightness / Contrast")); };
static inline KoID id() { return KoID("brightnesscontrast", i18n("Brightness / Contrast")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual std::list<KisFilterConfiguration*> listOfExamplesConfiguration(KisPaintDeviceSP dev);
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; }
virtual bool workWith(KoColorSpace* cs);
};
......@@ -84,7 +84,7 @@ class KisBrightnessContrastConfigWidget : public KisFilterConfigWidget {
public:
KisBrightnessContrastConfigWidget(QWidget * parent, KisPaintDeviceSP dev, const char * name = 0, Qt::WFlags f = 0 );
virtual ~KisBrightnessContrastConfigWidget() {};
virtual ~KisBrightnessContrastConfigWidget() {}
KisBrightnessContrastFilterConfiguration * config();
void setConfiguration( KisFilterConfiguration * config );
......
......@@ -68,19 +68,19 @@ class KisPerChannelFilter
: public KisFilter
{
public:
KisPerChannelFilter() : KisFilter( id(), "adjust", i18n("&Color Adjustment curves...")) {};
KisPerChannelFilter() : KisFilter( id(), "adjust", i18n("&Color Adjustment curves...")) {}
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration* configuration(QWidget*);
virtual KisFilterConfiguration* configuration() { return new KisPerChannelFilterConfiguration(0); };
virtual KisFilterConfiguration* configuration() { return new KisPerChannelFilterConfiguration(0); }
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("perchannel", i18n("Color Adjustment")); };
static inline KoID id() { return KoID("perchannel", i18n("Color Adjustment")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
virtual std::list<KisFilterConfiguration*> listOfExamplesConfiguration(KisPaintDeviceSP dev);
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_LAB16; }
private:
};
......@@ -91,7 +91,7 @@ class KisPerChannelConfigWidget : public KisFilterConfigWidget {
public:
KisPerChannelConfigWidget(QWidget * parent, KisPaintDeviceSP dev, const char * name = 0, Qt::WFlags f = 0 );
virtual ~KisPerChannelConfigWidget() {};
virtual ~KisPerChannelConfigWidget() {}
KisPerChannelFilterConfiguration * config();
void setConfiguration(KisFilterConfiguration * config);
......
......@@ -28,7 +28,7 @@ class KisGaussianBlurFilter : public KisConvolutionConstFilter {
public:
KisGaussianBlurFilter();
public:
static inline KoID id() { return KoID("gaussian blur", i18n("Gaussian Blur")); };
static inline KoID id() { return KoID("gaussian blur", i18n("Gaussian Blur")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
};
......@@ -37,7 +37,7 @@ class KisSharpenFilter : public KisConvolutionConstFilter {
public:
KisSharpenFilter();
public:
static inline KoID id() { return KoID("sharpen", i18n("Sharpen")); };
static inline KoID id() { return KoID("sharpen", i18n("Sharpen")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
};
......@@ -46,7 +46,7 @@ class KisMeanRemovalFilter : public KisConvolutionConstFilter {
public:
KisMeanRemovalFilter();
public:
static inline KoID id() { return KoID("mean removal", i18n("Mean Removal")); };
static inline KoID id() { return KoID("mean removal", i18n("Mean Removal")); }
virtual bool supportsPainting() { return false; }
};
......@@ -55,7 +55,7 @@ class KisEmbossLaplascianFilter : public KisConvolutionConstFilter {
public:
KisEmbossLaplascianFilter();
public:
static inline KoID id() { return KoID("emboss laplascian", i18n("Emboss Laplascian")); };
static inline KoID id() { return KoID("emboss laplascian", i18n("Emboss Laplascian")); }
virtual bool supportsPainting() { return false; }
};
......@@ -64,7 +64,7 @@ class KisEmbossInAllDirectionsFilter : public KisConvolutionConstFilter {
public:
KisEmbossInAllDirectionsFilter();
public:
static inline KoID id() { return KoID("emboss all directions", i18n("Emboss in All Directions")); };
static inline KoID id() { return KoID("emboss all directions", i18n("Emboss in All Directions")); }
virtual bool supportsPainting() { return false; }
};
......@@ -73,7 +73,7 @@ class KisEmbossHorizontalVerticalFilter : public KisConvolutionConstFilter {
public:
KisEmbossHorizontalVerticalFilter();
public:
static inline KoID id() { return KoID("", i18n("Emboss Horizontal & Vertical")); };
static inline KoID id() { return KoID("", i18n("Emboss Horizontal & Vertical")); }
virtual bool supportsPainting() { return false; }
};
......@@ -82,7 +82,7 @@ class KisEmbossVerticalFilter : public KisConvolutionConstFilter {
public:
KisEmbossVerticalFilter();
public:
static inline KoID id() { return KoID("emboss vertical only", i18n("Emboss Vertical Only")); };
static inline KoID id() { return KoID("emboss vertical only", i18n("Emboss Vertical Only")); }
virtual bool supportsPainting() { return false; }
};
......@@ -91,7 +91,7 @@ class KisEmbossHorizontalFilter : public KisConvolutionConstFilter {
public:
KisEmbossHorizontalFilter();
public:
static inline KoID id() { return KoID("emboss horizontal only", i18n("Emboss Horizontal Only")); };
static inline KoID id() { return KoID("emboss horizontal only", i18n("Emboss Horizontal Only")); }
virtual bool supportsPainting() { return false; }
};
......@@ -100,7 +100,7 @@ class KisEmbossDiagonalFilter : public KisConvolutionConstFilter {
public:
KisEmbossDiagonalFilter();
public:
static inline KoID id() { return KoID("emboss diagonal", i18n("Emboss Diagonal")); };
static inline KoID id() { return KoID("emboss diagonal", i18n("Emboss Diagonal")); }
virtual bool supportsPainting() { return false; }
};
......@@ -109,7 +109,7 @@ class KisTopEdgeDetectionFilter : public KisConvolutionConstFilter {
public:
KisTopEdgeDetectionFilter();
public:
static inline KoID id() { return KoID("top edge detections", i18n("Top Edge Detection")); };
static inline KoID id() { return KoID("top edge detections", i18n("Top Edge Detection")); }
virtual bool supportsPainting() { return false; }
};
......@@ -118,7 +118,7 @@ class KisRightEdgeDetectionFilter : public KisConvolutionConstFilter {
public:
KisRightEdgeDetectionFilter();
public:
static inline KoID id() { return KoID("right edge detections", i18n("Right Edge Detection")); };
static inline KoID id() { return KoID("right edge detections", i18n("Right Edge Detection")); }
virtual bool supportsPainting() { return false; }
};
......@@ -127,7 +127,7 @@ class KisBottomEdgeDetectionFilter : public KisConvolutionConstFilter {
public:
KisBottomEdgeDetectionFilter();
public:
static inline KoID id() { return KoID("bottom edge detections", i18n("Bottom Edge Detection")); };
static inline KoID id() { return KoID("bottom edge detections", i18n("Bottom Edge Detection")); }
virtual bool supportsPainting() { return false; }
};
......@@ -136,7 +136,7 @@ class KisLeftEdgeDetectionFilter : public KisConvolutionConstFilter {
public:
KisLeftEdgeDetectionFilter();
public:
static inline KoID id() { return KoID("left edge detections", i18n("Left Edge Detection")); };
static inline KoID id() { return KoID("left edge detections", i18n("Left Edge Detection")); }
virtual bool supportsPainting() { return false; }
};
......
......@@ -30,14 +30,14 @@ public:
KisConvolutionConfiguration(const QString & name, KisKernel * matrix)
: KisFilterConfiguration( name, 1 )
, m_matrix(matrix)
{};
{}
void fromXML(const QString & s);
QString toString();
public:
inline KisKernelSP matrix() { return m_matrix; };
inline KisKernelSP matrix() { return m_matrix; }
private:
......@@ -54,7 +54,7 @@ public:
KisConvolutionFilter(const KoID& id, const QString & category, const QString & entry)
: KisFilter( id, category, entry )
{};
{}
public:
......@@ -74,14 +74,14 @@ public:
KisConvolutionConstFilter(const KoID& id, const QString & category, const QString & entry)
: KisConvolutionFilter(id, category, entry)
{};
{}
virtual ~KisConvolutionConstFilter() {};
virtual ~KisConvolutionConstFilter() {}
public:
virtual KisFilterConfiguration * configuration(QWidget*);
virtual KisFilterConfiguration * configuration() { return configuration(0); };
virtual KisFilterConfiguration * configuration() { return configuration(0); }
protected:
......
......@@ -31,10 +31,10 @@ class QWidget;
class KisCustomConvolutionFilter : public KisConvolutionFilter {
public:
KisCustomConvolutionFilter() : KisConvolutionFilter(id(), "enhance", i18n("&Custom Convolution...")) {};
KisCustomConvolutionFilter() : KisConvolutionFilter(id(), "enhance", i18n("&Custom Convolution...")) {}
public:
static inline KoID id() { return KoID("custom convolution", i18n("Custom Convolution")); };
static inline KoID id() { return KoID("custom convolution", i18n("Custom Convolution")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsIncrementalPainting() { return true; }
......@@ -42,7 +42,7 @@ public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration * configuration();
protected:
virtual KisKernelSP matrix() { return m_matrix; };
virtual KisKernelSP matrix() { return m_matrix; }
private:
KisKernelSP m_matrix;
};
......
......@@ -42,7 +42,7 @@ class KisCustomConvolutionFilterConfigurationWidget : public KisFilterConfigWidg
public:
KisCustomConvolutionFilterConfigurationWidget( KisFilter* nfilter, QWidget * parent);
inline KisCustomConvolutionFilterConfigurationBaseWidget* matrixWidget() const { return m_ccfcws; };
inline KisCustomConvolutionFilterConfigurationBaseWidget* matrixWidget() const { return m_ccfcws; }
void setConfiguration(KisFilterConfiguration * config);
KisFilterConfiguration* configuration() const;
......
......@@ -37,10 +37,10 @@ public:
{
setProperty("tileSize", tileSize);
setProperty("tileSaturation", tileSaturation);
};
}
public:
inline quint32 tileSize() { return getInt("tileSize"); };
inline quint32 tileSaturation() {return getInt("tileSaturation"); };
inline quint32 tileSize() { return getInt("tileSize"); }
inline quint32 tileSaturation() {return getInt("tileSaturation"); }
private:
quint32 m_tileSize;
quint32 m_tileSaturation;
......@@ -52,17 +52,17 @@ public:
KisCubismFilter();
public:
virtual void process(KisPaintDeviceSP,KisPaintDeviceSP, KisFilterConfiguration* , const QRect&);
static inline KoID id() { return KoID("cubism", i18n("Cubism")); };
static inline KoID id() { return KoID("cubism", i18n("Cubism")); }
virtual bool supportsPainting() { return false; }
virtual bool supportsPreview() { return true; }
virtual std::list<KisFilterConfiguration*> listOfExamplesConfiguration(KisPaintDeviceSP )
{ std::list<KisFilterConfiguration*> list; list.insert(list.begin(), new KisCubismFilterConfiguration(10,10)); return list; }
virtual bool workWith(KoColorSpace* cs);
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_RGBA8; };
virtual ColorSpaceIndependence colorSpaceIndependence() { return TO_RGBA8; }
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration* configuration(QWidget*);
virtual KisFilterConfiguration* configuration() { return new KisCubismFilterConfiguration( 10, 10); };
virtual KisFilterConfiguration* configuration() { return new KisCubismFilterConfiguration( 10, 10); }
private:
//this function takes an array of ordered indices i1,i2,i3,... and randomizes them i3,i1,i2,...
void randomizeIndices (qint32 count, qint32* indices);
......
......@@ -31,9 +31,9 @@ public:
: KisFilterConfiguration( "emboss", 1 )
{
setProperty("depth", depth);
};
}
public:
inline quint32 depth() { return getInt("depth"); };
inline quint32 depth() { return getInt("depth"); }
};
class KisEmbossFilter : public KisFilter
......@@ -42,7 +42,7 @@ public:
KisEmbossFilter();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
static inline KoID id() { return KoID("emboss", i18n("Emboss")); };
static inline KoID id() { return KoID("emboss", i18n("Emboss")); }
virtual bool supportsPainting() { return false; }
virtual bool supportsPreview() { return true; }
virtual std::list<KisFilterConfiguration*> listOfExamplesConfiguration(KisPaintDeviceSP )
......@@ -50,7 +50,7 @@ public:
public:
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
virtual KisFilterConfiguration* configuration(QWidget*);
virtual KisFilterConfiguration* configuration() {return new KisEmbossFilterConfiguration( 30 );};
virtual KisFilterConfiguration* configuration() {return new KisEmbossFilterConfiguration( 30 );}
private:
inline int Lim_Max (int Now, int Up, int Max);
......
......@@ -37,8 +37,8 @@ public:
KisFilterInvert();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
virtual ColorSpaceIndependence colorSpaceIndependence() { return FULLY_INDEPENDENT; };
static inline KoID id() { return KoID("invert", i18n("Invert")); };
virtual ColorSpaceIndependence colorSpaceIndependence() { return FULLY_INDEPENDENT; }
static inline KoID id() { return KoID("invert", i18n("Invert")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
......
......@@ -37,8 +37,8 @@ class KisFilterFastColorTransfer : public KisFilter
KisFilterFastColorTransfer();
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
virtual ColorSpaceIndependence colorSpaceIndependence() { return FULLY_INDEPENDENT; };
static inline KoID id() { return KoID("colortransfer", i18n("Color Transfer")); };
virtual ColorSpaceIndependence colorSpaceIndependence() { return FULLY_INDEPENDENT; }
static inline KoID id() { return KoID("colortransfer", i18n("Color Transfer")); }
virtual bool supportsPainting() { return true; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
......
......@@ -34,8 +34,8 @@ class KisSimpleNoiseReducerConfiguration
setProperty("threshold", nt);
setProperty("windowsize", ws);
}
int threshold() { return getInt("threshold"); };
int windowsize() { return getInt("windowsize"); };
int threshold() { return getInt("threshold"); }
int windowsize() { return getInt("windowsize"); }
};
class KisSimpleNoiseReducer : public KisFilter
......@@ -46,10 +46,10 @@ class KisSimpleNoiseReducer : public KisFilter
public:
virtual void process(const KisPaintDeviceSP src, const QPoint& srcTopLeft, KisPaintDeviceSP dst, const QPoint& dstTopLeft, const QSize& size, KisFilterConfiguration* config);
virtual KisFilterConfiguration * configuration(QWidget* nwidget);
virtual KisFilterConfiguration * configuration() { return new KisSimpleNoiseReducerConfiguration( 50, 1); };
virtual KisFilterConfiguration * configuration() { return new KisSimpleNoiseReducerConfiguration( 50, 1); }
virtual KisFilterConfigWidget * createConfigurationWidget(QWidget* parent, KisPaintDeviceSP dev);
static inline KoID id() { return KoID("gaussiannoisereducer", i18n("Gaussian Noise Reducer")); };
static inline KoID id() { return KoID("gaussiannoisereducer", i18n("Gaussian Noise Reducer")); }
virtual bool supportsPainting() { return false; }
virtual bool supportsPreview() { return true; }
virtual bool supportsIncrementalPainting() { return false; }
......
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