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/kdejava/koala/kdejava/KShortcut.cpp

304 lines
10 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqkeysequence.h>
#include <kshortcut.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KShortcut.h>
class KShortcutJBridge : public KShortcut
{
public:
KShortcutJBridge() : KShortcut() {};
KShortcutJBridge(int arg1) : KShortcut(arg1) {};
KShortcutJBridge(const TQKeySequence& arg1) : KShortcut(arg1) {};
KShortcutJBridge(const KKey& arg1) : KShortcut(arg1) {};
KShortcutJBridge(const KKeySequence& arg1) : KShortcut(arg1) {};
KShortcutJBridge(const KShortcut& arg1) : KShortcut(arg1) {};
KShortcutJBridge(const char* arg1) : KShortcut(arg1) {};
~KShortcutJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_append__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->append((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_append__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject spec)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->append((const KKey&)*(const KKey*) QtSupport::getQt(env, spec));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_append__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject cut)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->append((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, cut));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_clear(JNIEnv* env, jobject obj)
{
((KShortcut*) QtSupport::getQt(env, obj))->clear();
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcut_compare(JNIEnv* env, jobject obj, jobject shortcut)
{
jint xret = (jint) ((KShortcut*) QtSupport::getQt(env, obj))->compare((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_contains__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->contains((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_contains__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject key)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->contains((const KKey&)*(const KKey*) QtSupport::getQt(env, key));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcut_count(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KShortcut*) QtSupport::getQt(env, obj))->count();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_koala_KShortcut_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (KShortcut*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__I(JNIEnv* env, jobject obj, jint keyQt)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((int) keyQt);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring shortcut)
{
static TQString* _qstring_shortcut = 0;
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const TQString&)*(TQString*) QtSupport::toTQString(env, shortcut, &_qstring_shortcut));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject key)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const KKey&)*(const KKey*) QtSupport::getQt(env, key));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject shortcut)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Lorg_kde_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, keySeq));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_isNull(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->isNull();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcut_keyCodeQt(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KShortcut*) QtSupport::getQt(env, obj))->keyCodeQt();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__I(JNIEnv* env, jobject obj, jint keyQt)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((int) keyQt));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring shortcut)
{
static TQCString* _qstring_shortcut = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((const char*) QtSupport::toCharString(env, shortcut, &_qstring_shortcut)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject key)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((const KKey&)*(const KKey*) QtSupport::getQt(env, key)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject shortcut)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Lorg_kde_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KShortcutJBridge((const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, keySeq)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcut_nil(JNIEnv* env, jclass cls)
{
(void) cls;
jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &KShortcutJBridge::null(), "org.kde.koala.KShortcut");
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_op_1equals(JNIEnv* env, jobject obj, jobject cut)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->operator==((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, cut));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_op_1lt(JNIEnv* env, jobject obj, jobject cut)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->operator<((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, cut));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_op_1not_1equals(JNIEnv* env, jobject obj, jobject cut)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->operator!=((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, cut));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_remove(JNIEnv* env, jobject obj, jobject keySeq)
{
((KShortcut*) QtSupport::getQt(env, obj))->remove((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
return;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcut_seq(JNIEnv* env, jobject obj, jint i)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)(KKeySequence *) &((KShortcut*) QtSupport::getQt(env, obj))->seq((uint) i), "org.kde.koala.KKeySequence");
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_setSeq(JNIEnv* env, jobject obj, jint i, jobject keySeq)
{
jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->setSeq((uint) i, (const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcut_toStringInternal__(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KShortcut*) QtSupport::getQt(env, obj))->toStringInternal();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcut_toStringInternal__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject pcutDefault)
{
TQString _qstring;
_qstring = ((KShortcut*) QtSupport::getQt(env, obj))->toStringInternal((const KShortcut*) QtSupport::getQt(env, pcutDefault));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcut_toString(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KShortcut*) QtSupport::getQt(env, obj))->toString();
return QtSupport::fromTQString(env, &_qstring);
}