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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KSyntaxHighlighter.h>

class KSyntaxHighlighterJBridge : public KSyntaxHighlighter
{
public:
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2,const TQColor& arg3,const TQColor& arg4,const TQColor& arg5,const TQColor& arg6,KSyntaxHighlighter::SyntaxMode arg7) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2,const TQColor& arg3,const TQColor& arg4,const TQColor& arg5,const TQColor& arg6) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5,arg6) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2,const TQColor& arg3,const TQColor& arg4,const TQColor& arg5) : KSyntaxHighlighter(arg1,arg2,arg3,arg4,arg5) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2,const TQColor& arg3,const TQColor& arg4) : KSyntaxHighlighter(arg1,arg2,arg3,arg4) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2,const TQColor& arg3) : KSyntaxHighlighter(arg1,arg2,arg3) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1,bool arg2) : KSyntaxHighlighter(arg1,arg2) {};
	KSyntaxHighlighterJBridge(TQTextEdit* arg1) : KSyntaxHighlighter(arg1) {};
	~KSyntaxHighlighterJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSyntaxHighlighter_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_highlightParagraph(JNIEnv* env, jobject obj, jstring text, jint endStateOfLastPara)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((KSyntaxHighlighter*) QtSupport::getQt(env, obj))->highlightParagraph((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) endStateOfLastPara);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2Z(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2ZLorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor0)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2ZLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor0), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2ZLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor0), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor1), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor2)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2ZLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2, jobject QuoteColor3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor0), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor1), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor2), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor3)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSyntaxHighlighter_newKSyntaxHighlighter__Lorg_trinitydesktop_qt_QTextEdit_2ZLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2I(JNIEnv* env, jobject obj, jobject textEdit, jboolean colorQuoting, jobject QuoteColor0, jobject QuoteColor1, jobject QuoteColor2, jobject QuoteColor3, jint mode)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSyntaxHighlighterJBridge((TQTextEdit*) QtSupport::getQt(env, textEdit), (bool) colorQuoting, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor0), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor1), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor2), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, QuoteColor3), (KSyntaxHighlighter::SyntaxMode) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

