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

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

class TQMenuItemJBridge : public TQMenuItem
{
public:
	TQMenuItemJBridge() : TQMenuItem() {};
	~TQMenuItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_custom(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuItem*) QtSupport::getQt(env, obj))->custom(), "org.trinitydesktop.qt.TQCustomMenuItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMenuItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QMenuItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_iconSet(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuItem*) QtSupport::getQt(env, obj))->iconSet(), "org.trinitydesktop.qt.TQIconSet");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMenuItem_id(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMenuItem*) QtSupport::getQt(env, obj))->id();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isChecked(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isChecked();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isDirty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isDirty();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isEnabledAndVisible(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isEnabledAndVisible();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isSeparator(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isSeparator();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMenuItem_isVisible(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMenuItem*) QtSupport::getQt(env, obj))->isVisible();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_key(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQKeySequence(((TQMenuItem*) QtSupport::getQt(env, obj))->key()), "org.trinitydesktop.qt.TQKeySequence", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuItem*) QtSupport::getQt(env, obj))->pixmap(), "org.trinitydesktop.qt.TQPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_popup(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuItem*) QtSupport::getQt(env, obj))->popup(), "org.trinitydesktop.qt.TQPopupMenu");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMenuItem_setDirty(JNIEnv* env, jobject obj, jboolean dirty)
{
	((TQMenuItem*) QtSupport::getQt(env, obj))->setDirty((bool) dirty);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMenuItem_setText(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((TQMenuItem*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMenuItem_setVisible(JNIEnv* env, jobject obj, jboolean visible)
{
	((TQMenuItem*) QtSupport::getQt(env, obj))->setVisible((bool) visible);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMenuItem_setWhatsThis(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((TQMenuItem*) QtSupport::getQt(env, obj))->setWhatsThis((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMenuItem_signal(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuItem*) QtSupport::getQt(env, obj))->signal(), "org.trinitydesktop.qt.TQSignal");
	return xret;
}

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

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

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

