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

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

class TQFontJBridge : public TQFont
{
public:
	TQFontJBridge() : TQFont() {};
	TQFontJBridge(const TQString& arg1,int arg2,int arg3,bool arg4) : TQFont(arg1,arg2,arg3,arg4) {};
	TQFontJBridge(const TQString& arg1,int arg2,int arg3) : TQFont(arg1,arg2,arg3) {};
	TQFontJBridge(const TQString& arg1,int arg2) : TQFont(arg1,arg2) {};
	TQFontJBridge(const TQString& arg1) : TQFont(arg1) {};
	TQFontJBridge(const TQFont& arg1) : TQFont(arg1) {};
	bool protected_dirty() {
		return (bool) TQFont::dirty();
	}
	int protected_deciPointSize() {
		return (int) TQFont::deciPointSize();
	}
	~TQFontJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_bold(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->bold();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_cacheStatistics(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQFontJBridge::cacheStatistics();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_cleanup(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQFontJBridge::cleanup();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_deciPointSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFontJBridge*) QtSupport::getQt(env, obj))->protected_deciPointSize();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFont_defaultFont(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQFontJBridge::defaultFont()), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_dirty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFontJBridge*) QtSupport::getQt(env, obj))->protected_dirty();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QFont_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_exactMatch(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->exactMatch();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQFont*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_fixedPitch(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->fixedPitch();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_fromString(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->fromString((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_handle(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->handle();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_initialize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQFontJBridge::initialize();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_insertSubstitution(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_arg2 = 0;
	TQFontJBridge::insertSubstitution((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_insertSubstitutions(JNIEnv* env, jclass cls, jstring arg1, jobjectArray arg2)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
static TQStringList* _qlist_arg2 = 0;
	TQFontJBridge::insertSubstitutions((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg2, &_qlist_arg2));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_isCopyOf(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->isCopyOf((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_italic(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->italic();
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_newTQFont__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring family)
{
static TQString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, family, &_qstring_family)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_newTQFont__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring family, jint pointSize)
{
static TQString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, family, &_qstring_family), (int) pointSize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_newTQFont__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring family, jint pointSize, jint weight)
{
static TQString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, family, &_qstring_family), (int) pointSize, (int) weight));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_newTQFont__Ljava_lang_String_2IIZ(JNIEnv* env, jobject obj, jstring family, jint pointSize, jint weight, jboolean italic)
{
static TQString* _qstring_family = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, family, &_qstring_family), (int) pointSize, (int) weight, (bool) italic));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_newTQFont__Lorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQFontJBridge((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->operator==((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->operator!=((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_overline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->overline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_pixelSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->pixelSize();
	return xret;
}

JNIEXPORT jfloat JNICALL
Java_org_trinitydesktop_qt_QFont_pointSizeFloat(JNIEnv* env, jobject obj)
{
	jfloat xret = (jfloat) ((TQFont*) QtSupport::getQt(env, obj))->pointSizeFloat();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_pointSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->pointSize();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_rawMode(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->rawMode();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFont_resolve(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(((TQFont*) QtSupport::getQt(env, obj))->resolve((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1))), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setBold(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setBold((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setDefaultFont(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQFontJBridge::setDefaultFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setFixedPitch(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setFixedPitch((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setItalic(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setItalic((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setOverline(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setOverline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setPixelSizeFloat(JNIEnv* env, jobject obj, jfloat arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setPixelSizeFloat((float) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setPixelSize(JNIEnv* env, jobject obj, jint arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setPixelSize((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setPointSizeFloat(JNIEnv* env, jobject obj, jfloat arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setPointSizeFloat((float) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setPointSize(JNIEnv* env, jobject obj, jint arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setPointSize((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setRawMode(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setRawMode((bool) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setStretch(JNIEnv* env, jobject obj, jint arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setStretch((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setStrikeOut(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setStrikeOut((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setStyleHint__I(JNIEnv* env, jobject obj, jint arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setStyleHint((TQFont::StyleHint) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setStyleHint__II(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	((TQFont*) QtSupport::getQt(env, obj))->setStyleHint((TQFont::StyleHint) arg1, (TQFont::StyleStrategy) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setStyleStrategy(JNIEnv* env, jobject obj, jint s)
{
	((TQFont*) QtSupport::getQt(env, obj))->setStyleStrategy((TQFont::StyleStrategy) s);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setUnderline(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setUnderline((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFont_setWeight(JNIEnv* env, jobject obj, jint arg1)
{
	((TQFont*) QtSupport::getQt(env, obj))->setWeight((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_stretch(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->stretch();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_strikeOut(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->strikeOut();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_styleHint(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->styleHint();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_styleStrategy(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->styleStrategy();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFont_substitutes(JNIEnv* env, jclass cls, jstring arg1)
{
	TQStringList  _qlist;
	(void) cls;
static TQString* _qstring_arg1 = 0;
	_qlist = TQFontJBridge::substitutes((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFont_substitutions(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TQFontJBridge::substitutions();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFont_underline(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFont*) QtSupport::getQt(env, obj))->underline();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFont_weight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQFont*) QtSupport::getQt(env, obj))->weight();
	return xret;
}

