//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qmenudata.h>
#include <qkeysequence.h>

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

class QMenuItemJBridge : public QMenuItem
{
public:
	QMenuItemJBridge() : QMenuItem() {};
	~QMenuItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_custom(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->custom(), "org.kde.qt.QCustomMenuItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMenuItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_iconSet(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->iconSet(), "org.kde.qt.QIconSet");
	return xret;
}

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_key(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QKeySequence(((QMenuItem*) QtSupport::getQt(env, obj))->key()), "org.kde.qt.QKeySequence", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->pixmap(), "org.kde.qt.QPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_popup(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->popup(), "org.kde.qt.QPopupMenu");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_setText(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((QMenuItem*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_setWhatsThis(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((QMenuItem*) QtSupport::getQt(env, obj))->setWhatsThis((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_signal(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->signal(), "org.kde.qt.QSignal");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMenuItem_text(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QMenuItem*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMenuItem_whatsThis(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QMenuItem*) QtSupport::getQt(env, obj))->whatsThis();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMenuItem*) QtSupport::getQt(env, obj))->widget(), "org.kde.qt.QWidget");
	return xret;
}

