summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QImageIO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QImageIO.cpp')
-rw-r--r--qtjava/javalib/qtjava/QImageIO.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/qtjava/javalib/qtjava/QImageIO.cpp b/qtjava/javalib/qtjava/QImageIO.cpp
index e3f51aa4..df4d2319 100644
--- a/qtjava/javalib/qtjava/QImageIO.cpp
+++ b/qtjava/javalib/qtjava/QImageIO.cpp
@@ -4,23 +4,23 @@
#include <tqimage.h>
#include <qtjava/QtSupport.h>
-#include <qtjava/QImageIO.h>
+#include <qtjava/TQImageIO.h>
-class QImageIOJBridge : public QImageIO
+class TQImageIOJBridge : public TQImageIO
{
public:
- QImageIOJBridge() : TQImageIO() {};
- QImageIOJBridge(TQIODevice* arg1,const char* arg2) : TQImageIO(arg1,arg2) {};
- QImageIOJBridge(const TQString& arg1,const char* arg2) : TQImageIO(arg1,arg2) {};
- ~QImageIOJBridge() {QtSupport::qtKeyDeleted(this);}
+ TQImageIOJBridge() : TTQImageIO() {};
+ TQImageIOJBridge(TTQIODevice* arg1,const char* arg2) : TTQImageIO(arg1,arg2) {};
+ TQImageIOJBridge(const TTQString& arg1,const char* arg2) : TTQImageIO(arg1,arg2) {};
+ ~TQImageIOJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_description(JNIEnv* env, jobject obj)
{
- TQString _qstring;
- _qstring = ((TQImageIO*) QtSupport::getQt(env, obj))->description();
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+ _qstring = ((TTQImageIO*) QtSupport::getQt(env, obj))->description();
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
@@ -33,16 +33,16 @@ Java_org_kde_qt_QImageIO_dispose(JNIEnv* env, jobject obj)
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_fileName(JNIEnv* env, jobject obj)
{
- TQString _qstring;
- _qstring = ((TQImageIO*) QtSupport::getQt(env, obj))->fileName();
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+ _qstring = ((TTQImageIO*) QtSupport::getQt(env, obj))->fileName();
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
- delete (TQImageIO*)QtSupport::getQt(env, obj);
+ delete (TTQImageIO*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
@@ -52,14 +52,14 @@ JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_format(JNIEnv* env, jobject obj)
{
const char* _qstring;
- _qstring = ((TQImageIO*) QtSupport::getQt(env, obj))->format();
+ _qstring = ((TTQImageIO*) QtSupport::getQt(env, obj))->format();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jfloat JNICALL
Java_org_kde_qt_QImageIO_gamma(JNIEnv* env, jobject obj)
{
- jfloat xret = (jfloat) ((TQImageIO*) QtSupport::getQt(env, obj))->gamma();
+ jfloat xret = (jfloat) ((TTQImageIO*) QtSupport::getQt(env, obj))->gamma();
return xret;
}
@@ -68,8 +68,8 @@ Java_org_kde_qt_QImageIO_imageFormat__Ljava_lang_String_2(JNIEnv* env, jclass cl
{
const char* _qstring;
(void) cls;
-static TQString* _qstring_fileName = 0;
- _qstring = QImageIOJBridge::imageFormat((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
+static TTQString* _qstring_fileName = 0;
+ _qstring = TQImageIOJBridge::imageFormat((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return QtSupport::fromCharString(env, (char *) _qstring);
}
@@ -78,30 +78,30 @@ Java_org_kde_qt_QImageIO_imageFormat__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* e
{
const char* _qstring;
(void) cls;
- _qstring = QImageIOJBridge::imageFormat((TQIODevice*) QtSupport::getQt(env, arg1));
+ _qstring = TQImageIOJBridge::imageFormat((TTQIODevice*) QtSupport::getQt(env, arg1));
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_image(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)(TQImage *) &((TQImageIO*) QtSupport::getQt(env, obj))->image(), "org.kde.qt.TQImage");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQImage *) &((TTQImageIO*) QtSupport::getQt(env, obj))->image(), "org.kde.qt.TTQImage");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_inputFormats(JNIEnv* env, jclass cls)
{
- TQStrList _qlist;
+ TTQStrList _qlist;
(void) cls;
- _qlist = QImageIOJBridge::inputFormats();
- return (jobject) QtSupport::arrayWithQStrList(env, (TQStrList*) &_qlist);
+ _qlist = TQImageIOJBridge::inputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TTQStrList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_ioDevice(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((TQImageIO*) QtSupport::getQt(env, obj))->ioDevice(), "org.kde.qt.QIODeviceInterface");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQImageIO*) QtSupport::getQt(env, obj))->ioDevice(), "org.kde.qt.TQIODeviceInterface");
return xret;
}
@@ -112,33 +112,33 @@ Java_org_kde_qt_QImageIO_isDisposed(JNIEnv* env, jobject obj)
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImageIO_newQImageIO__(JNIEnv* env, jobject obj)
+Java_org_kde_qt_QImageIO_newTQImageIO__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageIOJBridge());
+ QtSupport::setQt(env, obj, new TQImageIOJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QImageIO_newQImageIO__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
+Java_org_kde_qt_QImageIO_newTQImageIO__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 QImageIOJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
+ QtSupport::setQt(env, obj, new TQImageIOJBridge((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_QImageIO_newQImageIO__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject ioDevice, jstring format)
+Java_org_kde_qt_QImageIO_newTQImageIO__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject ioDevice, jstring format)
{
-static TQCString* _qstring_format = 0;
+static TTQCString* _qstring_format = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QImageIOJBridge((TQIODevice*) QtSupport::getQt(env, ioDevice), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
+ QtSupport::setQt(env, obj, new TQImageIOJBridge((TTQIODevice*) QtSupport::getQt(env, ioDevice), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -147,112 +147,112 @@ static TQCString* _qstring_format = 0;
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_outputFormats(JNIEnv* env, jclass cls)
{
- TQStrList _qlist;
+ TTQStrList _qlist;
(void) cls;
- _qlist = QImageIOJBridge::outputFormats();
- return (jobject) QtSupport::arrayWithQStrList(env, (TQStrList*) &_qlist);
+ _qlist = TQImageIOJBridge::outputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TTQStrList*) &_qlist);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_parameters(JNIEnv* env, jobject obj)
{
const char* _qstring;
- _qstring = ((TQImageIO*) QtSupport::getQt(env, obj))->parameters();
+ _qstring = ((TTQImageIO*) QtSupport::getQt(env, obj))->parameters();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageIO_quality(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImageIO*) QtSupport::getQt(env, obj))->quality();
+ jint xret = (jint) ((TTQImageIO*) QtSupport::getQt(env, obj))->quality();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImageIO_read(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImageIO*) QtSupport::getQt(env, obj))->read();
+ jboolean xret = (jboolean) ((TTQImageIO*) QtSupport::getQt(env, obj))->read();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setDescription(JNIEnv* env, jobject obj, jstring arg1)
{
-static TQString* _qstring_arg1 = 0;
- ((TQImageIO*) QtSupport::getQt(env, obj))->setDescription((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
+static TTQString* _qstring_arg1 = 0;
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setDescription((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setFileName(JNIEnv* env, jobject obj, jstring arg1)
{
-static TQString* _qstring_arg1 = 0;
- ((TQImageIO*) QtSupport::getQt(env, obj))->setFileName((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
+static TTQString* _qstring_arg1 = 0;
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setFileName((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setFormat(JNIEnv* env, jobject obj, jstring arg1)
{
-static TQCString* _qstring_arg1 = 0;
- ((TQImageIO*) QtSupport::getQt(env, obj))->setFormat((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
+static TTQCString* _qstring_arg1 = 0;
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setFormat((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setGamma(JNIEnv* env, jobject obj, jfloat arg1)
{
- ((TQImageIO*) QtSupport::getQt(env, obj))->setGamma((float) arg1);
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setGamma((float) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setIODevice(JNIEnv* env, jobject obj, jobject arg1)
{
- ((TQImageIO*) QtSupport::getQt(env, obj))->setIODevice((TQIODevice*) QtSupport::getQt(env, arg1));
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setIODevice((TTQIODevice*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setImage(JNIEnv* env, jobject obj, jobject arg1)
{
- ((TQImageIO*) QtSupport::getQt(env, obj))->setImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setImage((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setParameters(JNIEnv* env, jobject obj, jstring arg1)
{
-static TQCString* _qstring_arg1 = 0;
- ((TQImageIO*) QtSupport::getQt(env, obj))->setParameters((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
+static TTQCString* _qstring_arg1 = 0;
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setParameters((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setQuality(JNIEnv* env, jobject obj, jint arg1)
{
- ((TQImageIO*) QtSupport::getQt(env, obj))->setQuality((int) arg1);
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setQuality((int) arg1);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setStatus(JNIEnv* env, jobject obj, jint arg1)
{
- ((TQImageIO*) QtSupport::getQt(env, obj))->setStatus((int) arg1);
+ ((TTQImageIO*) QtSupport::getQt(env, obj))->setStatus((int) arg1);
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageIO_status(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TQImageIO*) QtSupport::getQt(env, obj))->status();
+ jint xret = (jint) ((TTQImageIO*) QtSupport::getQt(env, obj))->status();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImageIO_write(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TQImageIO*) QtSupport::getQt(env, obj))->write();
+ jboolean xret = (jboolean) ((TTQImageIO*) QtSupport::getQt(env, obj))->write();
return xret;
}