summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QImage.cpp')
-rw-r--r--qtjava/javalib/qtjava/QImage.cpp370
1 files changed, 185 insertions, 185 deletions
diff --git a/qtjava/javalib/qtjava/QImage.cpp b/qtjava/javalib/qtjava/QImage.cpp
index 47702de4..b2534356 100644
--- a/qtjava/javalib/qtjava/QImage.cpp
+++ b/qtjava/javalib/qtjava/QImage.cpp
@@ -11,58 +11,58 @@
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
-#include <qtjava/QImage.h>
+#include <qtjava/TQImage.h>
-class QImageJBridge : public QImage
+class TQImageJBridge : public TQImage
{
public:
- QImageJBridge() : TQImage() {};
- QImageJBridge(int arg1,int arg2,int arg3,int arg4,TQImage::Endian arg5) : TQImage(arg1,arg2,arg3,arg4,arg5) {};
- QImageJBridge(int arg1,int arg2,int arg3,int arg4) : TQImage(arg1,arg2,arg3,arg4) {};
- QImageJBridge(int arg1,int arg2,int arg3) : TQImage(arg1,arg2,arg3) {};
- QImageJBridge(const TQSize& arg1,int arg2,int arg3,TQImage::Endian arg4) : TQImage(arg1,arg2,arg3,arg4) {};
- QImageJBridge(const TQSize& arg1,int arg2,int arg3) : TQImage(arg1,arg2,arg3) {};
- QImageJBridge(const TQSize& arg1,int arg2) : TQImage(arg1,arg2) {};
- QImageJBridge(const TQString& arg1,const char* arg2) : TQImage(arg1,arg2) {};
- QImageJBridge(const TQString& arg1) : TQImage(arg1) {};
- QImageJBridge(const TQByteArray& arg1) : TQImage(arg1) {};
- QImageJBridge(uchar* arg1,int arg2,int arg3,int arg4,QRgb* arg5,int arg6,TQImage::Endian arg7) : TQImage(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
- QImageJBridge(const TQImage& arg1) : TQImage(arg1) {};
- ~QImageJBridge() {QtSupport::qtKeyDeleted(this);}
+ TQImageJBridge() : TTQImage() {};
+ TQImageJBridge(int arg1,int arg2,int arg3,int arg4,TTQImage::Endian arg5) : TTQImage(arg1,arg2,arg3,arg4,arg5) {};
+ TQImageJBridge(int arg1,int arg2,int arg3,int arg4) : TTQImage(arg1,arg2,arg3,arg4) {};
+ TQImageJBridge(int arg1,int arg2,int arg3) : TTQImage(arg1,arg2,arg3) {};
+ TQImageJBridge(const TTQSize& arg1,int arg2,int arg3,TTQImage::Endian arg4) : TTQImage(arg1,arg2,arg3,arg4) {};
+ TQImageJBridge(const TTQSize& arg1,int arg2,int arg3) : TTQImage(arg1,arg2,arg3) {};
+ TQImageJBridge(const TTQSize& arg1,int arg2) : TTQImage(arg1,arg2) {};
+ TQImageJBridge(const TTQString& arg1,const char* arg2) : TTQImage(arg1,arg2) {};
+ TQImageJBridge(const TTQString& arg1) : TTQImage(arg1) {};
+ TQImageJBridge(const TTQByteArray& arg1) : TTQImage(arg1) {};
+ TQImageJBridge(uchar* arg1,int arg2,int arg3,int arg4,TQRgb* arg5,int arg6,TTQImage::Endian arg7) : TTQImage(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
+ TQImageJBridge(const TTQImage& arg1) : TTQImage(arg1) {};
+ ~TQImageJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_allGray(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->allGray();
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->allGray();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_bitOrder(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->bitOrder();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->bitOrder();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_bytesPerLine(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->bytesPerLine();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->bytesPerLine();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_color(JNIEnv* env, jobject obj, jint i)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->color((int) i);
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->color((int) i);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertBitOrder(JNIEnv* env, jobject obj, jint arg1)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertBitOrder((TQImage::Endian) arg1)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->convertBitOrder((TTQImage::Endian) arg1)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
@@ -70,7 +70,7 @@ JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepthWithPalette__I_3II(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc)
{
int* _int_p = QtSupport::toIntPtr(env, p);
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (QRgb*) _int_p, (int) pc)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (TQRgb*) _int_p, (int) pc)), "org.kde.qt.TTQImage", TRUE);
env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
return xret;
}
@@ -79,7 +79,7 @@ JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepthWithPalette__I_3III(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc, jint cf)
{
int* _int_p = QtSupport::toIntPtr(env, p);
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (QRgb*) _int_p, (int) pc, (int) cf)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (TQRgb*) _int_p, (int) pc, (int) cf)), "org.kde.qt.TTQImage", TRUE);
env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
return xret;
}
@@ -87,126 +87,126 @@ Java_org_kde_qt_QImage_convertDepthWithPalette__I_3III(JNIEnv* env, jobject obj,
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepth__I(JNIEnv* env, jobject obj, jint arg1)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepth__II(JNIEnv* env, jobject obj, jint arg1, jint conversion_flags)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1, (int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1, (int) conversion_flags)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->copy()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__IIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__IIIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint conversion_flags)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h, (int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h, (int) conversion_flags)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->copy((const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createAlphaMask__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createAlphaMask()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->createAlphaMask()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createAlphaMask__I(JNIEnv* env, jobject obj, jint conversion_flags)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createAlphaMask((int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->createAlphaMask((int) conversion_flags)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createHeuristicMask__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createHeuristicMask()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->createHeuristicMask()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createHeuristicMask__Z(JNIEnv* env, jobject obj, jboolean clipTight)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createHeuristicMask((bool) clipTight)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->createHeuristicMask((bool) clipTight)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors, (TQImage::Endian) bitOrder);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors, (TTQImage::Endian) bitOrder);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TQImage::Endian) bitOrder);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->create((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TTQImage::Endian) bitOrder);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_depth(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->depth();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->depth();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_detach(JNIEnv* env, jobject obj)
{
- ((TQImage*) QtSupport::getQt(env, obj))->detach();
+ ((TTQImage*) QtSupport::getQt(env, obj))->detach();
return;
}
@@ -220,21 +220,21 @@ Java_org_kde_qt_QImage_dispose(JNIEnv* env, jobject obj)
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_dotsPerMeterX(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->dotsPerMeterX();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->dotsPerMeterX();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_dotsPerMeterY(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->dotsPerMeterY();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->dotsPerMeterY();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_fill(JNIEnv* env, jobject obj, jint pixel)
{
- ((TQImage*) QtSupport::getQt(env, obj))->fill((uint) pixel);
+ ((TTQImage*) QtSupport::getQt(env, obj))->fill((uint) pixel);
return;
}
@@ -242,7 +242,7 @@ JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
- delete (TQImage*)QtSupport::getQt(env, obj);
+ delete (TTQImage*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
@@ -252,22 +252,22 @@ JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_fromMimeSource(JNIEnv* env, jclass cls, jstring abs_name)
{
(void) cls;
-static TQString* _qstring_abs_name = 0;
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(QImageJBridge::fromMimeSource((const TQString&)*(TQString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name))), "org.kde.qt.TQImage", TRUE);
+static TTQString* _qstring_abs_name = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(TQImageJBridge::fromMimeSource((const TTQString&)*(TTQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name))), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_hasAlphaBuffer(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->hasAlphaBuffer();
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->hasAlphaBuffer();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_height(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->height();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->height();
return xret;
}
@@ -276,40 +276,40 @@ Java_org_kde_qt_QImage_imageFormat(JNIEnv* env, jclass cls, jstring fileName)
{
const char* _qstring;
(void) cls;
-static TQString* _qstring_fileName = 0;
- _qstring = QImageJBridge::imageFormat((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
+static TTQString* _qstring_fileName = 0;
+ _qstring = TQImageJBridge::imageFormat((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_inputFormatList(JNIEnv* env, jclass cls)
{
- TQStringList _qlist;
+ TTQStringList _qlist;
(void) cls;
- _qlist = QImageJBridge::inputFormatList();
- return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
+ _qlist = TQImageJBridge::inputFormatList();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_inputFormats(JNIEnv* env, jclass cls)
{
- TQStrList _qlist;
+ TTQStrList _qlist;
(void) cls;
- _qlist = QImageJBridge::inputFormats();
- return (jobject) QtSupport::arrayWithQStrList(env, (TQStrList*) &_qlist);
+ _qlist = TQImageJBridge::inputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TTQStrList*) &_qlist);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_invertPixels__(JNIEnv* env, jobject obj)
{
- ((TQImage*) QtSupport::getQt(env, obj))->invertPixels();
+ ((TTQImage*) QtSupport::getQt(env, obj))->invertPixels();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_invertPixels__Z(JNIEnv* env, jobject obj, jboolean invertAlpha)
{
- ((TQImage*) QtSupport::getQt(env, obj))->invertPixels((bool) invertAlpha);
+ ((TTQImage*) QtSupport::getQt(env, obj))->invertPixels((bool) invertAlpha);
return;
}
@@ -322,14 +322,14 @@ Java_org_kde_qt_QImage_isDisposed(JNIEnv* env, jobject obj)
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_isGrayscale(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->isGrayscale();
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->isGrayscale();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_isNull(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->isNull();
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->isNull();
return xret;
}
@@ -337,196 +337,196 @@ JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_jumpTable(JNIEnv* env, jobject obj)
{
uchar** _qlist;
- _qlist = ((TQImage*) QtSupport::getQt(env, obj))->jumpTable();
+ _qlist = ((TTQImage*) QtSupport::getQt(env, obj))->jumpTable();
return (jobject) _qlist;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
-static TQByteArray* _qbyteArray_data = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((TQByteArray)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
+static TTQByteArray* _qbyteArray_data = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->loadFromData((TTQByteArray)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3BLjava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray data, jstring format)
{
-static TQByteArray* _qbyteArray_data = 0;
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((TQByteArray)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+static TTQByteArray* _qbyteArray_data = 0;
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->loadFromData((TTQByteArray)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3CI(JNIEnv* env, jobject obj, jcharArray buf, jint len)
{
-static TQByteArray* _qbytearray_buf = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len);
+static TTQByteArray* _qbytearray_buf = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3CILjava_lang_String_2(JNIEnv* env, jobject obj, jcharArray buf, jint len, jstring format)
{
-static TQByteArray* _qbytearray_buf = 0;
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+static TTQByteArray* _qbytearray_buf = 0;
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
-static TQString* _qstring_fileName = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
+static TTQString* _qstring_fileName = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
-static TQString* _qstring_fileName = 0;
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+static TTQString* _qstring_fileName = 0;
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_mirror__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->mirror()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->mirror()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_mirror__ZZ(JNIEnv* env, jobject obj, jboolean horizontally, jboolean vertically)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->mirror((bool) horizontally, (bool) vertically)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->mirror((bool) horizontally, (bool) vertically)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__(JNIEnv* env, jobject obj)
+Java_org_kde_qt_QImage_newTQImage__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge());
+ QtSupport::setQt(env, obj, new TQImageJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
+Java_org_kde_qt_QImage_newTQImage__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth));
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
+Java_org_kde_qt_QImage_newTQImage__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth, (int) numColors));
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth, (int) numColors));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
+Java_org_kde_qt_QImage_newTQImage__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth, (int) numColors, (TTQImage::Endian) bitOrder));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
+Java_org_kde_qt_QImage_newTQImage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
-static TQString* _qstring_fileName = 0;
+static TTQString* _qstring_fileName = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName)));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
+Java_org_kde_qt_QImage_newTQImage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
-static TQString* _qstring_fileName = 0;
-static TQCString* _qstring_format = 0;
+static TTQString* _qstring_fileName = 0;
+static TTQCString* _qstring_format = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1)));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TTQImage::Endian) bitOrder));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage___3B(JNIEnv* env, jobject obj, jbyteArray data)
+Java_org_kde_qt_QImage_newTQImage___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
-static TQByteArray* _qbyteArray_data = 0;
+static TTQByteArray* _qbyteArray_data = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data)));
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImage_newQImage___3CIII_3III(JNIEnv* env, jobject obj, jcharArray data, jint w, jint h, jint depth, jintArray colortable, jint numColors, jint bitOrder)
+Java_org_kde_qt_QImage_newTQImage___3CIII_3III(JNIEnv* env, jobject obj, jcharArray data, jint w, jint h, jint depth, jintArray colortable, jint numColors, jint bitOrder)
{
-static TQByteArray* _qbytearray_data = 0;
+static TTQByteArray* _qbytearray_data = 0;
int* _int_colortable = QtSupport::toIntPtr(env, colortable);
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageJBridge((uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) w, (int) h, (int) depth, (QRgb*) _int_colortable, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setQt(env, obj, new TQImageJBridge((uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) w, (int) h, (int) depth, (TQRgb*) _int_colortable, (int) numColors, (TTQImage::Endian) bitOrder));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
env->SetIntArrayRegion(colortable, 0, 1, (jint *) _int_colortable);
}
@@ -536,258 +536,258 @@ static TQByteArray* _qbytearray_data = 0;
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_numBytes(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->numBytes();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->numBytes();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_numColors(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->numColors();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->numColors();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_offset(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQImage*) QtSupport::getQt(env, obj))->offset()), "org.kde.qt.TQPoint", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQPoint(((TTQImage*) QtSupport::getQt(env, obj))->offset()), "org.kde.qt.TTQPoint", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->operator==((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->operator==((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->operator!=((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->operator!=((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1));
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_outputFormatList(JNIEnv* env, jclass cls)
{
- TQStringList _qlist;
+ TTQStringList _qlist;
(void) cls;
- _qlist = QImageJBridge::outputFormatList();
- return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
+ _qlist = TQImageJBridge::outputFormatList();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_outputFormats(JNIEnv* env, jclass cls)
{
- TQStrList _qlist;
+ TTQStrList _qlist;
(void) cls;
- _qlist = QImageJBridge::outputFormats();
- return (jobject) QtSupport::arrayWithQStrList(env, (TQStrList*) &_qlist);
+ _qlist = TQImageJBridge::outputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TTQStrList*) &_qlist);
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_pixelIndex(JNIEnv* env, jobject obj, jint x, jint y)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->pixelIndex((int) x, (int) y);
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->pixelIndex((int) x, (int) y);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_pixel(JNIEnv* env, jobject obj, jint x, jint y)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->pixel((int) x, (int) y);
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->pixel((int) x, (int) y);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_rect(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQImage*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TQRect", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQRect(((TTQImage*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TTQRect", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_reset(JNIEnv* env, jobject obj)
{
- ((TQImage*) QtSupport::getQt(env, obj))->reset();
+ ((TTQImage*) QtSupport::getQt(env, obj))->reset();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
-static TQString* _qstring_fileName = 0;
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+static TTQString* _qstring_fileName = 0;
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->save((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint quality)
{
-static TQString* _qstring_fileName = 0;
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
+static TTQString* _qstring_fileName = 0;
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->save((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject device, jstring format)
{
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->save((TTQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject device, jstring format, jint quality)
{
-static TQCString* _qstring_format = 0;
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
+static TTQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->save((TTQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scaleHeight(JNIEnv* env, jobject obj, jint h)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scaleHeight((int) h)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scaleHeight((int) h)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scaleWidth(JNIEnv* env, jobject obj, jint w)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scaleWidth((int) w)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scaleWidth((int) w)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__II(JNIEnv* env, jobject obj, jint w, jint h)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (TTQImage::ScaleMode) mode)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scale((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s), (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->scale((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, s), (TTQImage::ScaleMode) mode)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setAlphaBuffer(JNIEnv* env, jobject obj, jboolean arg1)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setAlphaBuffer((bool) arg1);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setAlphaBuffer((bool) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setColor(JNIEnv* env, jobject obj, jint i, jint c)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setColor((int) i, (QRgb) c);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setColor((int) i, (TQRgb) c);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setDotsPerMeterX(JNIEnv* env, jobject obj, jint arg1)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterX((int) arg1);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterX((int) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setDotsPerMeterY(JNIEnv* env, jobject obj, jint arg1)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterY((int) arg1);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterY((int) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setNumColors(JNIEnv* env, jobject obj, jint arg1)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setNumColors((int) arg1);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setNumColors((int) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setOffset(JNIEnv* env, jobject obj, jobject arg1)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setOffset((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
+ ((TTQImage*) QtSupport::getQt(env, obj))->setOffset((const TTQPoint&)*(const TTQPoint*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setPixel(JNIEnv* env, jobject obj, jint x, jint y, jint index_or_rgb)
{
- ((TQImage*) QtSupport::getQt(env, obj))->setPixel((int) x, (int) y, (uint) index_or_rgb);
+ ((TTQImage*) QtSupport::getQt(env, obj))->setPixel((int) x, (int) y, (uint) index_or_rgb);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setText(JNIEnv* env, jobject obj, jstring key, jstring lang, jstring arg3)
{
-static TQCString* _qstring_key = 0;
-static TQCString* _qstring_lang = 0;
-static TQString* _qstring_arg3 = 0;
- ((TQImage*) QtSupport::getQt(env, obj))->setText((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang), (const TQString&)*(TQString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
+static TTQCString* _qstring_key = 0;
+static TTQCString* _qstring_lang = 0;
+static TTQString* _qstring_arg3 = 0;
+ ((TTQImage*) QtSupport::getQt(env, obj))->setText((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3));
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_size(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQImage*) QtSupport::getQt(env, obj))->size()), "org.kde.qt.TQSize", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQSize(((TTQImage*) QtSupport::getQt(env, obj))->size()), "org.kde.qt.TTQSize", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__II(JNIEnv* env, jobject obj, jint w, jint h)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h, (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h, (TTQImage::ScaleMode) mode)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->smoothScale((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s), (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->smoothScale((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, s), (TTQImage::ScaleMode) mode)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_swapRGB(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->swapRGB()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->swapRGB()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
@@ -796,7 +796,7 @@ Java_org_kde_qt_QImage_systemBitOrder(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
- jint xret = (jint) QImageJBridge::systemBitOrder();
+ jint xret = (jint) TQImageJBridge::systemBitOrder();
return xret;
}
@@ -805,71 +805,71 @@ Java_org_kde_qt_QImage_systemByteOrder(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
- jint xret = (jint) QImageJBridge::systemByteOrder();
+ jint xret = (jint) TQImageJBridge::systemByteOrder();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_textKeys(JNIEnv* env, jobject obj)
{
- TQStringList _qlist;
- _qlist = ((TQImage*) QtSupport::getQt(env, obj))->textKeys();
- return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
+ TTQStringList _qlist;
+ _qlist = ((TTQImage*) QtSupport::getQt(env, obj))->textKeys();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_textLanguages(JNIEnv* env, jobject obj)
{
- TQStringList _qlist;
- _qlist = ((TQImage*) QtSupport::getQt(env, obj))->textLanguages();
- return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
+ TTQStringList _qlist;
+ _qlist = ((TTQImage*) QtSupport::getQt(env, obj))->textLanguages();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
- TQString _qstring;
-static TQCString* _qstring_key = 0;
- _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key));
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+static TTQCString* _qstring_key = 0;
+ _qstring = ((TTQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key));
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key, jstring lang)
{
- TQString _qstring;
-static TQCString* _qstring_key = 0;
-static TQCString* _qstring_lang = 0;
- _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang));
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+static TTQCString* _qstring_key = 0;
+static TTQCString* _qstring_lang = 0;
+ _qstring = ((TTQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang));
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Lorg_kde_qt_QImageTextKeyLang_2(JNIEnv* env, jobject obj, jobject arg1)
{
- TQString _qstring;
- _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const TQImageTextKeyLang&)*(const TQImageTextKeyLang*) QtSupport::getQt(env, arg1));
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+ _qstring = ((TTQImage*) QtSupport::getQt(env, obj))->text((const TTQImageTextKeyLang&)*(const TTQImageTextKeyLang*) QtSupport::getQt(env, arg1));
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_valid(JNIEnv* env, jobject obj, jint x, jint y)
{
- jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->valid((int) x, (int) y);
+ jboolean xret = (jboolean) ((TTQImage*) QtSupport::getQt(env, obj))->valid((int) x, (int) y);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_width(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->width();
+ jint xret = (jint) ((TTQImage*) QtSupport::getQt(env, obj))->width();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_xForm(JNIEnv* env, jobject obj, jobject matrix)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->xForm((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, matrix))), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TTQImage*) QtSupport::getQt(env, obj))->xForm((const TTQWMatrix&)*(const TTQWMatrix*) QtSupport::getQt(env, matrix))), "org.kde.qt.TTQImage", TRUE);
return xret;
}
@@ -877,8 +877,8 @@ JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QImage_bits(JNIEnv *env, jobject obj)
{
static uchar * ptr = 0;
- ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->bits();
- int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numBytes();
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->bits();
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numBytes();
jbyteArray result = env->NewByteArray(len);
env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
return result;
@@ -888,8 +888,8 @@ JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QImage_scanLine(JNIEnv *env, jobject obj, jint arg1)
{
static uchar * ptr = 0;
- ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->scanLine(arg1);
- int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numBytes() / ((QImageJBridge*) QtSupport::getQt(env, obj))->height();
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->scanLine(arg1);
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numBytes() / ((TQImageJBridge*) QtSupport::getQt(env, obj))->height();
jbyteArray result = env->NewByteArray(len);
env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
return result;
@@ -898,9 +898,9 @@ static uchar * ptr = 0;
JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QImage_colorTable(JNIEnv *env, jobject obj)
{
-static QRgb * ptr = 0;
- ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->colorTable();
- int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numColors();
+static TQRgb * ptr = 0;
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->colorTable();
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numColors();
jintArray result = env->NewIntArray(len);
env->SetIntArrayRegion(result, 0, len, (jint *) ptr);
return result;