/***************************************************************************
                            QPopupMenu.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qpopupmenu.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QPopupMenu.h>
#include <qtjava/JavaSlot.h>

class QPopupMenuJBridge : public QPopupMenu
{
public:
	QPopupMenuJBridge(QWidget* parent, const char* name) : QPopupMenu(parent, name) {}
	~QPopupMenuJBridge() {QtSupport::qtKeyDeleted(this);}
	int  protected_itemHeight(int arg1) {
		return (int ) QPopupMenu::itemHeight(arg1);
	}
	int  protected_itemHeight(QMenuItem* mi) {
		return (int ) QPopupMenu::itemHeight(mi);
	}
	void protected_drawItem(QPainter* p, int tab, QMenuItem* mi, bool act, int x, int y, int w, int h) {
		QPopupMenu::drawItem(p, tab, mi, act, x, y, w, h);
		return;
	}
	void protected_drawContents(QPainter* arg1) {
		QPopupMenu::drawContents(arg1);
		return;
	}
	void protected_styleChange(QStyle& arg1) {
		QPopupMenu::styleChange(arg1);
		return;
	}
	int  protected_columns() {
		return (int ) QPopupMenu::columns();
	}
	bool  protected_focusNextPrevChild(bool next) {
		return (bool ) QPopupMenu::focusNextPrevChild(next);
	}
	int  protected_itemAtPos(const QPoint& arg1, bool ignoreSeparator) {
		return (int ) QPopupMenu::itemAtPos(arg1, ignoreSeparator);
	}
	void protected_menuContentsChanged() {
		QMenuData::menuContentsChanged();
		return;
	}
	void protected_menuStateChanged() {
		QMenuData::menuStateChanged();
		return;
	}
	void protected_menuInsPopup(QPopupMenu* arg1) {
		QMenuData::menuInsPopup(arg1);
		return;
	}
	void protected_menuDelPopup(QPopupMenu* arg1) {
		QMenuData::menuDelPopup(arg1);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QPopupMenu::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QPopupMenu::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QPopupMenu::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QPopupMenu::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QPopupMenu::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QPopupMenu::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QPopupMenu::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* e) {
		if (! QtSupport::eventDelegate(this, "closeEvent", e, "org.kde.qt.QCloseEvent")) {
			QPopupMenu::closeEvent(e);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QPopupMenu::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QPopupMenu::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QFrame::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_newQPopupMenu__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPopupMenuJBridge((QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QPopupMenu*)QtSupport::getQt(env, obj))->parentWidget(FALSE) == (QWidget *) 0) {
		delete (QPopupMenu*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_popup__Lorg_kde_qt_QPoint_2I(JNIEnv *env, jobject obj, jobject pos, jint indexAtPoint)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->popup((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), (int) indexAtPoint);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_popup__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject pos)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->popup((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), 0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_updateItem(JNIEnv *env, jobject obj, jint identifier)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->updateItem((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setCheckable(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setCheckable((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_isCheckable(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->isCheckable();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setFont(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setFont((QFont&) *(QFont *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_show(JNIEnv *env, jobject obj)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->show();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_hide(JNIEnv *env, jobject obj)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->hide();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_exec__(JNIEnv *env, jobject obj)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->exec();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_exec__Lorg_kde_qt_QPoint_2I(JNIEnv *env, jobject obj, jobject pos, jint indexAtPoint)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->exec((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), (int) indexAtPoint);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_exec__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject pos)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->exec((QPoint&) *(QPoint *) QtSupport::getQt(env, pos), 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setActiveItem(JNIEnv *env, jobject obj, jint arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setActiveItem((int) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_sizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->sizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_idAt__I(JNIEnv *env, jobject obj, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->idAt((int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_idAt__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject pos)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->idAt((QPoint&) *(QPoint *) QtSupport::getQt(env, pos));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_customWhatsThis(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->customWhatsThis();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertTearOffHandle__II(JNIEnv *env, jobject obj, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertTearOffHandle((int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertTearOffHandle__(JNIEnv *env, jobject obj)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertTearOffHandle(-1, -1);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_activateItemAt(JNIEnv *env, jobject obj, jint index)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->activateItemAt((int) index);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_itemGeometry(JNIEnv *env, jobject obj, jint index)
{
	QRect _r= ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->itemGeometry((int) index);
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_itemHeight__I(JNIEnv *env, jobject obj, jint arg1)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemHeight((int) arg1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_itemHeight__Lorg_kde_qt_QMenuItem_2(JNIEnv *env, jobject obj, jobject mi)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemHeight((QMenuItem*) QtSupport::getQt(env, mi));
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_drawItem(JNIEnv *env, jobject obj, jobject p, jint tab, jobject mi, jboolean act, jint x, jint y, jint w, jint h)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_drawItem((QPainter*) QtSupport::getQt(env, p), (int) tab, (QMenuItem*) QtSupport::getQt(env, mi), (bool) act, (int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_drawContents(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((QPainter*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_styleChange(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_styleChange((QStyle&) *(QStyle *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_columns(JNIEnv *env, jobject obj)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_columns();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_focusNextPrevChild(JNIEnv *env, jobject obj, jboolean next)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_focusNextPrevChild((bool) next);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_count(JNIEnv *env, jobject obj)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->count();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QKeySequence_2II(JNIEnv *env, jobject obj, jstring text, jobject receiver, jstring member, jobject accel, jint identifier, jint index)
{
	identifier = Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2II(env, obj, text, identifier, index);

	if ((bool) Java_org_kde_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member)) {
		Java_org_kde_qt_QPopupMenu_setAccel(env, obj, accel, identifier);
	}

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject receiver, jstring member)
{
	jint identifier = Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2II(env, obj, text, -1, -1);
	Java_org_kde_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QKeySequence_2II(JNIEnv *env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member, jobject accel, jint identifier, jint index)
{
static QCString * _qstring_member = 0;
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (QKeySequence&) *(QKeySequence *) QtSupport::getQt(env, accel), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member)
{
static QCString * _qstring_member = 0;
static QString * _qstring_text = 0;
	jint identifier = Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2II(env, obj, icon, text, -1, -1);
	Java_org_kde_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);
	
	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QKeySequence_2II(JNIEnv *env, jobject obj, jobject pixmap, jobject receiver, jstring member, jobject accel, jint identifier, jint index)
{
static QCString * _qstring_member = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (QKeySequence&) *(QKeySequence *) QtSupport::getQt(env, accel), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject pixmap, jobject receiver, jstring member)
{
static QCString * _qstring_member = 0;
	jint identifier = Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2II(env, obj, pixmap, -1, -1);
	Java_org_kde_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QKeySequence_2II(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member, jobject accel, jint identifier, jint index)
{
static QCString * _qstring_member = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (QKeySequence&) *(QKeySequence *) QtSupport::getQt(env, accel), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member)
{
static QCString * _qstring_member = 0;
	jint identifier = Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2II(env, obj, icon, pixmap, -1, -1);
	Java_org_kde_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2II(JNIEnv *env, jobject obj, jstring text, jint identifier, jint index)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2II(JNIEnv *env, jobject obj, jobject icon, jstring text, jint identifier, jint index)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject icon, jstring text)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_kde_qt_QPopupMenu_2II(JNIEnv *env, jobject obj, jstring text, jobject popup, jint identifier, jint index)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QPopupMenu*) QtSupport::getQt(env, popup), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jstring text, jobject popup)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QPopupMenu*) QtSupport::getQt(env, popup), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2Lorg_kde_qt_QPopupMenu_2II(JNIEnv *env, jobject obj, jobject icon, jstring text, jobject popup, jint identifier, jint index)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QPopupMenu*) QtSupport::getQt(env, popup), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2Lorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jobject icon, jstring text, jobject popup)
{
static QString * _qstring_text = 0;
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QPopupMenu*) QtSupport::getQt(env, popup), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2II(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject pixmap)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2II(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject icon, jobject pixmap)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPopupMenu_2II(JNIEnv *env, jobject obj, jobject pixmap, jobject popup, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (QPopupMenu*) QtSupport::getQt(env, popup), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jobject pixmap, jobject popup)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (QPopupMenu*) QtSupport::getQt(env, popup), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPopupMenu_2II(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jobject popup, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (QPopupMenu*) QtSupport::getQt(env, popup), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jobject popup)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (QPopupMenu*) QtSupport::getQt(env, popup), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QWidget_2II(JNIEnv *env, jobject obj, jobject widget, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QWidget*) QtSupport::getQt(env, widget), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject widget)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QWidget*) QtSupport::getQt(env, widget), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QCustomMenuItem_2II(JNIEnv *env, jobject obj, jobject icon, jobject custom, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QCustomMenuItem*) QtSupport::getQt(env, custom), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QIconSet_2Lorg_kde_qt_QCustomMenuItem_2(JNIEnv *env, jobject obj, jobject icon, jobject custom)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QCustomMenuItem*) QtSupport::getQt(env, custom), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QCustomMenuItem_2II(JNIEnv *env, jobject obj, jobject custom, jint identifier, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QCustomMenuItem*) QtSupport::getQt(env, custom), (int) identifier, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertItem__Lorg_kde_qt_QCustomMenuItem_2(JNIEnv *env, jobject obj, jobject custom)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertItem((QCustomMenuItem*) QtSupport::getQt(env, custom), -1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertSeparator__I(JNIEnv *env, jobject obj, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertSeparator((int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_insertSeparator__(JNIEnv *env, jobject obj)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->insertSeparator(-1);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_removeItem(JNIEnv *env, jobject obj, jint identifier)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->removeItem((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_removeItemAt(JNIEnv *env, jobject obj, jint index)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->removeItemAt((int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_clear(JNIEnv *env, jobject obj)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_accel(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QKeySequence (((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->accel((int) identifier)), "org.kde.qt.QKeySequence", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setAccel(JNIEnv *env, jobject obj, jobject key, jint identifier)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setAccel((QKeySequence&) *(QKeySequence *) QtSupport::getQt(env, key), (int) identifier);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_iconSet(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->iconSet((int) identifier), "org.kde.qt.QIconSet");
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QPopupMenu_text(JNIEnv *env, jobject obj, jint identifier)
{
	QString  _qstring;
	_qstring = ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->text((int) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_pixmap(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->pixmap((int) identifier), "org.kde.qt.QPixmap");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setWhatsThis(JNIEnv *env, jobject obj, jint identifier, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setWhatsThis((int) identifier, (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QPopupMenu_whatsThis(JNIEnv *env, jobject obj, jint identifier)
{
	QString  _qstring;
	_qstring = ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->whatsThis((int) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint identifier, jstring text)
{
static QString * _qstring_text = 0;
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((int) identifier, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__ILorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint identifier, jobject pixmap)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((int) identifier, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__ILorg_kde_qt_QIconSet_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jint identifier, jobject icon, jstring text)
{
static QString * _qstring_text = 0;
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((int) identifier, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__ILorg_kde_qt_QIconSet_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint identifier, jobject icon, jobject pixmap)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((int) identifier, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__Ljava_lang_String_2I(JNIEnv *env, jobject obj, jstring text, jint identifier)
{
static QString * _qstring_text = 0;
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__Lorg_kde_qt_QPixmap_2I(JNIEnv *env, jobject obj, jobject pixmap, jint identifier)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_changeItem__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2I(JNIEnv *env, jobject obj, jobject icon, jstring text, jint identifier)
{
static QString * _qstring_text = 0;
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->changeItem((QIconSet&) *(QIconSet *) QtSupport::getQt(env, icon), (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_isItemActive(JNIEnv *env, jobject obj, jint identifier)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->isItemActive((int) identifier);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_isItemEnabled(JNIEnv *env, jobject obj, jint identifier)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->isItemEnabled((int) identifier);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setItemEnabled(JNIEnv *env, jobject obj, jint identifier, jboolean enable)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setItemEnabled((int) identifier, (bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_isItemChecked(JNIEnv *env, jobject obj, jint identifier)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->isItemChecked((int) identifier);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setItemChecked(JNIEnv *env, jobject obj, jint identifier, jboolean check)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setItemChecked((int) identifier, (bool) check);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QPopupMenu_updateItem(JNIEnv *env, jobject obj, jint identifier)
//{
//	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->updateItem((int) identifier);
//	return;
//}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_indexOf(JNIEnv *env, jobject obj, jint identifier)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->indexOf((int) identifier);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_idAt(JNIEnv *env, jobject obj, jint index)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->idAt((int) index);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_setId(JNIEnv *env, jobject obj, jint index, jint identifier)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setId((int) index, (int) identifier);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_connectItem(JNIEnv *env, jobject obj, jint identifier, jobject receiver, jstring member)
{
	JavaSlot * javaSlot = QtSupport::slotForReceiver(env, receiver, member);

	if (	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->connectItem(	identifier,
																			javaSlot,
																			javaSlot->javaToQtSlotName(env, member) ) )
	{
		return(jboolean) JNI_TRUE;
	} else {
		return (jboolean) JNI_FALSE;
	}
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_disconnectItem(JNIEnv *env, jobject obj, jint identifier, jobject receiver, jstring member)
{
	JavaSlot * javaSlot = QtSupport::slotForReceiver(env, receiver, member);

	if (	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->disconnectItem(	identifier,
																				javaSlot,
																				javaSlot->javaToQtSlotName(env, member) ) )
	{
		return(jboolean) JNI_TRUE;
	} else {
		return (jboolean) JNI_FALSE;
	}
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPopupMenu_setItemParameter(JNIEnv *env, jobject obj, jint identifier, jint param)
{
	return (jboolean) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->setItemParameter((int) identifier, (int) param);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPopupMenu_itemParameter(JNIEnv *env, jobject obj, jint identifier)
{
	return (jint) ((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->itemParameter((int) identifier);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_findItem__I(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->findItem((int) identifier), "org.kde.qt.QMenuItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_findItem__ILorg_kde_qt_QMenuDataInterface_2(JNIEnv *env, jobject obj, jint identifier, jobject parent)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->findItem((int) identifier, (QMenuData**) QtSupport::getQt(env, parent)), "org.kde.qt.QMenuItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_findPopup__Lorg_kde_qt_QPopupMenu_2_3I(JNIEnv *env, jobject obj, jobject arg1, jintArray index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->findPopup((QPopupMenu*) QtSupport::getQt(env, arg1),  (int*) QtSupport::toIntPtr(env, index)), "org.kde.qt.QMenuItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPopupMenu_findPopup__Lorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->findPopup((QPopupMenu*) QtSupport::getQt(env, arg1), 0), "org.kde.qt.QMenuItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_menuContentsChanged(JNIEnv *env, jobject obj)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuContentsChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_menuStateChanged(JNIEnv *env, jobject obj)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuStateChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_menuInsPopup(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuInsPopup((QPopupMenu*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPopupMenu_menuDelPopup(JNIEnv *env, jobject obj, jobject arg1)
{
	((QPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuDelPopup((QPopupMenu*) QtSupport::getQt(env, arg1));
	return;
}



