You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQWhatsThis.cpp

207 lines
7.1 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqpoint.h>
#include <tqwhatsthis.h>
#include <tqfont.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQWhatsThis.h>
class TQWhatsThisJBridge : public TQWhatsThis
{
public:
TQWhatsThisJBridge(TQWidget* arg1) : TQWhatsThis(arg1) {};
~TQWhatsThisJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_add(JNIEnv* env, jclass cls, jobject arg1, jstring arg2)
{
(void) cls;
static TQString* _qstring_arg2 = 0;
TQWhatsThisJBridge::add((TQWidget*) QtSupport::getQt(env, arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_clicked(JNIEnv* env, jobject obj, jstring href)
{
static TQString* _qstring_href = 0;
jboolean xret = (jboolean) ((TQWhatsThis*) QtSupport::getQt(env, obj))->clicked((const TQString&)*(TQString*) QtSupport::toTQString(env, href, &_qstring_href));
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_display__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
(void) cls;
static TQString* _qstring_text = 0;
TQWhatsThisJBridge::display((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_display__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jstring text, jobject pos)
{
(void) cls;
static TQString* _qstring_text = 0;
TQWhatsThisJBridge::display((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_display__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jstring text, jobject pos, jobject w)
{
(void) cls;
static TQString* _qstring_text = 0;
TQWhatsThisJBridge::display((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (TQWidget*) QtSupport::getQt(env, w));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QWhatsThis_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_enterWhatsThisMode(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
TQWhatsThisJBridge::enterWhatsThisMode();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQWhatsThis*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_inWhatsThisMode(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
jboolean xret = (jboolean) TQWhatsThisJBridge::inWhatsThisMode();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_leaveWhatsThisMode__(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
TQWhatsThisJBridge::leaveWhatsThisMode();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
(void) cls;
static TQString* _qstring_arg1 = 0;
TQWhatsThisJBridge::leaveWhatsThisMode((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jstring arg1, jobject pos)
{
(void) cls;
static TQString* _qstring_arg1 = 0;
TQWhatsThisJBridge::leaveWhatsThisMode((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPoint_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jstring arg1, jobject pos, jobject w)
{
(void) cls;
static TQString* _qstring_arg1 = 0;
TQWhatsThisJBridge::leaveWhatsThisMode((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (TQWidget*) QtSupport::getQt(env, w));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_newTQWhatsThis(JNIEnv* env, jobject obj, jobject arg1)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQWhatsThisJBridge((TQWidget*) QtSupport::getQt(env, arg1)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_remove(JNIEnv* env, jclass cls, jobject arg1)
{
(void) cls;
TQWhatsThisJBridge::remove((TQWidget*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_setFont(JNIEnv* env, jclass cls, jobject font)
{
(void) cls;
TQWhatsThisJBridge::setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, font));
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_textFor__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
TQString _qstring;
(void) cls;
_qstring = TQWhatsThisJBridge::textFor((TQWidget*) QtSupport::getQt(env, arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_textFor__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1, jobject pos)
{
TQString _qstring;
(void) cls;
_qstring = TQWhatsThisJBridge::textFor((TQWidget*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_textFor__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QPoint_2Z(JNIEnv* env, jclass cls, jobject arg1, jobject pos, jboolean includeParents)
{
TQString _qstring;
(void) cls;
_qstring = TQWhatsThisJBridge::textFor((TQWidget*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (bool) includeParents);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_text(JNIEnv* env, jobject obj, jobject arg1)
{
TQString _qstring;
_qstring = ((TQWhatsThis*) QtSupport::getQt(env, obj))->text((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QWhatsThis_whatsThisButton(JNIEnv* env, jclass cls, jobject parent)
{
(void) cls;
jobject xret = QtSupport::objectForQtKey(env, (void*)TQWhatsThisJBridge::whatsThisButton((TQWidget*) QtSupport::getQt(env, parent)), "org.trinitydesktop.qt.TQToolButton");
return xret;
}