diff options
Diffstat (limited to 'kjsembed/plugins/imagefx_plugin.h')
-rw-r--r-- | kjsembed/plugins/imagefx_plugin.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kjsembed/plugins/imagefx_plugin.h b/kjsembed/plugins/imagefx_plugin.h index 7acfed44..b4f4c6a6 100644 --- a/kjsembed/plugins/imagefx_plugin.h +++ b/kjsembed/plugins/imagefx_plugin.h @@ -26,7 +26,7 @@ #include <kjsembed/jsproxy_imp.h> #include <kimageeffect.h> -#include <qimage.h> +#include <tqimage.h> namespace KJSEmbed { namespace Bindings { @@ -34,7 +34,7 @@ namespace Bindings { class ImageFXLoader : public JSBindingPlugin { public: - ImageFXLoader( QObject *parent, const char *name, const QStringList &args ); + ImageFXLoader( TQObject *parent, const char *name, const TQStringList &args ); KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const; }; enum BumpmapType { @@ -76,23 +76,23 @@ class ImageFX : JSProxyImp private: // Image effects - void gradient(const QSize &size, const QColor &ca, const QColor &cb, KImageEffect::GradientType type, int ncols); - void unbalancedGradient(const QSize &size, const QColor &ca,const QColor &cb, KImageEffect::GradientType type, int xfactor,int yfactor, int ncols); - void blendColor(const QColor& clr, float opacity); - void blendImage(QImage& blendImage, float opacity); - QRect computeDestinationRect(const QSize &lowerSize,KImageEffect::Disposition disposition); + void gradient(const TQSize &size, const TQColor &ca, const TQColor &cb, KImageEffect::GradientType type, int ncols); + void unbalancedGradient(const TQSize &size, const TQColor &ca,const TQColor &cb, KImageEffect::GradientType type, int xfactor,int yfactor, int ncols); + void blendColor(const TQColor& clr, float opacity); + void blendImage(TQImage& blendImage, float opacity); + TQRect computeDestinationRect(const TQSize &lowerSize,KImageEffect::Disposition disposition); void channelIntensity(float percent,KImageEffect::RGBComponent channel); - void fade(float val, const QColor &color); - void flatten(const QColor &ca,const QColor &cb, int ncols); + void fade(float val, const TQColor &color); + void flatten(const TQColor &ca,const TQColor &cb, int ncols); void hash(KImageEffect::Lighting lite,uint spacing); void intensity(float percent); - void modulate(QImage &modImage, bool reverse,KImageEffect::ModulationType type, int factor, KImageEffect::RGBComponent channel); + void modulate(TQImage &modImage, bool reverse,KImageEffect::ModulationType type, int factor, KImageEffect::RGBComponent channel); void toGray(bool fast); void desaturate(float desat); void contrast(int c); - void dither(const QColor *palette, int size); - void selectedImage( const QColor &col ); + void dither(const TQColor *palette, int size); + void selectedImage( const TQColor &col ); void contrastHSV( bool sharpen); void normalize(); void equalize(); @@ -118,7 +118,7 @@ class ImageFX : JSProxyImp void swirl(double degrees, uint background); void wave(double amplitude, double frequency,uint background); - QImage bumpmap(QImage &img, QImage &map, double azimuth=135.0, double elevation=45.0, int depth=3, int xofs=0, int yofs=0, int waterlevel=0, int ambient=0, bool compensate=false, bool invert=false, BumpmapType type=Linear, bool tiled=false); + TQImage bumpmap(TQImage &img, TQImage &map, double azimuth=135.0, double elevation=45.0, int depth=3, int xofs=0, int yofs=0, int waterlevel=0, int ambient=0, bool compensate=false, bool invert=false, BumpmapType type=Linear, bool tiled=false); int mid; }; |