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.
92 lines
2.4 KiB
92 lines
2.4 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
15 years ago
|
#include <tqstring.h>
|
||
|
#include <tqevent.h>
|
||
15 years ago
|
|
||
|
#include <qtjava/QtSupport.h>
|
||
13 years ago
|
#include <qtjava/TQIMEvent.h>
|
||
15 years ago
|
|
||
13 years ago
|
class TQIMEventJBridge : public TQIMEvent
|
||
15 years ago
|
{
|
||
|
public:
|
||
13 years ago
|
TQIMEventJBridge(TQEvent::Type arg1,const TQString& arg2,int arg3) : TQIMEvent(arg1,arg2,arg3) {};
|
||
13 years ago
|
~TQIMEventJBridge() {QtSupport::qtKeyDeleted(this);}
|
||
15 years ago
|
};
|
||
|
|
||
|
JNIEXPORT void JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_accept(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
((TQIMEvent*) QtSupport::getQt(env, obj))->accept();
|
||
15 years ago
|
return;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT jint JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_cursorPos(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
jint xret = (jint) ((TQIMEvent*) QtSupport::getQt(env, obj))->cursorPos();
|
||
15 years ago
|
return xret;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT void JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_dispose(JNIEnv* env, jobject obj)
|
||
|
{
|
||
|
Java_org_kde_qt_QIMEvent_finalize(env, obj);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT void JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_finalize(JNIEnv* env, jobject obj)
|
||
|
{
|
||
|
if (QtSupport::allocatedInJavaWorld(env, obj)) {
|
||
13 years ago
|
delete (TQIMEvent*)QtSupport::getQt(env, obj);
|
||
15 years ago
|
QtSupport::setQt(env, obj, 0);
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT void JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_ignore(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
((TQIMEvent*) QtSupport::getQt(env, obj))->ignore();
|
||
15 years ago
|
return;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT jboolean JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_isAccepted(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
jboolean xret = (jboolean) ((TQIMEvent*) QtSupport::getQt(env, obj))->isAccepted();
|
||
15 years ago
|
return xret;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT jboolean JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_isDisposed(JNIEnv* env, jobject obj)
|
||
|
{
|
||
|
return (QtSupport::getQt(env, obj) == 0);
|
||
|
}
|
||
|
|
||
|
JNIEXPORT void JNICALL
|
||
13 years ago
|
Java_org_kde_qt_QIMEvent_newTQIMEvent(JNIEnv* env, jobject obj, jint type, jstring text, jint cursorPosition)
|
||
15 years ago
|
{
|
||
13 years ago
|
static TQString* _qstring_text = 0;
|
||
15 years ago
|
if (QtSupport::getQt(env, obj) == 0) {
|
||
13 years ago
|
QtSupport::setQt(env, obj, new TQIMEventJBridge((TQEvent::Type) type, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) cursorPosition));
|
||
15 years ago
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT jint JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_selectionLength(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
jint xret = (jint) ((TQIMEvent*) QtSupport::getQt(env, obj))->selectionLength();
|
||
15 years ago
|
return xret;
|
||
|
}
|
||
|
|
||
|
JNIEXPORT jstring JNICALL
|
||
|
Java_org_kde_qt_QIMEvent_text(JNIEnv* env, jobject obj)
|
||
|
{
|
||
13 years ago
|
TQString _qstring;
|
||
|
_qstring = ((TQIMEvent*) QtSupport::getQt(env, obj))->text();
|
||
13 years ago
|
return QtSupport::fromTQString(env, &_qstring);
|
||
15 years ago
|
}
|
||
|
|