summaryrefslogtreecommitdiffstats
path: root/kjsembed/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/plugins')
-rw-r--r--kjsembed/plugins/customobject_plugin.cpp12
-rw-r--r--kjsembed/plugins/customobject_plugin.h4
-rw-r--r--kjsembed/plugins/customqobject_plugin.cpp14
-rw-r--r--kjsembed/plugins/customqobject_plugin.h16
-rw-r--r--kjsembed/plugins/imagefx_plugin.cpp180
-rw-r--r--kjsembed/plugins/imagefx_plugin.h26
-rw-r--r--kjsembed/plugins/kfileitemloader.cpp6
-rw-r--r--kjsembed/plugins/kfileitemloader.h2
-rw-r--r--kjsembed/plugins/qprocess_plugin.cpp54
-rw-r--r--kjsembed/plugins/qprocess_plugin.h26
10 files changed, 170 insertions, 170 deletions
diff --git a/kjsembed/plugins/customobject_plugin.cpp b/kjsembed/plugins/customobject_plugin.cpp
index 7c188cba..b883ff66 100644
--- a/kjsembed/plugins/customobject_plugin.cpp
+++ b/kjsembed/plugins/customobject_plugin.cpp
@@ -26,8 +26,8 @@
#include <kjsembed/jsfactory_imp.h>
#include <kjsembed/kjsembedpart.h>
#include <kjsembed/customobject_imp.h>
-#include <qvariant.h>
-#include <qbrush.h>
+#include <tqvariant.h>
+#include <tqbrush.h>
#include "customobject_plugin.h"
@@ -39,10 +39,10 @@ class MyCustomObject
public:
enum Mode { On, Off };
Mode mode;
- QString thing;
+ TQString thing;
};
-MyCustomObjectLoader::MyCustomObjectLoader( QObject *parent, const char *name, const QStringList &args ) :
+MyCustomObjectLoader::MyCustomObjectLoader( TQObject *parent, const char *name, const TQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
@@ -170,9 +170,9 @@ int MyCustomObjectImp::extractInt( KJS::ExecState *exec, const KJS::List &args,
{
return (args.size() > idx) ? args[idx].toInteger(exec) : 0;
}
-QString MyCustomObjectImp::extractString(KJS::ExecState *exec, const KJS::List &args, int idx)
+TQString MyCustomObjectImp::extractString(KJS::ExecState *exec, const KJS::List &args, int idx)
{
- return (args.size() > idx) ? args[idx].toString(exec).qstring() : QString::null;
+ return (args.size() > idx) ? args[idx].toString(exec).qstring() : TQString::null;
}
} // namespace KJSEmbed::Bindings
diff --git a/kjsembed/plugins/customobject_plugin.h b/kjsembed/plugins/customobject_plugin.h
index 2cea3415..5f417e69 100644
--- a/kjsembed/plugins/customobject_plugin.h
+++ b/kjsembed/plugins/customobject_plugin.h
@@ -31,7 +31,7 @@ namespace Bindings {
class KJSEMBED_EXPORT MyCustomObjectLoader : public JSBindingPlugin
{
public:
- MyCustomObjectLoader( QObject *parent, const char *name, const QStringList &args );
+ MyCustomObjectLoader( TQObject *parent, const char *name, const TQStringList &args );
KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
};
@@ -58,7 +58,7 @@ public:
private:
int extractInt( KJS::ExecState *exec, const KJS::List &args, int idx);
- QString extractString(KJS::ExecState *exec, const KJS::List &args, int idx);
+ TQString extractString(KJS::ExecState *exec, const KJS::List &args, int idx);
int mid;
};
diff --git a/kjsembed/plugins/customqobject_plugin.cpp b/kjsembed/plugins/customqobject_plugin.cpp
index f8c45a60..6d1fccc7 100644
--- a/kjsembed/plugins/customqobject_plugin.cpp
+++ b/kjsembed/plugins/customqobject_plugin.cpp
@@ -24,7 +24,7 @@
#include <kjsembed/jsbinding.h>
#include <kjsembed/kjsembedpart.h>
#include <kjsembed/customobject_imp.h>
-#include <qvariant.h>
+#include <tqvariant.h>
#include "customqobject_plugin.h"
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-MyCustomQObjectLoader::MyCustomQObjectLoader( QObject *parent, const char *name, const QStringList &args ) :
+MyCustomQObjectLoader::MyCustomQObjectLoader( TQObject *parent, const char *name, const TQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
@@ -41,7 +41,7 @@ KJS::Object MyCustomQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::Exec
{
kdDebug() << "Loading a custom object" << endl;
- QObject *parent = 0L;
+ TQObject *parent = 0L;
JSObjectProxy *proxy = JSProxy::toObjectProxy( args[0].imp() );
if ( proxy )
parent = proxy->object();
@@ -54,8 +54,8 @@ KJS::Object MyCustomQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::Exec
return proxyObj;
}
-MyCustomQObjectImp::MyCustomQObjectImp(QObject *parent, const char *name )
- : QObject(parent, name)
+MyCustomQObjectImp::MyCustomQObjectImp(TQObject *parent, const char *name )
+ : TQObject(parent, name)
{
kdDebug() << "New MyCustomQObjectImp " << endl;
}
@@ -74,12 +74,12 @@ void MyCustomQObjectImp::setMode( Mode md)
kdDebug() << "setMode() " << endl;
m_mode = md;
}
-QString MyCustomQObjectImp::thing() const
+TQString MyCustomQObjectImp::thing() const
{
kdDebug() << "thing()" << endl;
return m_thing;
}
-void MyCustomQObjectImp::setThing( const QString &t)
+void MyCustomQObjectImp::setThing( const TQString &t)
{
kdDebug() << "setThing() " << t << endl;
m_thing = t;
diff --git a/kjsembed/plugins/customqobject_plugin.h b/kjsembed/plugins/customqobject_plugin.h
index bd419b59..b80ac67a 100644
--- a/kjsembed/plugins/customqobject_plugin.h
+++ b/kjsembed/plugins/customqobject_plugin.h
@@ -24,7 +24,7 @@
#include <kjsembed/jsbindingplugin.h>
#include <kjsembed/jsproxy_imp.h>
-#include <qobject.h>
+#include <tqobject.h>
namespace KJSEmbed {
namespace Bindings {
@@ -32,33 +32,33 @@ namespace Bindings {
class MyCustomQObjectLoader : public JSBindingPlugin
{
public:
- MyCustomQObjectLoader( QObject *parent, const char *name, const QStringList &args );
+ MyCustomQObjectLoader( TQObject *parent, const char *name, const TQStringList &args );
virtual ~MyCustomQObjectLoader(){;}
KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
};
-class MyCustomQObjectImp : public QObject {
+class MyCustomQObjectImp : public TQObject {
Q_OBJECT
/** Identifiers for the methods provided by this class. */
enum Mode { On, Off };
Q_PROPERTY(Mode mode READ mode WRITE setMode)
- Q_PROPERTY(QString thing READ thing WRITE setThing)
+ Q_PROPERTY(TQString thing READ thing WRITE setThing)
Q_ENUMS(Mode)
public:
- MyCustomQObjectImp( QObject *parent, const char *name);
+ MyCustomQObjectImp( TQObject *parent, const char *name);
virtual ~MyCustomQObjectImp();
public slots:
Mode mode() const;
void setMode( Mode md);
- QString thing() const;
- void setThing( const QString &t);
+ TQString thing() const;
+ void setThing( const TQString &t);
private:
Mode m_mode;
- QString m_thing;
+ TQString m_thing;
};
diff --git a/kjsembed/plugins/imagefx_plugin.cpp b/kjsembed/plugins/imagefx_plugin.cpp
index 903c7655..ba2181cc 100644
--- a/kjsembed/plugins/imagefx_plugin.cpp
+++ b/kjsembed/plugins/imagefx_plugin.cpp
@@ -27,8 +27,8 @@
#include <kjsembed/jsfactory_imp.h>
#include <kjsembed/kjsembedpart.h>
#include <kjsembed/customobject_imp.h>
-#include <qvariant.h>
-#include <qbrush.h>
+#include <tqvariant.h>
+#include <tqbrush.h>
#include "imagefx_plugin.h"
@@ -36,7 +36,7 @@ namespace KJSEmbed {
namespace Bindings {
-ImageFXLoader::ImageFXLoader( QObject *parent, const char *name, const QStringList &args ) :
+ImageFXLoader::ImageFXLoader( TQObject *parent, const char *name, const TQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
@@ -206,116 +206,116 @@ KJS::Value ImageFX::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
KJS::Value retValue = KJS::Value();
switch ( mid ) {
case Methodgradient: {
- QSize size = extractQSize(exec, args, 0);
- QColor ca = extractQColor(exec, args, 1);
- QColor cb = extractQColor(exec, args, 2);
+ TQSize size = extractQSize(exec, args, 0);
+ TQColor ca = extractQColor(exec, args, 1);
+ TQColor cb = extractQColor(exec, args, 2);
int type = extractInt( exec, args, 3);
int ncols = extractInt( exec, args, 4);
- QImage img = KImageEffect::gradient(size, ca, cb, (KImageEffect::GradientType)type, ncols);
+ TQImage img = KImageEffect::gradient(size, ca, cb, (KImageEffect::GradientType)type, ncols);
retValue = convertToValue(exec, img);
break;
}
case MethodunbalancedGradient: {
- QSize size = extractQSize(exec, args, 0);
- QColor ca = extractQColor(exec, args, 1);
- QColor cb = extractQColor(exec, args, 2);
+ TQSize size = extractQSize(exec, args, 0);
+ TQColor ca = extractQColor(exec, args, 1);
+ TQColor cb = extractQColor(exec, args, 2);
int type = extractInt( exec, args, 3);
int xfactor = extractInt( exec, args, 4);
int yfactor = extractInt( exec, args, 5);
int ncols = extractInt( exec, args, 6);
- QImage img = KImageEffect::unbalancedGradient(size, ca, cb, (KImageEffect::GradientType)type, xfactor, yfactor, ncols);
+ TQImage img = KImageEffect::unbalancedGradient(size, ca, cb, (KImageEffect::GradientType)type, xfactor, yfactor, ncols);
retValue = convertToValue(exec, img);
break;
}
case MethodblendColor: {
- QColor clr = extractQColor(exec, args, 0);
- QImage dst = extractQImage(exec, args, 1);
+ TQColor clr = extractQColor(exec, args, 0);
+ TQImage dst = extractQImage(exec, args, 1);
float opacity = (float)extractDouble(exec, args, 2);
- QImage img = KImageEffect::blend(clr, dst, opacity);
+ TQImage img = KImageEffect::blend(clr, dst, opacity);
retValue = convertToValue(exec, img);
break;
}
case MethodblendImage: {
- QImage src = extractQImage(exec, args, 0);
- QImage dst = extractQImage(exec, args, 1);
+ TQImage src = extractQImage(exec, args, 0);
+ TQImage dst = extractQImage(exec, args, 1);
float opacity = (float)extractDouble(exec, args, 2);
- QImage img = KImageEffect::blend(src, dst, opacity);
+ TQImage img = KImageEffect::blend(src, dst, opacity);
retValue = convertToValue(exec, img);
break;
}
case MethodcomputeDestinationRect: {
- QSize lowerSize = extractQSize(exec, args, 0);
+ TQSize lowerSize = extractQSize(exec, args, 0);
int disposition = extractInt(exec, args, 1);
- QImage upper = extractQImage(exec, args, 2);
- QRect rect = KImageEffect::computeDestinationRect(lowerSize, (KImageEffect::Disposition) disposition, upper);
+ TQImage upper = extractQImage(exec, args, 2);
+ TQRect rect = KImageEffect::computeDestinationRect(lowerSize, (KImageEffect::Disposition) disposition, upper);
retValue = convertToValue(exec, rect);
break;
}
case MethodchannelIntensity: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
float percent = (float)extractDouble(exec, args, 1);
int channel = extractInt(exec, args, 2);
- QImage img = KImageEffect::channelIntensity(image, percent, (KImageEffect::RGBComponent)channel);
+ TQImage img = KImageEffect::channelIntensity(image, percent, (KImageEffect::RGBComponent)channel);
retValue = convertToValue(exec, img);
break;
}
case Methodfade: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
float val = (float)extractDouble(exec, args, 1);
- QColor color = extractQColor(exec, args, 2);
- QImage img = KImageEffect::fade(image, val, color);
+ TQColor color = extractQColor(exec, args, 2);
+ TQImage img = KImageEffect::fade(image, val, color);
retValue = convertToValue(exec, img);
break;
}
case Methodflatten: {
- QImage image = extractQImage(exec, args, 0);
- QColor ca = extractQColor(exec, args, 1);
- QColor cb = extractQColor(exec, args, 2);
+ TQImage image = extractQImage(exec, args, 0);
+ TQColor ca = extractQColor(exec, args, 1);
+ TQColor cb = extractQColor(exec, args, 2);
int ncols = extractInt(exec, args, 3);
- QImage img = KImageEffect::flatten(image, ca, cb, ncols);
+ TQImage img = KImageEffect::flatten(image, ca, cb, ncols);
retValue = convertToValue(exec, img);
break;
}
case Methodhash: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int lite = extractInt(exec, args, 1);
int spacing = extractInt(exec, args, 2);
- QImage img = KImageEffect::hash(image, (KImageEffect::Lighting)lite, spacing);
+ TQImage img = KImageEffect::hash(image, (KImageEffect::Lighting)lite, spacing);
retValue = convertToValue(exec, img);
break;
}
case Methodintensity: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
float percent = (float)extractDouble(exec, args, 1);
- QImage img = KImageEffect::intensity(image, percent);
+ TQImage img = KImageEffect::intensity(image, percent);
retValue = convertToValue(exec, img);
break;
}
case Methodmodulate: {
- QImage image = extractQImage(exec, args, 0);
- QImage modImage = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
+ TQImage modImage = extractQImage(exec, args, 0);
bool reverse = extractBool(exec, args, 1);
int type = extractInt(exec, args, 2);
int factor = extractInt(exec, args, 3);
int channel = extractInt(exec, args, 4);
- QImage img = KImageEffect::modulate(image, modImage, reverse, (KImageEffect::ModulationType)type, factor, (KImageEffect::RGBComponent)channel);
+ TQImage img = KImageEffect::modulate(image, modImage, reverse, (KImageEffect::ModulationType)type, factor, (KImageEffect::RGBComponent)channel);
retValue = convertToValue(exec, img);
break;
}
case MethodtoGray: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
bool fast = extractBool(exec, args, 1);
- QImage img = KImageEffect::toGray(image, fast);
+ TQImage img = KImageEffect::toGray(image, fast);
retValue = convertToValue(exec, img);
break;
}
case Methoddesaturate: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
float desat = (float)extractDouble(exec, args, 1);
- QImage img = KImageEffect::desaturate(image, desat);
+ TQImage img = KImageEffect::desaturate(image, desat);
retValue = convertToValue(exec, img);
break;
}
@@ -326,193 +326,193 @@ KJS::Value ImageFX::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
}
case MethodselectedImage: {
- QImage image = extractQImage(exec, args, 0);
- QColor col = extractQColor(exec, args, 1);
- QImage img = KImageEffect::selectedImage(image, col);
+ TQImage image = extractQImage(exec, args, 0);
+ TQColor col = extractQColor(exec, args, 1);
+ TQImage img = KImageEffect::selectedImage(image, col);
retValue = convertToValue(exec, img);
break;
}
case MethodcontrastHSV: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
bool sharpen = extractBool(exec, args, 1);
KImageEffect::contrastHSV(image, sharpen);
retValue = convertToValue(exec, image);
break;
}
case Methodnormalize: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
KImageEffect::normalize(image);
retValue = convertToValue(exec, image);
break;
}
case Methodequalize: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
KImageEffect::equalize(image);
retValue = convertToValue(exec, image);
break;
}
case Methodthreshold: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
uint value = extractUInt(exec, args, 1);
KImageEffect::threshold(image, value);
retValue = convertToValue(exec, image);
break;
}
case Methodsolarize: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
KImageEffect::solarize(image, factor);
retValue = convertToValue(exec, image);
break;
}
case Methodemboss: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- QImage img = KImageEffect::emboss(image, radius, sigma);
+ TQImage img = KImageEffect::emboss(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methoddespeckle: {
- QImage image = extractQImage(exec, args, 0);
- QImage img = KImageEffect::despeckle(image);
+ TQImage image = extractQImage(exec, args, 0);
+ TQImage img = KImageEffect::despeckle(image);
retValue = convertToValue(exec, img);
break;
}
case Methodcharcoal: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
- QImage img = KImageEffect::charcoal( image, factor);
+ TQImage img = KImageEffect::charcoal( image, factor);
retValue = convertToValue(exec, img);
break;
}
case Methodcharcoal2: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- QImage img = KImageEffect::charcoal(image, radius, sigma);
+ TQImage img = KImageEffect::charcoal(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodrotate: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int r = extractInt(exec, args, 1);
- QImage img = KImageEffect::rotate(image, (KImageEffect::RotateDirection) r);
+ TQImage img = KImageEffect::rotate(image, (KImageEffect::RotateDirection) r);
retValue = convertToValue(exec, img);
break;
}
case Methodsample: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int width = extractInt(exec, args, 1);
int height = extractInt(exec, args, 2);
- QImage img = KImageEffect::sample(image, width, height);
+ TQImage img = KImageEffect::sample(image, width, height);
retValue = convertToValue(exec, img);
break;
}
case MethodaddNoise: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int type = extractInt(exec, args, 1);
- QImage img = KImageEffect::addNoise(image, (KImageEffect::NoiseType) type);
+ TQImage img = KImageEffect::addNoise(image, (KImageEffect::NoiseType) type);
retValue = convertToValue(exec, img);
break;
}
case Methodblur: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- QImage img = KImageEffect::blur(image, radius, sigma);
+ TQImage img = KImageEffect::blur(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodedge: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
- QImage img = KImageEffect::edge(image, radius);
+ TQImage img = KImageEffect::edge(image, radius);
retValue = convertToValue(exec, img);
break;
}
case Methodimplode: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
uint background = extractUInt(exec, args, 2);
- QImage img = KImageEffect::implode(image, factor, background);
+ TQImage img = KImageEffect::implode(image, factor, background);
retValue = convertToValue(exec, img);
break;
}
case MethodoilPaintConvolve: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
- QImage img = KImageEffect::oilPaintConvolve(image, radius);
+ TQImage img = KImageEffect::oilPaintConvolve(image, radius);
retValue = convertToValue(exec, img);
break;
}
case MethodoilPaint: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int radius = extractInt(exec, args, 1);
- QImage img = KImageEffect::oilPaint(image, radius);
+ TQImage img = KImageEffect::oilPaint(image, radius);
retValue = convertToValue(exec, img);
break;
}
case Methodsharpen: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
- QImage img = KImageEffect::sharpen(image, factor);
+ TQImage img = KImageEffect::sharpen(image, factor);
retValue = convertToValue(exec, img);
break;
}
case Methodsharpen2: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- QImage img = KImageEffect::sharpen(image, radius, sigma);
+ TQImage img = KImageEffect::sharpen(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodspread: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
uint amount = extractUInt(exec, args, 1);
- QImage img = KImageEffect::spread(image, amount);
+ TQImage img = KImageEffect::spread(image, amount);
retValue = convertToValue(exec, img);
break;
}
case Methodshade: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
bool color_shading = extractBool(exec, args, 1);
double azimuth = extractDouble(exec, args, 2);
double elevation = extractDouble(exec, args, 3);
- QImage img = KImageEffect::shade(image, color_shading, azimuth, elevation);
+ TQImage img = KImageEffect::shade(image, color_shading, azimuth, elevation);
retValue = convertToValue(exec, img);
break;
}
case Methodswirl: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double degrees = extractDouble(exec, args, 1);
uint background = extractUInt(exec, args, 2);
- QImage img = KImageEffect::swirl(image, degrees, background);
+ TQImage img = KImageEffect::swirl(image, degrees, background);
retValue = convertToValue(exec, img);
break;
}
case Methodwave: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
double amplitude = extractDouble(exec, args, 1);
double frequency = extractDouble(exec, args, 2);
uint background = extractUInt(exec, args, 3);
- QImage img = KImageEffect::wave(image, amplitude, frequency, background);
+ TQImage img = KImageEffect::wave(image, amplitude, frequency, background);
retValue = convertToValue(exec, img);
break;
}
case Methodcontrast: {
- QImage image = extractQImage(exec, args, 0);
+ TQImage image = extractQImage(exec, args, 0);
int c = extractInt(exec, args, 1);
- QImage img = KImageEffect::contrast(image, c);
+ TQImage img = KImageEffect::contrast(image, c);
retValue = convertToValue(exec, img);
break;
}
case MethodbumpMap: {
- QImage mask = extractQImage(exec, args, 0);
- QImage img = bumpmap(img,
+ TQImage mask = extractQImage(exec, args, 0);
+ TQImage img = bumpmap(img,
mask,
extractDouble(exec, args, 1),
extractDouble(exec, args, 2),
@@ -771,12 +771,12 @@ static void bumpmap_row( uint *src,
* @return The destination image (dst) containing the result.
* @author Zack Rusin <zack@kde.org>
*/
-QImage ImageFX::bumpmap(QImage &img, QImage &map, double azimuth, double elevation,
+TQImage ImageFX::bumpmap(TQImage &img, TQImage &map, double azimuth, double elevation,
int depth, int xofs, int yofs, int waterlevel,
int ambient, bool compensate, bool invert,
BumpmapType type, bool tiled)
{
- QImage dst;
+ TQImage dst;
if ( img.depth() != 32 || img.depth() != 32 ) {
qWarning( "Bump-mapping effect works only with 32 bit images");
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;
};
diff --git a/kjsembed/plugins/kfileitemloader.cpp b/kjsembed/plugins/kfileitemloader.cpp
index 0972e20a..55e86f76 100644
--- a/kjsembed/plugins/kfileitemloader.cpp
+++ b/kjsembed/plugins/kfileitemloader.cpp
@@ -31,7 +31,7 @@
namespace KJSEmbed {
namespace Bindings {
-KFileItemLoader::KFileItemLoader(QObject *parent, const char *name, const QStringList &args)
+KFileItemLoader::KFileItemLoader(TQObject *parent, const char *name, const TQStringList &args)
: JSBindingPlugin(parent, name, args)
{
}
@@ -147,13 +147,13 @@ KJS::Value KJSEmbed::Bindings::KFileItemImp::call( KJS::ExecState * exec, KJS::O
break;
case Methodurl:
{
- QString url = obj->url().url();
+ TQString url = obj->url().url();
retValue = KJS::String(url);
break;
}
case MethodsetUrl:
{
- QString url = extractQString(exec, args, 0);
+ TQString url = extractQString(exec, args, 0);
obj->setURL(url);
break;
}
diff --git a/kjsembed/plugins/kfileitemloader.h b/kjsembed/plugins/kfileitemloader.h
index bca77dc5..384379f3 100644
--- a/kjsembed/plugins/kfileitemloader.h
+++ b/kjsembed/plugins/kfileitemloader.h
@@ -34,7 +34,7 @@ namespace Bindings {
class KFileItemLoader : public JSBindingPlugin
{
public:
- KFileItemLoader(QObject *parent, const char *name, const QStringList &args);
+ KFileItemLoader(TQObject *parent, const char *name, const TQStringList &args);
~KFileItemLoader();
diff --git a/kjsembed/plugins/qprocess_plugin.cpp b/kjsembed/plugins/qprocess_plugin.cpp
index 497022e1..3106fd8f 100644
--- a/kjsembed/plugins/qprocess_plugin.cpp
+++ b/kjsembed/plugins/qprocess_plugin.cpp
@@ -24,7 +24,7 @@
#include <kjsembed/jsbinding.h>
#include <kjsembed/kjsembedpart.h>
#include <kjsembed/customobject_imp.h>
-#include <qvariant.h>
+#include <tqvariant.h>
#include "qprocess_plugin.h"
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-ProcessLoader::ProcessLoader( QObject *parent, const char *name, const QStringList &args ) :
+ProcessLoader::ProcessLoader( TQObject *parent, const char *name, const TQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
@@ -41,7 +41,7 @@ KJS::Object ProcessLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *e
{
kdDebug() << "Loading a process object" << endl;
- QObject *parent = 0L;
+ TQObject *parent = 0L;
JSObjectProxy *proxy = JSProxy::toObjectProxy( args[0].imp() );
if ( proxy )
parent = proxy->object();
@@ -54,8 +54,8 @@ KJS::Object ProcessLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *e
return proxyObj;
}
-ProcessImp::ProcessImp(QObject *parent, const char *name )
- : QProcess(parent, name)
+ProcessImp::ProcessImp(TQObject *parent, const char *name )
+ : TQProcess(parent, name)
{
kdDebug() << "New ProcessImp " << endl;
}
@@ -64,73 +64,73 @@ ProcessImp::~ProcessImp()
{
}
-QStringList ProcessImp::arguments() const
+TQStringList ProcessImp::arguments() const
{
- return QProcess::arguments();
+ return TQProcess::arguments();
}
-void ProcessImp::setArguments( const QStringList args)
+void ProcessImp::setArguments( const TQStringList args)
{
- QProcess::setArguments( args );
+ TQProcess::setArguments( args );
}
ProcessImp::Communication ProcessImp::communication() const
{
- return (ProcessImp::Communication)QProcess::communication();
+ return (ProcessImp::Communication)TQProcess::communication();
}
void ProcessImp::setCommunication( Communication comm)
{
- QProcess::setCommunication( comm );
+ TQProcess::setCommunication( comm );
}
bool ProcessImp::canReadLineStdout() const
{
- return QProcess::canReadLineStdout();
+ return TQProcess::canReadLineStdout();
}
bool ProcessImp::canReadLineStderr() const
{
- return QProcess::canReadLineStderr();
+ return TQProcess::canReadLineStderr();
}
bool ProcessImp::isRunning() const
{
- return QProcess::isRunning();
+ return TQProcess::isRunning();
}
bool ProcessImp::normalExit() const
{
- return QProcess::normalExit();
+ return TQProcess::normalExit();
}
int ProcessImp::exitStatus() const
{
- return QProcess::exitStatus();
+ return TQProcess::exitStatus();
}
bool ProcessImp::start()
{
- return QProcess::start( );
+ return TQProcess::start( );
}
-QString ProcessImp::readLineStdout ()
+TQString ProcessImp::readLineStdout ()
{
- return QProcess::readLineStdout();
+ return TQProcess::readLineStdout();
}
-QString ProcessImp::readLineStderr ()
+TQString ProcessImp::readLineStderr ()
{
- return QProcess::readLineStderr();
+ return TQProcess::readLineStderr();
}
-QDir ProcessImp::workingDirectory () const
+TQDir ProcessImp::workingDirectory () const
{
- return QProcess::workingDirectory();
+ return TQProcess::workingDirectory();
}
-void ProcessImp::setWorkingDirectory ( const QDir & dir )
+void ProcessImp::setWorkingDirectory ( const TQDir & dir )
{
- QProcess::setWorkingDirectory( dir );
+ TQProcess::setWorkingDirectory( dir );
}
-void ProcessImp::addArgument ( const QString & arg )
+void ProcessImp::addArgument ( const TQString & arg )
{
- QProcess::addArgument( arg );
+ TQProcess::addArgument( arg );
}
} // namespace KJSEmbed::Bindings
diff --git a/kjsembed/plugins/qprocess_plugin.h b/kjsembed/plugins/qprocess_plugin.h
index 8b0608a5..c5ffe4a5 100644
--- a/kjsembed/plugins/qprocess_plugin.h
+++ b/kjsembed/plugins/qprocess_plugin.h
@@ -24,8 +24,8 @@
#include <kjsembed/jsbindingplugin.h>
#include <kjsembed/jsproxy_imp.h>
-#include <qprocess.h>
-#include <qdir.h>
+#include <tqprocess.h>
+#include <tqdir.h>
namespace KJSEmbed {
namespace Bindings {
@@ -33,20 +33,20 @@ namespace Bindings {
class ProcessLoader : public JSBindingPlugin
{
public:
- ProcessLoader( QObject *parent, const char *name, const QStringList &args );
+ ProcessLoader( TQObject *parent, const char *name, const TQStringList &args );
virtual ~ProcessLoader(){;}
KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
};
-class ProcessImp : public QProcess {
+class ProcessImp : public TQProcess {
Q_OBJECT
/** Identifiers for the methods provided by this class. */
enum Communication { Stdin = 0x01, Stdout = 0x02, Stderr = 0x04, DupStderr = 0x08 };
- Q_PROPERTY(QStringList arguments READ arguments WRITE setArguments )
+ Q_PROPERTY(TQStringList arguments READ arguments WRITE setArguments )
Q_PROPERTY(Communication communication READ communication WRITE setCommunication)
Q_PROPERTY(bool canReadLineStdout READ canReadLineStdout )
Q_PROPERTY(bool canReadLineStderr READ canReadLineStderr )
@@ -56,11 +56,11 @@ Q_OBJECT
Q_ENUMS(Communication)
public:
- ProcessImp( QObject *parent = 0, const char *name = 0);
+ ProcessImp( TQObject *parent = 0, const char *name = 0);
virtual ~ProcessImp();
- QStringList arguments() const;
- void setArguments( const QStringList args);
+ TQStringList arguments() const;
+ void setArguments( const TQStringList args);
Communication communication() const;
void setCommunication( Communication comm);
@@ -73,11 +73,11 @@ public:
public slots:
bool start();
- virtual QString readLineStdout ();
- virtual QString readLineStderr ();
- QDir workingDirectory () const;
- void setWorkingDirectory ( const QDir & dir );
- void addArgument ( const QString & arg );
+ virtual TQString readLineStdout ();
+ virtual TQString readLineStderr ();
+ TQDir workingDirectory () const;
+ void setWorkingDirectory ( const TQDir & dir );
+ void addArgument ( const TQString & arg );
};
} // namespace