summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QClipboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QClipboard.cpp')
-rw-r--r--qtjava/javalib/qtjava/QClipboard.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/qtjava/javalib/qtjava/QClipboard.cpp b/qtjava/javalib/qtjava/QClipboard.cpp
index 1177cf5c..2983d53e 100644
--- a/qtjava/javalib/qtjava/QClipboard.cpp
+++ b/qtjava/javalib/qtjava/QClipboard.cpp
@@ -6,232 +6,232 @@
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
-#include <qtjava/QClipboard.h>
+#include <qtjava/TQClipboard.h>
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
- _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->className();
+ _qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_clear__(JNIEnv* env, jobject obj)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->clear();
+ ((TQClipboard*) QtSupport::getQt(env, obj))->clear();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_clear__I(JNIEnv* env, jobject obj, jint mode)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->clear((QClipboard::Mode) mode);
+ ((TQClipboard*) QtSupport::getQt(env, obj))->clear((TQClipboard::Mode) mode);
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_data__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->data(), "org.kde.qt.QMimeSourceInterface");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->data(), "org.kde.qt.TQMimeSourceInterface");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_data__I(JNIEnv* env, jobject obj, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->data((QClipboard::Mode) mode), "org.kde.qt.QMimeSourceInterface");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->data((TQClipboard::Mode) mode), "org.kde.qt.TQMimeSourceInterface");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_image__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((QClipboard*) QtSupport::getQt(env, obj))->image()), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TQClipboard*) QtSupport::getQt(env, obj))->image()), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_image__I(JNIEnv* env, jobject obj, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((QClipboard*) QtSupport::getQt(env, obj))->image((QClipboard::Mode) mode)), "org.kde.qt.TQImage", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQImage(((TQClipboard*) QtSupport::getQt(env, obj))->image((TQClipboard::Mode) mode)), "org.kde.qt.TTQImage", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_metaObject(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject");
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QClipboard_ownsClipboard(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->ownsClipboard();
+ jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->ownsClipboard();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QClipboard_ownsSelection(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->ownsSelection();
+ jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->ownsSelection();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_pixmap__(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((QClipboard*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.TQPixmap", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQPixmap(((TQClipboard*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.TTQPixmap", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QClipboard_pixmap__I(JNIEnv* env, jobject obj, jint mode)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((QClipboard*) QtSupport::getQt(env, obj))->pixmap((QClipboard::Mode) mode)), "org.kde.qt.TQPixmap", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQPixmap(((TQClipboard*) QtSupport::getQt(env, obj))->pixmap((TQClipboard::Mode) mode)), "org.kde.qt.TTQPixmap", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QClipboard_selectionModeEnabled(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->selectionModeEnabled();
+ jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->selectionModeEnabled();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setData__Lorg_kde_qt_QMimeSourceInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setData((TQMimeSource*) QtSupport::mimeSource(env, arg1));
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setData((TTQMimeSource*) QtSupport::mimeSource(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setData__Lorg_kde_qt_QMimeSourceInterface_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setData((TQMimeSource*) QtSupport::mimeSource(env, arg1), (QClipboard::Mode) mode);
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setData((TTQMimeSource*) QtSupport::mimeSource(env, arg1), (TQClipboard::Mode) mode);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setImage((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setImage__Lorg_kde_qt_QImage_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1), (QClipboard::Mode) mode);
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setImage((const TTQImage&)*(const TTQImage*) QtSupport::getQt(env, arg1), (TQClipboard::Mode) mode);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setPixmap__Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1));
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TTQPixmap&)*(const TTQPixmap*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setPixmap__Lorg_kde_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1), (QClipboard::Mode) mode);
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TTQPixmap&)*(const TTQPixmap*) QtSupport::getQt(env, arg1), (TQClipboard::Mode) mode);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setSelectionMode(JNIEnv* env, jobject obj, jboolean enable)
{
- ((QClipboard*) QtSupport::getQt(env, obj))->setSelectionMode((bool) enable);
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setSelectionMode((bool) enable);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setText__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
-static TQString* _qstring_arg1 = 0;
- ((QClipboard*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
+static TTQString* _qstring_arg1 = 0;
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QClipboard_setText__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint mode)
{
-static TQString* _qstring_arg1 = 0;
- ((QClipboard*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QClipboard::Mode) mode);
+static TTQString* _qstring_arg1 = 0;
+ ((TQClipboard*) QtSupport::getQt(env, obj))->setText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQClipboard::Mode) mode);
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QClipboard_supportsSelection(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->supportsSelection();
+ jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->supportsSelection();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_text__(JNIEnv* env, jobject obj)
{
- TQString _qstring;
- _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text();
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+ _qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text();
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_text__I(JNIEnv* env, jobject obj, jint mode)
{
- TQString _qstring;
- _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((QClipboard::Mode) mode);
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+ _qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TQClipboard::Mode) mode);
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_text__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject subtype)
{
- TQString _qstring;
-static TQCString* _qcstring_subtype = 0;
+ TTQString _qstring;
+static TTQCString* _qcstring_subtype = 0;
if (_qcstring_subtype == 0) {
- _qcstring_subtype = new TQCString();
+ _qcstring_subtype = new TTQCString();
}
- _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((TQCString&)*(TQCString*) _qcstring_subtype);
- QtSupport::fromQCStringToStringBuffer(env, _qcstring_subtype, subtype);
- return QtSupport::fromQString(env, &_qstring);
+ _qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TTQCString&)*(TTQCString*) _qcstring_subtype);
+ QtSupport::fromTQCStringToStringBuffer(env, _qcstring_subtype, subtype);
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_text__Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jobject subtype, jint mode)
{
- TQString _qstring;
-static TQCString* _qcstring_subtype = 0;
+ TTQString _qstring;
+static TTQCString* _qcstring_subtype = 0;
if (_qcstring_subtype == 0) {
- _qcstring_subtype = new TQCString();
+ _qcstring_subtype = new TTQCString();
}
- _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((TQCString&)*(TQCString*) _qcstring_subtype, (QClipboard::Mode) mode);
- QtSupport::fromQCStringToStringBuffer(env, _qcstring_subtype, subtype);
- return QtSupport::fromQString(env, &_qstring);
+ _qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TTQCString&)*(TTQCString*) _qcstring_subtype, (TQClipboard::Mode) mode);
+ QtSupport::fromTQCStringToStringBuffer(env, _qcstring_subtype, subtype);
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
- TQString _qstring;
+ TTQString _qstring;
(void) cls;
-static TQCString* _qstring_arg1 = 0;
- _qstring = QClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
- return QtSupport::fromQString(env, &_qstring);
+static TTQCString* _qstring_arg1 = 0;
+ _qstring = TQClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QClipboard_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
- TQString _qstring;
+ TTQString _qstring;
(void) cls;
-static TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
- _qstring = QClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
- return QtSupport::fromQString(env, &_qstring);
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _qstring_arg2 = 0;
+ _qstring = TQClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
+ return QtSupport::fromTQString(env, &_qstring);
}