diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /qtjava/javalib/qtjava/QApplication.cpp | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtjava/javalib/qtjava/QApplication.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QApplication.cpp | 1090 |
1 files changed, 1090 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QApplication.cpp b/qtjava/javalib/qtjava/QApplication.cpp new file mode 100644 index 00000000..b32cdd7d --- /dev/null +++ b/qtjava/javalib/qtjava/QApplication.cpp @@ -0,0 +1,1090 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <qsize.h> +#include <qcursor.h> +#include <qstyle.h> +#include <qsessionmanager.h> +#include <qfont.h> +#include <qapplication.h> +#include <qstring.h> +#include <qstringlist.h> +#include <qpoint.h> +#include <qfontmetrics.h> +#include <qcolor.h> +#include <qpalette.h> +#include <qnamespace.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/QApplication.h> + +class QApplicationJBridge : public QApplication +{ +public: + QApplicationJBridge(int& arg1,char** arg2) : QApplication(arg1,arg2) {}; + QApplicationJBridge(int& arg1,char** arg2,bool arg3) : QApplication(arg1,arg2,arg3) {}; + QApplicationJBridge(int& arg1,char** arg2,QApplication::Type arg3) : QApplication(arg1,arg2,arg3) {}; + bool protected_event(QEvent* arg1) { + return (bool) QApplication::event(arg1); + } + ~QApplicationJBridge() {QtSupport::qtKeyDeleted(this);} + void commitData(QSessionManager& arg1) { + if (!QtSupport::eventDelegate(this,"commitData",(void*)&arg1,"org.kde.qt.QSessionManager")) { + QApplication::commitData(arg1); + } + return; + } + void processOneEvent() { + if (!QtSupport::voidDelegate(this,"org.kde.qt.QApplication","processOneEvent")) { + QApplication::processOneEvent(); + } + return; + } + void removeChild(QObject* arg1) { + if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) { + QObject::removeChild(arg1); + } + return; + } + void polish(QWidget* arg1) { + if (!QtSupport::eventDelegate(this,"polish",(void*)arg1,"org.kde.qt.QWidget")) { + QApplication::polish(arg1); + } + return; + } + void customEvent(QCustomEvent* arg1) { + if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) { + QObject::customEvent(arg1); + } + return; + } + void timerEvent(QTimerEvent* arg1) { + if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) { + QObject::timerEvent(arg1); + } + return; + } + void childEvent(QChildEvent* arg1) { + if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) { + QObject::childEvent(arg1); + } + return; + } + void setMainWidget(QWidget* arg1) { + if (!QtSupport::eventDelegate(this,"setMainWidget",(void*)arg1,"org.kde.qt.QWidget")) { + QApplication::setMainWidget(arg1); + } + return; + } + void saveState(QSessionManager& arg1) { + if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.kde.qt.QSessionManager")) { + QApplication::saveState(arg1); + } + return; + } + void insertChild(QObject* arg1) { + if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) { + QObject::insertChild(arg1); + } + return; + } + bool eventFilter(QObject* object,QEvent* event) { + if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QApplication",object,event)) { + return QObject::eventFilter(object,event); + } else { + return TRUE; + } + } +}; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_aboutQt(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->aboutQt(); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_activeModalWidget(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::activeModalWidget(), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_activePopupWidget(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::activePopupWidget(), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_activeWindow(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QApplication*) QtSupport::getQt(env, obj))->activeWindow(), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_addLibraryPath(JNIEnv* env, jclass cls, jstring arg1) +{ + (void) cls; +static QString* _qstring_arg1 = 0; + QApplicationJBridge::addLibraryPath((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_allWidgets(JNIEnv* env, jclass cls) +{ + QWidgetList* _qlist; + (void) cls; + _qlist = QApplicationJBridge::allWidgets(); + return (jobject) QtSupport::arrayWithQWidgetList(env, (QWidgetList*) _qlist); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_applicationDirPath(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->applicationDirPath(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_applicationFilePath(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->applicationFilePath(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_beep(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::beep(); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_className(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->className(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_clipboard(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::clipboard(), "org.kde.qt.QClipboard"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_closeAllWindows(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->closeAllWindows(); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_closingDown(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::closingDown(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_colorMode(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::colorMode(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_colorSpec(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::colorSpec(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_commitData(JNIEnv* env, jobject obj, jobject sm) +{ + ((QApplication*) QtSupport::getQt(env, obj))->commitData((QSessionManager&)*(QSessionManager*) QtSupport::getQt(env, sm)); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_cursorFlashTime(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::cursorFlashTime(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_defaultCodec(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QApplication*) QtSupport::getQt(env, obj))->defaultCodec(), "org.kde.qt.QTextCodec"); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_desktopSettingsAware(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::desktopSettingsAware(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_desktop(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::desktop(), "org.kde.qt.QDesktopWidget"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QApplication_finalize(env, obj); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_doubleClickInterval(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::doubleClickInterval(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_enter_1loop(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QApplication*) QtSupport::getQt(env, obj))->enter_loop(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_eventLoop(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::eventLoop(), "org.kde.qt.QEventLoop"); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_event(JNIEnv* env, jobject obj, jobject arg1) +{ + jboolean xret = (jboolean) ((QApplicationJBridge*) QtSupport::getQt(env, obj))->protected_event((QEvent*) QtSupport::getQt(env, arg1)); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_exec(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QApplication*) QtSupport::getQt(env, obj))->exec(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_exit_1loop(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->exit_loop(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_exit__(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::exit(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_exit__I(JNIEnv* env, jclass cls, jint retcode) +{ + (void) cls; + (void) env; + QApplicationJBridge::exit((int) retcode); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj) && ((QApplication*)QtSupport::getQt(env, obj))->parent() == 0) { + delete (QApplication*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_flushX(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::flushX(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_flush(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::flush(); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_focusWidget(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QApplication*) QtSupport::getQt(env, obj))->focusWidget(), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_fontMetrics(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFontMetrics(QApplicationJBridge::fontMetrics()), "org.kde.qt.QFontMetrics", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_font__(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QApplicationJBridge::font()), "org.kde.qt.QFont", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_font__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QApplicationJBridge::font((const QWidget*) QtSupport::getQt(env, arg1))), "org.kde.qt.QFont", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_globalStrut(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(QApplicationJBridge::globalStrut()), "org.kde.qt.QSize", TRUE); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_hasGlobalMouseTracking(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::hasGlobalMouseTracking(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_hasPendingEvents(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QApplication*) QtSupport::getQt(env, obj))->hasPendingEvents(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_horizontalAlignment(JNIEnv* env, jclass cls, jint align) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::horizontalAlignment((int) align); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_installTranslator(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QApplication*) QtSupport::getQt(env, obj))->installTranslator((QTranslator*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_isEffectEnabled(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::isEffectEnabled((Qt::UIEffect) arg1); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_isSessionRestored(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QApplication*) QtSupport::getQt(env, obj))->isSessionRestored(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_libraryPaths(JNIEnv* env, jclass cls) +{ + QStringList _qlist; + (void) cls; + _qlist = QApplicationJBridge::libraryPaths(); + return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist); +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_loopLevel(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QApplication*) QtSupport::getQt(env, obj))->loopLevel(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_mainWidget(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QApplication*) QtSupport::getQt(env, obj))->mainWidget(), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_metaObject(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QApplication*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject"); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_notify(JNIEnv* env, jobject obj, jobject arg1, jobject arg2) +{ + jboolean xret = (jboolean) ((QApplication*) QtSupport::getQt(env, obj))->notify((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2)); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_overrideCursor(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::overrideCursor(), "org.kde.qt.QCursor"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_palette__(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QPalette(QApplicationJBridge::palette()), "org.kde.qt.QPalette", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_palette__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QPalette(QApplicationJBridge::palette((const QWidget*) QtSupport::getQt(env, arg1))), "org.kde.qt.QPalette", TRUE); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_polish(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QApplication*) QtSupport::getQt(env, obj))->polish((QWidget*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_postEvent(JNIEnv* env, jclass cls, jobject receiver, jobject event) +{ + (void) cls; + QApplicationJBridge::postEvent((QObject*) QtSupport::getQt(env, receiver), (QEvent*) QtSupport::getQt(env, event)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_processEvents__(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->processEvents(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_processEvents__I(JNIEnv* env, jobject obj, jint maxtime) +{ + ((QApplication*) QtSupport::getQt(env, obj))->processEvents((int) maxtime); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_processOneEvent(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->processOneEvent(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_quit(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->quit(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_removeLibraryPath(JNIEnv* env, jclass cls, jstring arg1) +{ + (void) cls; +static QString* _qstring_arg1 = 0; + QApplicationJBridge::removeLibraryPath((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_removePostedEvents(JNIEnv* env, jclass cls, jobject receiver) +{ + (void) cls; + QApplicationJBridge::removePostedEvents((QObject*) QtSupport::getQt(env, receiver)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_removeTranslator(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QApplication*) QtSupport::getQt(env, obj))->removeTranslator((QTranslator*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_restoreOverrideCursor(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::restoreOverrideCursor(); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_reverseLayout(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::reverseLayout(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_saveState(JNIEnv* env, jobject obj, jobject sm) +{ + ((QApplication*) QtSupport::getQt(env, obj))->saveState((QSessionManager&)*(QSessionManager*) QtSupport::getQt(env, sm)); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_sendEvent(JNIEnv* env, jclass cls, jobject receiver, jobject event) +{ + (void) cls; + jboolean xret = (jboolean) QApplicationJBridge::sendEvent((QObject*) QtSupport::getQt(env, receiver), (QEvent*) QtSupport::getQt(env, event)); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_sendPostedEvents__(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::sendPostedEvents(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_sendPostedEvents__Lorg_kde_qt_QObject_2I(JNIEnv* env, jclass cls, jobject receiver, jint event_type) +{ + (void) cls; + QApplicationJBridge::sendPostedEvents((QObject*) QtSupport::getQt(env, receiver), (int) event_type); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_sessionId(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->sessionId(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_sessionKey(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->sessionKey(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setColorMode(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setColorMode((QApplication::ColorMode) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setColorSpec(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setColorSpec((int) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setCursorFlashTime(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setCursorFlashTime((int) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setDefaultCodec(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QApplication*) QtSupport::getQt(env, obj))->setDefaultCodec((QTextCodec*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setDesktopSettingsAware(JNIEnv* env, jclass cls, jboolean arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setDesktopSettingsAware((bool) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setDoubleClickInterval(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setDoubleClickInterval((int) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setEffectEnabled__I(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setEffectEnabled((Qt::UIEffect) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setEffectEnabled__IZ(JNIEnv* env, jclass cls, jint arg1, jboolean enable) +{ + (void) cls; + (void) env; + QApplicationJBridge::setEffectEnabled((Qt::UIEffect) arg1, (bool) enable); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setFont__Lorg_kde_qt_QFont_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + QApplicationJBridge::setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setFont__Lorg_kde_qt_QFont_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets) +{ + (void) cls; + QApplicationJBridge::setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1), (bool) informWidgets); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setFont__Lorg_kde_qt_QFont_2ZLjava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets, jstring className) +{ + (void) cls; +static QCString* _qstring_className = 0; + QApplicationJBridge::setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1), (bool) informWidgets, (const char*) QtSupport::toCharString(env, className, &_qstring_className)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setGlobalMouseTracking(JNIEnv* env, jclass cls, jboolean enable) +{ + (void) cls; + (void) env; + QApplicationJBridge::setGlobalMouseTracking((bool) enable); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setGlobalStrut(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + QApplicationJBridge::setGlobalStrut((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setLibraryPaths(JNIEnv* env, jclass cls, jobjectArray arg1) +{ + (void) cls; +static QStringList* _qlist_arg1 = 0; + QApplicationJBridge::setLibraryPaths((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg1, &_qlist_arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setMainWidget(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QApplication*) QtSupport::getQt(env, obj))->setMainWidget((QWidget*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setOverrideCursor__Lorg_kde_qt_QCursor_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + QApplicationJBridge::setOverrideCursor((const QCursor&)*(const QCursor*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setOverrideCursor__Lorg_kde_qt_QCursor_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean replace) +{ + (void) cls; + QApplicationJBridge::setOverrideCursor((const QCursor&)*(const QCursor*) QtSupport::getQt(env, arg1), (bool) replace); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setPalette__Lorg_kde_qt_QPalette_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + QApplicationJBridge::setPalette((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setPalette__Lorg_kde_qt_QPalette_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets) +{ + (void) cls; + QApplicationJBridge::setPalette((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1), (bool) informWidgets); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setPalette__Lorg_kde_qt_QPalette_2ZLjava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets, jstring className) +{ + (void) cls; +static QCString* _qstring_className = 0; + QApplicationJBridge::setPalette((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1), (bool) informWidgets, (const char*) QtSupport::toCharString(env, className, &_qstring_className)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setReverseLayout(JNIEnv* env, jclass cls, jboolean b) +{ + (void) cls; + (void) env; + QApplicationJBridge::setReverseLayout((bool) b); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setStartDragDistance(JNIEnv* env, jclass cls, jint l) +{ + (void) cls; + (void) env; + QApplicationJBridge::setStartDragDistance((int) l); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setStartDragTime(JNIEnv* env, jclass cls, jint ms) +{ + (void) cls; + (void) env; + QApplicationJBridge::setStartDragTime((int) ms); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_setStyle__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1) +{ + (void) cls; +static QString* _qstring_arg1 = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::setStyle((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)), "org.kde.qt.QStyle"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setStyle__Lorg_kde_qt_QStyle_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + QApplicationJBridge::setStyle((QStyle*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setWheelScrollLines(JNIEnv* env, jclass cls, jint arg1) +{ + (void) cls; + (void) env; + QApplicationJBridge::setWheelScrollLines((int) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_setWinStyleHighlightColor(JNIEnv* env, jclass cls, jobject c) +{ + (void) cls; + QApplicationJBridge::setWinStyleHighlightColor((const QColor&)*(const QColor*) QtSupport::getQt(env, c)); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_startDragDistance(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::startDragDistance(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_startDragTime(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::startDragTime(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QApplication_startingUp(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jboolean xret = (jboolean) QApplicationJBridge::startingUp(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_style(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)(QStyle *) &QApplicationJBridge::style(), "org.kde.qt.QStyle"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_syncX(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + QApplicationJBridge::syncX(); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_topLevelWidgets(JNIEnv* env, jclass cls) +{ + QWidgetList* _qlist; + (void) cls; + _qlist = QApplicationJBridge::topLevelWidgets(); + return (jobject) QtSupport::arrayWithQWidgetList(env, (QWidgetList*) _qlist); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; + _qstring = QApplicationJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; +static QCString* _qstring_arg2 = 0; + _qstring = QApplicationJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_translate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring key) +{ + QString _qstring; +static QCString* _qstring_context = 0; +static QCString* _qstring_key = 0; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, key, &_qstring_key)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_translate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring key, jstring comment) +{ + QString _qstring; +static QCString* _qstring_context = 0; +static QCString* _qstring_key = 0; +static QCString* _qstring_comment = 0; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QApplication_translate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring context, jstring key, jstring comment, jint encoding) +{ + QString _qstring; +static QCString* _qstring_context = 0; +static QCString* _qstring_key = 0; +static QCString* _qstring_comment = 0; + _qstring = ((QApplication*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment), (QApplication::Encoding) encoding); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_type(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QApplication*) QtSupport::getQt(env, obj))->type(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_wakeUpGuiThread(JNIEnv* env, jobject obj) +{ + ((QApplication*) QtSupport::getQt(env, obj))->wakeUpGuiThread(); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QApplication_wheelScrollLines(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) QApplicationJBridge::wheelScrollLines(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_widgetAt__II(JNIEnv* env, jclass cls, jint x, jint y) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::widgetAt((int) x, (int) y), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_widgetAt__IIZ(JNIEnv* env, jclass cls, jint x, jint y, jboolean child) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::widgetAt((int) x, (int) y, (bool) child), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_widgetAt__Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::widgetAt((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1)), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_widgetAt__Lorg_kde_qt_QPoint_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean child) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)QApplicationJBridge::widgetAt((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1), (bool) child), "org.kde.qt.QWidget"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QApplication_winStyleHighlightColor(JNIEnv* env, jclass cls) +{ + (void) cls; + jobject xret = QtSupport::objectForQtKey(env, (void*)(QColor *) &QApplicationJBridge::winStyleHighlightColor(), "org.kde.qt.QColor"); + return xret; +} + +static jobjectArray _args = 0; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_newQApplication___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray args) +{ + int argc = (int) env->GetArrayLength(args) + 1; + _args = (jobjectArray) env->NewGlobalRef(args); + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QApplicationJBridge(argc, QtSupport::toArgv(env, args))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_newQApplication___3Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobjectArray args, jboolean GUIenabled) +{ + int argc = (int) env->GetArrayLength(args) + 1; + _args = (jobjectArray) env->NewGlobalRef(args); + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QApplicationJBridge(argc, QtSupport::toArgv(env, args), (bool) GUIenabled)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QApplication_newQApplication___3Ljava_lang_String_2I(JNIEnv *env, jobject obj, jobjectArray args, jint arg1) +{ + int argc = (int) env->GetArrayLength(args) + 1; + _args = (jobjectArray) env->NewGlobalRef(args); + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QApplicationJBridge(argc, QtSupport::toArgv(env, args), (QApplication::Type) arg1)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jobjectArray JNICALL +Java_org_kde_qt_QApplication_args(JNIEnv *env, jobject obj) +{ + (void) env; + (void) obj; + return _args; +} + |