//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqfont.h>
#include <tqstylesheet.h>
#include <tqmime.h>

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

class TQStyleSheetJBridge : public TQStyleSheet
{
public:
	TQStyleSheetJBridge(TQObject* arg1,const char* arg2) : TQStyleSheet(arg1,arg2) {};
	TQStyleSheetJBridge(TQObject* arg1) : TQStyleSheet(arg1) {};
	TQStyleSheetJBridge() : TQStyleSheet() {};
	~TQStyleSheetJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(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 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.TQStyleSheet",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_convertFromPlainText__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qstring = TQStyleSheetJBridge::convertFromPlainText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_convertFromPlainText__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring arg1, jint mode)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qstring = TQStyleSheetJBridge::convertFromPlainText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQStyleSheetItem::WhiteSpaceMode) mode);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_defaultSheet(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQStyleSheetJBridge::defaultSheet(), "org.trinitydesktop.qt.TQStyleSheet");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QStyleSheet_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_error(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQStyleSheet*) QtSupport::getQt(env, obj))->error((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_escape(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qstring = TQStyleSheetJBridge::escape((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_insert(JNIEnv* env, jobject obj, jobject item)
{
	((TQStyleSheet*) QtSupport::getQt(env, obj))->insert((TQStyleSheetItem*) QtSupport::getQt(env, item));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_item(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQStyleSheet*) QtSupport::getQt(env, obj))->item((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.trinitydesktop.qt.TQStyleSheetItem");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_mightBeRichText(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) TQStyleSheetJBridge::mightBeRichText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_newTQStyleSheet__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQStyleSheetJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_newTQStyleSheet__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQStyleSheetJBridge((TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_newTQStyleSheet__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQStyleSheetJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_scaleFont(JNIEnv* env, jobject obj, jobject font, jint logicalSize)
{
	((TQStyleSheet*) QtSupport::getQt(env, obj))->scaleFont((TQFont&)*(TQFont*) QtSupport::getQt(env, font), (int) logicalSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_setDefaultSheet(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQStyleSheetJBridge::setDefaultSheet((TQStyleSheet*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QStyleSheet_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 = TQStyleSheetJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

