summaryrefslogtreecommitdiffstats
path: root/kjsembed/plugins/imagefx_plugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/plugins/imagefx_plugin.h
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/plugins/imagefx_plugin.h')
-rw-r--r--kjsembed/plugins/imagefx_plugin.h26
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;
};