summaryrefslogtreecommitdiffstats
path: root/kjsembed/plugins
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 16:20:48 -0600
commite63beeb5bdb82987b1e00bc35178667786fbad48 (patch)
treeab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/plugins
parent67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff)
downloadtdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz
tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip
Fix incorrect conversion
Diffstat (limited to 'kjsembed/plugins')
-rw-r--r--kjsembed/plugins/customobject_plugin.cpp8
-rw-r--r--kjsembed/plugins/customobject_plugin.h4
-rw-r--r--kjsembed/plugins/customqobject_plugin.cpp12
-rw-r--r--kjsembed/plugins/customqobject_plugin.h14
-rw-r--r--kjsembed/plugins/imagefx_plugin.cpp176
-rw-r--r--kjsembed/plugins/imagefx_plugin.h24
-rw-r--r--kjsembed/plugins/kfileitemloader.cpp6
-rw-r--r--kjsembed/plugins/kfileitemloader.h2
-rw-r--r--kjsembed/plugins/qprocess_plugin.cpp52
-rw-r--r--kjsembed/plugins/qprocess_plugin.h22
10 files changed, 160 insertions, 160 deletions
diff --git a/kjsembed/plugins/customobject_plugin.cpp b/kjsembed/plugins/customobject_plugin.cpp
index 13bf0526..b883ff66 100644
--- a/kjsembed/plugins/customobject_plugin.cpp
+++ b/kjsembed/plugins/customobject_plugin.cpp
@@ -39,10 +39,10 @@ class MyCustomObject
public:
enum Mode { On, Off };
Mode mode;
- TTQString thing;
+ TQString thing;
};
-MyCustomObjectLoader::MyCustomObjectLoader( TTQObject *parent, const char *name, const TTQStringList &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;
}
-TTQString 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() : TTQString::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 aef20616..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( TTQObject *parent, const char *name, const TTQStringList &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);
- TTQString 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 8538dffc..74d39bc3 100644
--- a/kjsembed/plugins/customqobject_plugin.cpp
+++ b/kjsembed/plugins/customqobject_plugin.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-MyCustomTQObjectLoader::MyCustomTQObjectLoader( TTQObject *parent, const char *name, const TTQStringList &args ) :
+MyCustomTQObjectLoader::MyCustomTQObjectLoader( TQObject *parent, const char *name, const TQStringList &args ) :
JSBindingPlugin(parent, name, args)
{
}
@@ -41,7 +41,7 @@ KJS::Object MyCustomTQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::Exe
{
kdDebug() << "Loading a custom object" << endl;
- TTQObject *parent = 0L;
+ TQObject *parent = 0L;
JSObjectProxy *proxy = JSProxy::toObjectProxy( args[0].imp() );
if ( proxy )
parent = proxy->object();
@@ -54,8 +54,8 @@ KJS::Object MyCustomTQObjectLoader::createBinding(KJSEmbedPart *jspart, KJS::Exe
return proxyObj;
}
-MyCustomTQObjectImp::MyCustomTQObjectImp(TTQObject *parent, const char *name )
- : TTQObject(parent, name)
+MyCustomTQObjectImp::MyCustomTQObjectImp(TQObject *parent, const char *name )
+ : TQObject(parent, name)
{
kdDebug() << "New MyCustomTQObjectImp " << endl;
}
@@ -74,12 +74,12 @@ void MyCustomTQObjectImp::setMode( Mode md)
kdDebug() << "setMode() " << endl;
m_mode = md;
}
-TTQString MyCustomTQObjectImp::thing() const
+TQString MyCustomTQObjectImp::thing() const
{
kdDebug() << "thing()" << endl;
return m_thing;
}
-void MyCustomTQObjectImp::setThing( const TTQString &t)
+void MyCustomTQObjectImp::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 9af6aee6..42d7236b 100644
--- a/kjsembed/plugins/customqobject_plugin.h
+++ b/kjsembed/plugins/customqobject_plugin.h
@@ -32,33 +32,33 @@ namespace Bindings {
class MyCustomTQObjectLoader : public JSBindingPlugin
{
public:
- MyCustomTQObjectLoader( TTQObject *parent, const char *name, const TTQStringList &args );
+ MyCustomTQObjectLoader( TQObject *parent, const char *name, const TQStringList &args );
virtual ~MyCustomTQObjectLoader(){;}
KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
};
-class MyCustomTQObjectImp : public TTQObject {
+class MyCustomTQObjectImp : 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(TTQString thing READ thing WRITE setThing)
+ Q_PROPERTY(TQString thing READ thing WRITE setThing)
Q_ENUMS(Mode)
public:
- MyCustomTQObjectImp( TTQObject *parent, const char *name);
+ MyCustomTQObjectImp( TQObject *parent, const char *name);
virtual ~MyCustomTQObjectImp();
public slots:
Mode mode() const;
void setMode( Mode md);
- TTQString thing() const;
- void setThing( const TTQString &t);
+ TQString thing() const;
+ void setThing( const TQString &t);
private:
Mode m_mode;
- TTQString m_thing;
+ TQString m_thing;
};
diff --git a/kjsembed/plugins/imagefx_plugin.cpp b/kjsembed/plugins/imagefx_plugin.cpp
index 7aa81b3c..ef3d0ed0 100644
--- a/kjsembed/plugins/imagefx_plugin.cpp
+++ b/kjsembed/plugins/imagefx_plugin.cpp
@@ -36,7 +36,7 @@ namespace KJSEmbed {
namespace Bindings {
-ImageFXLoader::ImageFXLoader( TTQObject *parent, const char *name, const TTQStringList &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: {
- TTQSize size = extractTQSize(exec, args, 0);
- TTQColor ca = extractTQColor(exec, args, 1);
- TTQColor cb = extractTQColor(exec, args, 2);
+ TQSize size = extractTQSize(exec, args, 0);
+ TQColor ca = extractTQColor(exec, args, 1);
+ TQColor cb = extractTQColor(exec, args, 2);
int type = extractInt( exec, args, 3);
int ncols = extractInt( exec, args, 4);
- TTQImage 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: {
- TTQSize size = extractTQSize(exec, args, 0);
- TTQColor ca = extractTQColor(exec, args, 1);
- TTQColor cb = extractTQColor(exec, args, 2);
+ TQSize size = extractTQSize(exec, args, 0);
+ TQColor ca = extractTQColor(exec, args, 1);
+ TQColor cb = extractTQColor(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);
- TTQImage 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: {
- TTQColor clr = extractTQColor(exec, args, 0);
- TTQImage dst = extractTQImage(exec, args, 1);
+ TQColor clr = extractTQColor(exec, args, 0);
+ TQImage dst = extractTQImage(exec, args, 1);
float opacity = (float)extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::blend(clr, dst, opacity);
+ TQImage img = KImageEffect::blend(clr, dst, opacity);
retValue = convertToValue(exec, img);
break;
}
case MethodblendImage: {
- TTQImage src = extractTQImage(exec, args, 0);
- TTQImage dst = extractTQImage(exec, args, 1);
+ TQImage src = extractTQImage(exec, args, 0);
+ TQImage dst = extractTQImage(exec, args, 1);
float opacity = (float)extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::blend(src, dst, opacity);
+ TQImage img = KImageEffect::blend(src, dst, opacity);
retValue = convertToValue(exec, img);
break;
}
case MethodcomputeDestinationRect: {
- TTQSize lowerSize = extractTQSize(exec, args, 0);
+ TQSize lowerSize = extractTQSize(exec, args, 0);
int disposition = extractInt(exec, args, 1);
- TTQImage upper = extractTQImage(exec, args, 2);
- TTQRect rect = KImageEffect::computeDestinationRect(lowerSize, (KImageEffect::Disposition) disposition, upper);
+ TQImage upper = extractTQImage(exec, args, 2);
+ TQRect rect = KImageEffect::computeDestinationRect(lowerSize, (KImageEffect::Disposition) disposition, upper);
retValue = convertToValue(exec, rect);
break;
}
case MethodchannelIntensity: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
float percent = (float)extractDouble(exec, args, 1);
int channel = extractInt(exec, args, 2);
- TTQImage img = KImageEffect::channelIntensity(image, percent, (KImageEffect::RGBComponent)channel);
+ TQImage img = KImageEffect::channelIntensity(image, percent, (KImageEffect::RGBComponent)channel);
retValue = convertToValue(exec, img);
break;
}
case Methodfade: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
float val = (float)extractDouble(exec, args, 1);
- TTQColor color = extractTQColor(exec, args, 2);
- TTQImage img = KImageEffect::fade(image, val, color);
+ TQColor color = extractTQColor(exec, args, 2);
+ TQImage img = KImageEffect::fade(image, val, color);
retValue = convertToValue(exec, img);
break;
}
case Methodflatten: {
- TTQImage image = extractTQImage(exec, args, 0);
- TTQColor ca = extractTQColor(exec, args, 1);
- TTQColor cb = extractTQColor(exec, args, 2);
+ TQImage image = extractTQImage(exec, args, 0);
+ TQColor ca = extractTQColor(exec, args, 1);
+ TQColor cb = extractTQColor(exec, args, 2);
int ncols = extractInt(exec, args, 3);
- TTQImage img = KImageEffect::flatten(image, ca, cb, ncols);
+ TQImage img = KImageEffect::flatten(image, ca, cb, ncols);
retValue = convertToValue(exec, img);
break;
}
case Methodhash: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int lite = extractInt(exec, args, 1);
int spacing = extractInt(exec, args, 2);
- TTQImage img = KImageEffect::hash(image, (KImageEffect::Lighting)lite, spacing);
+ TQImage img = KImageEffect::hash(image, (KImageEffect::Lighting)lite, spacing);
retValue = convertToValue(exec, img);
break;
}
case Methodintensity: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
float percent = (float)extractDouble(exec, args, 1);
- TTQImage img = KImageEffect::intensity(image, percent);
+ TQImage img = KImageEffect::intensity(image, percent);
retValue = convertToValue(exec, img);
break;
}
case Methodmodulate: {
- TTQImage image = extractTQImage(exec, args, 0);
- TTQImage modImage = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
+ TQImage modImage = extractTQImage(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);
- TTQImage 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: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
bool fast = extractBool(exec, args, 1);
- TTQImage img = KImageEffect::toGray(image, fast);
+ TQImage img = KImageEffect::toGray(image, fast);
retValue = convertToValue(exec, img);
break;
}
case Methoddesaturate: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
float desat = (float)extractDouble(exec, args, 1);
- TTQImage 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: {
- TTQImage image = extractTQImage(exec, args, 0);
- TTQColor col = extractTQColor(exec, args, 1);
- TTQImage img = KImageEffect::selectedImage(image, col);
+ TQImage image = extractTQImage(exec, args, 0);
+ TQColor col = extractTQColor(exec, args, 1);
+ TQImage img = KImageEffect::selectedImage(image, col);
retValue = convertToValue(exec, img);
break;
}
case MethodcontrastHSV: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
bool sharpen = extractBool(exec, args, 1);
KImageEffect::contrastHSV(image, sharpen);
retValue = convertToValue(exec, image);
break;
}
case Methodnormalize: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
KImageEffect::normalize(image);
retValue = convertToValue(exec, image);
break;
}
case Methodequalize: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
KImageEffect::equalize(image);
retValue = convertToValue(exec, image);
break;
}
case Methodthreshold: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
uint value = extractUInt(exec, args, 1);
KImageEffect::threshold(image, value);
retValue = convertToValue(exec, image);
break;
}
case Methodsolarize: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
KImageEffect::solarize(image, factor);
retValue = convertToValue(exec, image);
break;
}
case Methodemboss: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::emboss(image, radius, sigma);
+ TQImage img = KImageEffect::emboss(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methoddespeckle: {
- TTQImage image = extractTQImage(exec, args, 0);
- TTQImage img = KImageEffect::despeckle(image);
+ TQImage image = extractTQImage(exec, args, 0);
+ TQImage img = KImageEffect::despeckle(image);
retValue = convertToValue(exec, img);
break;
}
case Methodcharcoal: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
- TTQImage img = KImageEffect::charcoal( image, factor);
+ TQImage img = KImageEffect::charcoal( image, factor);
retValue = convertToValue(exec, img);
break;
}
case Methodcharcoal2: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::charcoal(image, radius, sigma);
+ TQImage img = KImageEffect::charcoal(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodrotate: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int r = extractInt(exec, args, 1);
- TTQImage img = KImageEffect::rotate(image, (KImageEffect::RotateDirection) r);
+ TQImage img = KImageEffect::rotate(image, (KImageEffect::RotateDirection) r);
retValue = convertToValue(exec, img);
break;
}
case Methodsample: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int width = extractInt(exec, args, 1);
int height = extractInt(exec, args, 2);
- TTQImage img = KImageEffect::sample(image, width, height);
+ TQImage img = KImageEffect::sample(image, width, height);
retValue = convertToValue(exec, img);
break;
}
case MethodaddNoise: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int type = extractInt(exec, args, 1);
- TTQImage img = KImageEffect::addNoise(image, (KImageEffect::NoiseType) type);
+ TQImage img = KImageEffect::addNoise(image, (KImageEffect::NoiseType) type);
retValue = convertToValue(exec, img);
break;
}
case Methodblur: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::blur(image, radius, sigma);
+ TQImage img = KImageEffect::blur(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodedge: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
- TTQImage img = KImageEffect::edge(image, radius);
+ TQImage img = KImageEffect::edge(image, radius);
retValue = convertToValue(exec, img);
break;
}
case Methodimplode: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
uint background = extractUInt(exec, args, 2);
- TTQImage img = KImageEffect::implode(image, factor, background);
+ TQImage img = KImageEffect::implode(image, factor, background);
retValue = convertToValue(exec, img);
break;
}
case MethodoilPaintConvolve: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
- TTQImage img = KImageEffect::oilPaintConvolve(image, radius);
+ TQImage img = KImageEffect::oilPaintConvolve(image, radius);
retValue = convertToValue(exec, img);
break;
}
case MethodoilPaint: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int radius = extractInt(exec, args, 1);
- TTQImage img = KImageEffect::oilPaint(image, radius);
+ TQImage img = KImageEffect::oilPaint(image, radius);
retValue = convertToValue(exec, img);
break;
}
case Methodsharpen: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double factor = extractDouble(exec, args, 1);
- TTQImage img = KImageEffect::sharpen(image, factor);
+ TQImage img = KImageEffect::sharpen(image, factor);
retValue = convertToValue(exec, img);
break;
}
case Methodsharpen2: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double radius = extractDouble(exec, args, 1);
double sigma = extractDouble(exec, args, 2);
- TTQImage img = KImageEffect::sharpen(image, radius, sigma);
+ TQImage img = KImageEffect::sharpen(image, radius, sigma);
retValue = convertToValue(exec, img);
break;
}
case Methodspread: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
uint amount = extractUInt(exec, args, 1);
- TTQImage img = KImageEffect::spread(image, amount);
+ TQImage img = KImageEffect::spread(image, amount);
retValue = convertToValue(exec, img);
break;
}
case Methodshade: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
bool color_shading = extractBool(exec, args, 1);
double azimuth = extractDouble(exec, args, 2);
double elevation = extractDouble(exec, args, 3);
- TTQImage img = KImageEffect::shade(image, color_shading, azimuth, elevation);
+ TQImage img = KImageEffect::shade(image, color_shading, azimuth, elevation);
retValue = convertToValue(exec, img);
break;
}
case Methodswirl: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double degrees = extractDouble(exec, args, 1);
uint background = extractUInt(exec, args, 2);
- TTQImage img = KImageEffect::swirl(image, degrees, background);
+ TQImage img = KImageEffect::swirl(image, degrees, background);
retValue = convertToValue(exec, img);
break;
}
case Methodwave: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
double amplitude = extractDouble(exec, args, 1);
double frequency = extractDouble(exec, args, 2);
uint background = extractUInt(exec, args, 3);
- TTQImage img = KImageEffect::wave(image, amplitude, frequency, background);
+ TQImage img = KImageEffect::wave(image, amplitude, frequency, background);
retValue = convertToValue(exec, img);
break;
}
case Methodcontrast: {
- TTQImage image = extractTQImage(exec, args, 0);
+ TQImage image = extractTQImage(exec, args, 0);
int c = extractInt(exec, args, 1);
- TTQImage img = KImageEffect::contrast(image, c);
+ TQImage img = KImageEffect::contrast(image, c);
retValue = convertToValue(exec, img);
break;
}
case MethodbumpMap: {
- TTQImage mask = extractTQImage(exec, args, 0);
- TTQImage img = bumpmap(img,
+ TQImage mask = extractTQImage(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>
*/
-TTQImage ImageFX::bumpmap(TTQImage &img, TTQImage &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)
{
- TTQImage 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 7e1f10d0..b4f4c6a6 100644
--- a/kjsembed/plugins/imagefx_plugin.h
+++ b/kjsembed/plugins/imagefx_plugin.h
@@ -34,7 +34,7 @@ namespace Bindings {
class ImageFXLoader : public JSBindingPlugin
{
public:
- ImageFXLoader( TTQObject *parent, const char *name, const TTQStringList &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 TTQSize &size, const TTQColor &ca, const TTQColor &cb, KImageEffect::GradientType type, int ncols);
- void unbalancedGradient(const TTQSize &size, const TTQColor &ca,const TTQColor &cb, KImageEffect::GradientType type, int xfactor,int yfactor, int ncols);
- void blendColor(const TTQColor& clr, float opacity);
- void blendImage(TTQImage& blendImage, float opacity);
- TTQRect computeDestinationRect(const TTQSize &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 TTQColor &color);
- void flatten(const TTQColor &ca,const TTQColor &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(TTQImage &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 TTQColor *palette, int size);
- void selectedImage( const TTQColor &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);
- TTQImage bumpmap(TTQImage &img, TTQImage &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 d548e4bd..e3fcdb7f 100644
--- a/kjsembed/plugins/kfileitemloader.cpp
+++ b/kjsembed/plugins/kfileitemloader.cpp
@@ -31,7 +31,7 @@
namespace KJSEmbed {
namespace Bindings {
-KFileItemLoader::KFileItemLoader(TTQObject *parent, const char *name, const TTQStringList &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:
{
- TTQString url = obj->url().url();
+ TQString url = obj->url().url();
retValue = KJS::String(url);
break;
}
case MethodsetUrl:
{
- TTQString url = extractTQString(exec, args, 0);
+ TQString url = extractTQString(exec, args, 0);
obj->setURL(url);
break;
}
diff --git a/kjsembed/plugins/kfileitemloader.h b/kjsembed/plugins/kfileitemloader.h
index bfa0ad89..384379f3 100644
--- a/kjsembed/plugins/kfileitemloader.h
+++ b/kjsembed/plugins/kfileitemloader.h
@@ -34,7 +34,7 @@ namespace Bindings {
class KFileItemLoader : public JSBindingPlugin
{
public:
- KFileItemLoader(TTQObject *parent, const char *name, const TTQStringList &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 085334ef..3106fd8f 100644
--- a/kjsembed/plugins/qprocess_plugin.cpp
+++ b/kjsembed/plugins/qprocess_plugin.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-ProcessLoader::ProcessLoader( TTQObject *parent, const char *name, const TTQStringList &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;
- TTQObject *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(TTQObject *parent, const char *name )
- : TTQProcess(parent, name)
+ProcessImp::ProcessImp(TQObject *parent, const char *name )
+ : TQProcess(parent, name)
{
kdDebug() << "New ProcessImp " << endl;
}
@@ -64,73 +64,73 @@ ProcessImp::~ProcessImp()
{
}
-TTQStringList ProcessImp::arguments() const
+TQStringList ProcessImp::arguments() const
{
- return TTQProcess::arguments();
+ return TQProcess::arguments();
}
-void ProcessImp::setArguments( const TTQStringList args)
+void ProcessImp::setArguments( const TQStringList args)
{
- TTQProcess::setArguments( args );
+ TQProcess::setArguments( args );
}
ProcessImp::Communication ProcessImp::communication() const
{
- return (ProcessImp::Communication)TTQProcess::communication();
+ return (ProcessImp::Communication)TQProcess::communication();
}
void ProcessImp::setCommunication( Communication comm)
{
- TTQProcess::setCommunication( comm );
+ TQProcess::setCommunication( comm );
}
bool ProcessImp::canReadLineStdout() const
{
- return TTQProcess::canReadLineStdout();
+ return TQProcess::canReadLineStdout();
}
bool ProcessImp::canReadLineStderr() const
{
- return TTQProcess::canReadLineStderr();
+ return TQProcess::canReadLineStderr();
}
bool ProcessImp::isRunning() const
{
- return TTQProcess::isRunning();
+ return TQProcess::isRunning();
}
bool ProcessImp::normalExit() const
{
- return TTQProcess::normalExit();
+ return TQProcess::normalExit();
}
int ProcessImp::exitStatus() const
{
- return TTQProcess::exitStatus();
+ return TQProcess::exitStatus();
}
bool ProcessImp::start()
{
- return TTQProcess::start( );
+ return TQProcess::start( );
}
-TTQString ProcessImp::readLineStdout ()
+TQString ProcessImp::readLineStdout ()
{
- return TTQProcess::readLineStdout();
+ return TQProcess::readLineStdout();
}
-TTQString ProcessImp::readLineStderr ()
+TQString ProcessImp::readLineStderr ()
{
- return TTQProcess::readLineStderr();
+ return TQProcess::readLineStderr();
}
-TTQDir ProcessImp::workingDirectory () const
+TQDir ProcessImp::workingDirectory () const
{
- return TTQProcess::workingDirectory();
+ return TQProcess::workingDirectory();
}
-void ProcessImp::setWorkingDirectory ( const TTQDir & dir )
+void ProcessImp::setWorkingDirectory ( const TQDir & dir )
{
- TTQProcess::setWorkingDirectory( dir );
+ TQProcess::setWorkingDirectory( dir );
}
-void ProcessImp::addArgument ( const TTQString & arg )
+void ProcessImp::addArgument ( const TQString & arg )
{
- TTQProcess::addArgument( arg );
+ TQProcess::addArgument( arg );
}
} // namespace KJSEmbed::Bindings
diff --git a/kjsembed/plugins/qprocess_plugin.h b/kjsembed/plugins/qprocess_plugin.h
index 66d79f99..c5ffe4a5 100644
--- a/kjsembed/plugins/qprocess_plugin.h
+++ b/kjsembed/plugins/qprocess_plugin.h
@@ -33,20 +33,20 @@ namespace Bindings {
class ProcessLoader : public JSBindingPlugin
{
public:
- ProcessLoader( TTQObject *parent, const char *name, const TTQStringList &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 TTQProcess {
+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(TTQStringList 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( TTQObject *parent = 0, const char *name = 0);
+ ProcessImp( TQObject *parent = 0, const char *name = 0);
virtual ~ProcessImp();
- TTQStringList arguments() const;
- void setArguments( const TTQStringList 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 TTQString readLineStdout ();
- virtual TTQString readLineStderr ();
- TTQDir workingDirectory () const;
- void setWorkingDirectory ( const TTQDir & dir );
- void addArgument ( const TTQString & arg );
+ virtual TQString readLineStdout ();
+ virtual TQString readLineStderr ();
+ TQDir workingDirectory () const;
+ void setWorkingDirectory ( const TQDir & dir );
+ void addArgument ( const TQString & arg );
};
} // namespace