//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsize.h>
#include <tqcursor.h>
#include <tqstyle.h>
#include <tqsessionmanager.h>
#include <tqfont.h>
#include <tqapplication.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqpoint.h>
#include <tqfontmetrics.h>
#include <tqcolor.h>
#include <tqpalette.h>
#include <tqnamespace.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQApplication.h>

class TQApplicationJBridge : public TQApplication
{
public:
	TQApplicationJBridge(int& arg1,char** arg2) : TQApplication(arg1,arg2) {};
	TQApplicationJBridge(int& arg1,char** arg2,bool arg3) : TQApplication(arg1,arg2,arg3) {};
	TQApplicationJBridge(int& arg1,char** arg2,TQApplication::Type arg3) : TQApplication(arg1,arg2,arg3) {};
	bool protected_event(TQEvent* arg1) {
		return (bool) TQApplication::event(arg1);
	}
	~TQApplicationJBridge() {QtSupport::qtKeyDeleted(this);}
	void commitData(TQSessionManager& arg1) {
		if (!QtSupport::eventDelegate(this,"commitData",(void*)&arg1,"org.trinitydesktop.qt.TQSessionManager")) {
			TQApplication::commitData(arg1);
		}
		return;
	}
	void processOneEvent() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQApplication","processOneEvent")) {
			TQApplication::processOneEvent();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void polish(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"polish",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQApplication::polish(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void setMainWidget(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setMainWidget",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQApplication::setMainWidget(arg1);
		}
		return;
	}
	void saveState(TQSessionManager& arg1) {
		if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.trinitydesktop.qt.TQSessionManager")) {
			TQApplication::saveState(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQApplication",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_aboutTQt(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->aboutTQt();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_activeModalWidget(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::activeModalWidget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_activePopupWidget(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::activePopupWidget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_activeWindow(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQApplication*) QtSupport::getQt(env, obj))->activeWindow(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_addLibraryPath(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	TQApplicationJBridge::addLibraryPath((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_allWidgets(JNIEnv* env, jclass cls)
{
	TQWidgetList*  _qlist;
	(void) cls;
	_qlist = TQApplicationJBridge::allWidgets();
	return (jobject) QtSupport::arrayWithTQWidgetList(env, (TQWidgetList*) _qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_applicationDirPath(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->applicationDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_applicationFilePath(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->applicationFilePath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_beep(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::beep();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_clipboard(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::clipboard(), "org.trinitydesktop.qt.TQClipboard");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_closeAllWindows(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->closeAllWindows();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_closingDown(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::closingDown();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_colorMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::colorMode();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_colorSpec(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::colorSpec();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_commitData(JNIEnv* env, jobject obj, jobject sm)
{
	((TQApplication*) QtSupport::getQt(env, obj))->commitData((TQSessionManager&)*(TQSessionManager*) QtSupport::getQt(env, sm));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_cursorFlashTime(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::cursorFlashTime();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_defaultCodec(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQApplication*) QtSupport::getQt(env, obj))->defaultCodec(), "org.trinitydesktop.qt.TQTextCodec");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_desktopSettingsAware(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::desktopSettingsAware();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_desktop(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::desktop(), "org.trinitydesktop.qt.TQDesktopWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QApplication_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_doubleClickInterval(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::doubleClickInterval();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_enter_1loop(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQApplication*) QtSupport::getQt(env, obj))->enter_loop();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_eventLoop(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::eventLoop(), "org.trinitydesktop.qt.TQEventLoop");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_event(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQApplicationJBridge*) QtSupport::getQt(env, obj))->protected_event((TQEvent*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_exec(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQApplication*) QtSupport::getQt(env, obj))->exec();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_exit_1loop(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->exit_loop();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_exit__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::exit();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_exit__I(JNIEnv* env, jclass cls, jint retcode)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::exit((int) retcode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQApplication*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (TQApplication*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_flushX(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::flushX();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_flush(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::flush();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_focusWidget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQApplication*) QtSupport::getQt(env, obj))->focusWidget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_fontMetrics(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFontMetrics(TQApplicationJBridge::fontMetrics()), "org.trinitydesktop.qt.TQFontMetrics", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_font__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQApplicationJBridge::font()), "org.trinitydesktop.qt.TQFont", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_font__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQApplicationJBridge::font((const TQWidget*) QtSupport::getQt(env, arg1))), "org.trinitydesktop.qt.TQFont", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_globalStrut(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(TQApplicationJBridge::globalStrut()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_hasGlobalMouseTracking(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::hasGlobalMouseTracking();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_hasPendingEvents(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQApplication*) QtSupport::getQt(env, obj))->hasPendingEvents();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_horizontalAlignment(JNIEnv* env, jclass cls, jint align)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::horizontalAlignment((int) align);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_installTranslator(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQApplication*) QtSupport::getQt(env, obj))->installTranslator((TQTranslator*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_isEffectEnabled(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::isEffectEnabled((TQt::UIEffect) arg1);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_isSessionRestored(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQApplication*) QtSupport::getQt(env, obj))->isSessionRestored();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_libraryPaths(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TQApplicationJBridge::libraryPaths();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_loopLevel(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQApplication*) QtSupport::getQt(env, obj))->loopLevel();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_mainWidget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQApplication*) QtSupport::getQt(env, obj))->mainWidget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQApplication*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_notify(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((TQApplication*) QtSupport::getQt(env, obj))->notify((TQObject*) QtSupport::getQt(env, arg1), (TQEvent*) QtSupport::getQt(env, arg2));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_overrideCursor(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::overrideCursor(), "org.trinitydesktop.qt.TQCursor");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_palette__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPalette(TQApplicationJBridge::palette()), "org.trinitydesktop.qt.TQPalette", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_palette__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPalette(TQApplicationJBridge::palette((const TQWidget*) QtSupport::getQt(env, arg1))), "org.trinitydesktop.qt.TQPalette", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_polish(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQApplication*) QtSupport::getQt(env, obj))->polish((TQWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_postEvent(JNIEnv* env, jclass cls, jobject receiver, jobject event)
{
	(void) cls;
	TQApplicationJBridge::postEvent((TQObject*) QtSupport::getQt(env, receiver), (TQEvent*) QtSupport::getQt(env, event));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_processEvents__(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->processEvents();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_processEvents__I(JNIEnv* env, jobject obj, jint maxtime)
{
	((TQApplication*) QtSupport::getQt(env, obj))->processEvents((int) maxtime);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_processOneEvent(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->processOneEvent();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_quit(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->quit();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_removeLibraryPath(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	TQApplicationJBridge::removeLibraryPath((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_removePostedEvents(JNIEnv* env, jclass cls, jobject receiver)
{
	(void) cls;
	TQApplicationJBridge::removePostedEvents((TQObject*) QtSupport::getQt(env, receiver));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_removeTranslator(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQApplication*) QtSupport::getQt(env, obj))->removeTranslator((TQTranslator*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_restoreOverrideCursor(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::restoreOverrideCursor();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_reverseLayout(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::reverseLayout();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_saveState(JNIEnv* env, jobject obj, jobject sm)
{
	((TQApplication*) QtSupport::getQt(env, obj))->saveState((TQSessionManager&)*(TQSessionManager*) QtSupport::getQt(env, sm));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_sendEvent(JNIEnv* env, jclass cls, jobject receiver, jobject event)
{
	(void) cls;
	jboolean xret = (jboolean) TQApplicationJBridge::sendEvent((TQObject*) QtSupport::getQt(env, receiver), (TQEvent*) QtSupport::getQt(env, event));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_sendPostedEvents__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::sendPostedEvents();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_sendPostedEvents__Lorg_trinitydesktop_qt_QObject_2I(JNIEnv* env, jclass cls, jobject receiver, jint event_type)
{
	(void) cls;
	TQApplicationJBridge::sendPostedEvents((TQObject*) QtSupport::getQt(env, receiver), (int) event_type);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_sessionId(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->sessionId();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_sessionKey(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->sessionKey();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setColorMode(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setColorMode((TQApplication::ColorMode) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setColorSpec(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setColorSpec((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setCursorFlashTime(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setCursorFlashTime((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setDefaultCodec(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQApplication*) QtSupport::getQt(env, obj))->setDefaultCodec((TQTextCodec*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setDesktopSettingsAware(JNIEnv* env, jclass cls, jboolean arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setDesktopSettingsAware((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setDoubleClickInterval(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setDoubleClickInterval((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setEffectEnabled__I(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setEffectEnabled((TQt::UIEffect) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setEffectEnabled__IZ(JNIEnv* env, jclass cls, jint arg1, jboolean enable)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setEffectEnabled((TQt::UIEffect) arg1, (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setFont__Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQApplicationJBridge::setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setFont__Lorg_trinitydesktop_qt_QFont_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets)
{
	(void) cls;
	TQApplicationJBridge::setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1), (bool) informWidgets);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setFont__Lorg_trinitydesktop_qt_QFont_2ZLjava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets, jstring className)
{
	(void) cls;
static TQCString* _qstring_className = 0;
	TQApplicationJBridge::setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1), (bool) informWidgets, (const char*) QtSupport::toCharString(env, className, &_qstring_className));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setGlobalMouseTracking(JNIEnv* env, jclass cls, jboolean enable)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setGlobalMouseTracking((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setGlobalStrut(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQApplicationJBridge::setGlobalStrut((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setLibraryPaths(JNIEnv* env, jclass cls, jobjectArray arg1)
{
	(void) cls;
static TQStringList* _qlist_arg1 = 0;
	TQApplicationJBridge::setLibraryPaths((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setMainWidget(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQApplication*) QtSupport::getQt(env, obj))->setMainWidget((TQWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setOverrideCursor__Lorg_trinitydesktop_qt_QCursor_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQApplicationJBridge::setOverrideCursor((const TQCursor&)*(const TQCursor*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setOverrideCursor__Lorg_trinitydesktop_qt_QCursor_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean replace)
{
	(void) cls;
	TQApplicationJBridge::setOverrideCursor((const TQCursor&)*(const TQCursor*) QtSupport::getQt(env, arg1), (bool) replace);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setPalette__Lorg_trinitydesktop_qt_QPalette_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQApplicationJBridge::setPalette((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setPalette__Lorg_trinitydesktop_qt_QPalette_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets)
{
	(void) cls;
	TQApplicationJBridge::setPalette((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1), (bool) informWidgets);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setPalette__Lorg_trinitydesktop_qt_QPalette_2ZLjava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jboolean informWidgets, jstring className)
{
	(void) cls;
static TQCString* _qstring_className = 0;
	TQApplicationJBridge::setPalette((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1), (bool) informWidgets, (const char*) QtSupport::toCharString(env, className, &_qstring_className));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setReverseLayout(JNIEnv* env, jclass cls, jboolean b)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setReverseLayout((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setStartDragDistance(JNIEnv* env, jclass cls, jint l)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setStartDragDistance((int) l);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setStartDragTime(JNIEnv* env, jclass cls, jint ms)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setStartDragTime((int) ms);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_setStyle__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::setStyle((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1)), "org.trinitydesktop.qt.TQStyle");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setStyle__Lorg_trinitydesktop_qt_QStyle_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQApplicationJBridge::setStyle((TQStyle*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setWheelScrollLines(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::setWheelScrollLines((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_setWinStyleHighlightColor(JNIEnv* env, jclass cls, jobject c)
{
	(void) cls;
	TQApplicationJBridge::setWinStyleHighlightColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_startDragDistance(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::startDragDistance();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_startDragTime(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::startDragTime();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QApplication_startingUp(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQApplicationJBridge::startingUp();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_style(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQStyle *) &TQApplicationJBridge::style(), "org.trinitydesktop.qt.TQStyle");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_syncX(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQApplicationJBridge::syncX();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_topLevelWidgets(JNIEnv* env, jclass cls)
{
	TQWidgetList*  _qlist;
	(void) cls;
	_qlist = TQApplicationJBridge::topLevelWidgets();
	return (jobject) QtSupport::arrayWithTQWidgetList(env, (TQWidgetList*) _qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQApplicationJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQApplicationJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_translate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring key)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_key = 0;
	_qstring = ((TQApplication*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, key, &_qstring_key));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QApplication_translate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring key, jstring comment)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_key = 0;
static TQCString* _qstring_comment = 0;
	_qstring = ((TQApplication*) 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::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_key = 0;
static TQCString* _qstring_comment = 0;
	_qstring = ((TQApplication*) 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), (TQApplication::Encoding) encoding);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_type(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQApplication*) QtSupport::getQt(env, obj))->type();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_wakeUpGuiThread(JNIEnv* env, jobject obj)
{
	((TQApplication*) QtSupport::getQt(env, obj))->wakeUpGuiThread();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QApplication_wheelScrollLines(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQApplicationJBridge::wheelScrollLines();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_widgetAt__II(JNIEnv* env, jclass cls, jint x, jint y)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::widgetAt((int) x, (int) y), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_widgetAt__IIZ(JNIEnv* env, jclass cls, jint x, jint y, jboolean child)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::widgetAt((int) x, (int) y, (bool) child), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_widgetAt__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::widgetAt((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1)), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_widgetAt__Lorg_trinitydesktop_qt_QPoint_2Z(JNIEnv* env, jclass cls, jobject arg1, jboolean child)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQApplicationJBridge::widgetAt((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1), (bool) child), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QApplication_winStyleHighlightColor(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColor *) &TQApplicationJBridge::winStyleHighlightColor(), "org.trinitydesktop.qt.TQColor");
	return xret;
}

static jobjectArray _args = 0;

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_newTQApplication___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 TQApplicationJBridge(argc, QtSupport::toArgv(env, args)));
 		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
 	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_newTQApplication___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 TQApplicationJBridge(argc, QtSupport::toArgv(env, args), (bool) GUIenabled));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
 	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QApplication_newTQApplication___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 TQApplicationJBridge(argc, QtSupport::toArgv(env, args), (TQApplication::Type) arg1));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
 	}
	return;
}

JNIEXPORT jobjectArray JNICALL
Java_org_trinitydesktop_qt_QApplication_args(JNIEnv *env, jobject obj)
{
	(void) env;
	(void) obj;
	return _args;
}

