//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstyle.h>
#include <tqstring.h>
#include <tqpopupmenu.h>
#include <tqpoint.h>
#include <tqsize.h>
#include <tqmenudata.h>
#include <tqpixmap.h>
#include <tqfont.h>
#include <tqiconset.h>
#include <tqkeysequence.h>

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

class TQPopupMenuJBridge : public TQPopupMenu
{
public:
	TQPopupMenuJBridge(TQWidget* arg1,const char* arg2) : TQPopupMenu(arg1,arg2) {};
	TQPopupMenuJBridge(TQWidget* arg1) : TQPopupMenu(arg1) {};
	TQPopupMenuJBridge() : TQPopupMenu() {};
	int protected_itemHeight(int arg1) {
		return (int) TQPopupMenu::itemHeight(arg1);
	}
	int protected_itemHeight(TQMenuItem* arg1) {
		return (int) TQPopupMenu::itemHeight(arg1);
	}
	void protected_drawItem(TQPainter* arg1,int arg2,TQMenuItem* arg3,bool arg4,int arg5,int arg6,int arg7,int arg8) {
		TQPopupMenu::drawItem(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
		return;
	}
	void protected_drawContents(TQPainter* arg1) {
		TQPopupMenu::drawContents(arg1);
		return;
	}
	void protected_closeEvent(TQCloseEvent* arg1) {
		TQPopupMenu::closeEvent(arg1);
		return;
	}
	void protected_paintEvent(TQPaintEvent* arg1) {
		TQPopupMenu::paintEvent(arg1);
		return;
	}
	void protected_mousePressEvent(TQMouseEvent* arg1) {
		TQPopupMenu::mousePressEvent(arg1);
		return;
	}
	void protected_mouseReleaseEvent(TQMouseEvent* arg1) {
		TQPopupMenu::mouseReleaseEvent(arg1);
		return;
	}
	void protected_mouseMoveEvent(TQMouseEvent* arg1) {
		TQPopupMenu::mouseMoveEvent(arg1);
		return;
	}
	void protected_keyPressEvent(TQKeyEvent* arg1) {
		TQPopupMenu::keyPressEvent(arg1);
		return;
	}
	void protected_focusInEvent(TQFocusEvent* arg1) {
		TQPopupMenu::focusInEvent(arg1);
		return;
	}
	void protected_focusOutEvent(TQFocusEvent* arg1) {
		TQPopupMenu::focusOutEvent(arg1);
		return;
	}
	void protected_timerEvent(TQTimerEvent* arg1) {
		TQPopupMenu::timerEvent(arg1);
		return;
	}
	void protected_leaveEvent(TQEvent* arg1) {
		TQPopupMenu::leaveEvent(arg1);
		return;
	}
	void protected_styleChange(TQStyle& arg1) {
		TQPopupMenu::styleChange(arg1);
		return;
	}
	void protected_enabledChange(bool arg1) {
		TQPopupMenu::enabledChange(arg1);
		return;
	}
	int protected_columns() {
		return (int) TQPopupMenu::columns();
	}
	bool protected_focusNextPrevChild(bool arg1) {
		return (bool) TQPopupMenu::focusNextPrevChild(arg1);
	}
	int protected_itemAtPos(const TQPoint& arg1,bool arg2) {
		return (int) TQPopupMenu::itemAtPos(arg1,arg2);
	}
	int protected_itemAtPos(const TQPoint& arg1) {
		return (int) TQPopupMenu::itemAtPos(arg1);
	}
	~TQPopupMenuJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_menuContentsChanged() {
		TQMenuData::menuContentsChanged();
		return;
	}
	void protected_menuStateChanged() {
		TQMenuData::menuStateChanged();
		return;
	}
	void protected_menuInsPopup(TQPopupMenu* arg1) {
		TQMenuData::menuInsPopup(arg1);
		return;
	}
	void protected_menuDelPopup(TQPopupMenu* arg1) {
		TQMenuData::menuDelPopup(arg1);
		return;
	}
	void dragLeaveEvent(TQDragLeaveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragLeaveEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragLeaveEvent")) {
			TQWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void setMask(const TQRegion& arg1) {
		if (!QtSupport::eventDelegate(this,"setMask",(void*)&arg1,"org.trinitydesktop.qt.TQRegion")) {
			TQWidget::setMask(arg1);
		}
		return;
	}
	void resizeEvent(TQResizeEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"resizeEvent",(void*)arg1,"org.trinitydesktop.qt.TQResizeEvent")) {
			TQFrame::resizeEvent(arg1);
		}
		return;
	}
	void setFrameRect(const TQRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setFrameRect",(void*)&arg1,"org.trinitydesktop.qt.TQRect")) {
			TQFrame::setFrameRect(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseDoubleClickEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void paletteChange(const TQPalette& arg1) {
		if (!QtSupport::eventDelegate(this,"paletteChange",(void*)&arg1,"org.trinitydesktop.qt.TQPalette")) {
			TQWidget::paletteChange(arg1);
		}
		return;
	}
	void setActiveWindow() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","setActiveWindow")) {
			TQWidget::setActiveWindow();
		}
		return;
	}
	void dragEnterEvent(TQDragEnterEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragEnterEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragEnterEvent")) {
			TQWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void focusOutEvent(TQFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusOutEvent",(void*)arg1,"org.trinitydesktop.qt.TQFocusEvent")) {
			TQPopupMenu::focusOutEvent(arg1);
		}
		return;
	}
	void setFocus() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","setFocus")) {
			TQWidget::setFocus();
		}
		return;
	}
	void dragMoveEvent(TQDragMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragMoveEvent",(void*)arg1,"org.trinitydesktop.qt.TQDragMoveEvent")) {
			TQWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void drawFrame(TQPainter* arg1) {
		if (!QtSupport::eventDelegate(this,"drawFrame",(void*)arg1,"org.trinitydesktop.qt.TQPainter")) {
			TQFrame::drawFrame(arg1);
		}
		return;
	}
	void setPaletteBackgroundColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setPaletteBackgroundColor(arg1);
		}
		return;
	}
	void setEraseColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setEraseColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setEraseColor(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void paintEvent(TQPaintEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"paintEvent",(void*)arg1,"org.trinitydesktop.qt.TQPaintEvent")) {
			TQPopupMenu::paintEvent(arg1);
		}
		return;
	}
	void imStartEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imStartEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imStartEvent(arg1);
		}
		return;
	}
	void unsetCursor() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","unsetCursor")) {
			TQWidget::unsetCursor();
		}
		return;
	}
	void hideEvent(TQHideEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"hideEvent",(void*)arg1,"org.trinitydesktop.qt.TQHideEvent")) {
			TQWidget::hideEvent(arg1);
		}
		return;
	}
	void moveEvent(TQMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"moveEvent",(void*)arg1,"org.trinitydesktop.qt.TQMoveEvent")) {
			TQWidget::moveEvent(arg1);
		}
		return;
	}
	void polish() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","polish")) {
			TQWidget::polish();
		}
		return;
	}
	void showMaximized() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","showMaximized")) {
			TQWidget::showMaximized();
		}
		return;
	}
	void setBackgroundPixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundPixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setBackgroundPixmap(arg1);
		}
		return;
	}
	void showEvent(TQShowEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"showEvent",(void*)arg1,"org.trinitydesktop.qt.TQShowEvent")) {
			TQWidget::showEvent(arg1);
		}
		return;
	}
	void keyPressEvent(TQKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyPressEvent",(void*)arg1,"org.trinitydesktop.qt.TQKeyEvent")) {
			TQPopupMenu::keyPressEvent(arg1);
		}
		return;
	}
	void setPaletteBackgroundPixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundPixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setPaletteBackgroundPixmap(arg1);
		}
		return;
	}
	void setCursor(const TQCursor& arg1) {
		if (!QtSupport::eventDelegate(this,"setCursor",(void*)&arg1,"org.trinitydesktop.qt.TQCursor")) {
			TQWidget::setCursor(arg1);
		}
		return;
	}
	void closeEvent(TQCloseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"closeEvent",(void*)arg1,"org.trinitydesktop.qt.TQCloseEvent")) {
			TQPopupMenu::closeEvent(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void enterEvent(TQEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"enterEvent",(void*)arg1,"org.trinitydesktop.qt.TQEvent")) {
			TQWidget::enterEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQPopupMenu::timerEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseReleaseEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQPopupMenu::mouseReleaseEvent(arg1);
		}
		return;
	}
	void setErasePixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setErasePixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setErasePixmap(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void dropEvent(TQDropEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dropEvent",(void*)arg1,"org.trinitydesktop.qt.TQDropEvent")) {
			TQWidget::dropEvent(arg1);
		}
		return;
	}
	void leaveEvent(TQEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"leaveEvent",(void*)arg1,"org.trinitydesktop.qt.TQEvent")) {
			TQPopupMenu::leaveEvent(arg1);
		}
		return;
	}
	void setIcon(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setIcon",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQWidget::setIcon(arg1);
		}
		return;
	}
	void updateMask() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","updateMask")) {
			TQWidget::updateMask();
		}
		return;
	}
	void showNormal() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","showNormal")) {
			TQWidget::showNormal();
		}
		return;
	}
	void imComposeEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imComposeEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imComposeEvent(arg1);
		}
		return;
	}
	void mousePressEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mousePressEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQPopupMenu::mousePressEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(TQMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseMoveEvent",(void*)arg1,"org.trinitydesktop.qt.TQMouseEvent")) {
			TQPopupMenu::mouseMoveEvent(arg1);
		}
		return;
	}
	void setFocusProxy(TQWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setFocusProxy",(void*)arg1,"org.trinitydesktop.qt.TQWidget")) {
			TQWidget::setFocusProxy(arg1);
		}
		return;
	}
	void fontChange(const TQFont& arg1) {
		if (!QtSupport::eventDelegate(this,"fontChange",(void*)&arg1,"org.trinitydesktop.qt.TQFont")) {
			TQWidget::fontChange(arg1);
		}
		return;
	}
	void setBackgroundColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQWidget::setBackgroundColor(arg1);
		}
		return;
	}
	void adjustSize() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","adjustSize")) {
			TQWidget::adjustSize();
		}
		return;
	}
	void wheelEvent(TQWheelEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"wheelEvent",(void*)arg1,"org.trinitydesktop.qt.TQWheelEvent")) {
			TQWidget::wheelEvent(arg1);
		}
		return;
	}
	void imEndEvent(TQIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imEndEvent",(void*)arg1,"org.trinitydesktop.qt.TQIMEvent")) {
			TQWidget::imEndEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void focusInEvent(TQFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusInEvent",(void*)arg1,"org.trinitydesktop.qt.TQFocusEvent")) {
			TQPopupMenu::focusInEvent(arg1);
		}
		return;
	}
	void tabletEvent(TQTabletEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"tabletEvent",(void*)arg1,"org.trinitydesktop.qt.TQTabletEvent")) {
			TQWidget::tabletEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(TQKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyReleaseEvent",(void*)arg1,"org.trinitydesktop.qt.TQKeyEvent")) {
			TQWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(TQContextMenuEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"contextMenuEvent",(void*)arg1,"org.trinitydesktop.qt.TQContextMenuEvent")) {
			TQWidget::contextMenuEvent(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQPopupMenu",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void setGeometry(const TQRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setGeometry",(void*)&arg1,"org.trinitydesktop.qt.TQRect")) {
			TQWidget::setGeometry(arg1);
		}
		return;
	}
	void showMinimized() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQPopupMenu","showMinimized")) {
			TQWidget::showMinimized();
		}
		return;
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_accel(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQKeySequence(((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->accel((int) id)), "org.trinitydesktop.qt.TQKeySequence", true);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint id, jstring text)
{
static TQString* _qstring_text = 0;
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((int) id, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__ILorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jint id, jobject icon, jstring text)
{
static TQString* _qstring_text = 0;
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((int) id, (const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__ILorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jint id, jobject icon, jobject pixmap)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((int) id, (const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__ILorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jint id, jobject pixmap)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((int) id, (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring text, jint id)
{
static TQString* _qstring_text = 0;
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id)
{
static TQString* _qstring_text = 0;
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_changeItem__Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject pixmap, jint id)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->changeItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) id);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQPopupMenu*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_closeEvent(JNIEnv* env, jobject obj, jobject e)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_closeEvent((TQCloseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_columns(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_columns();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_customWhatsThis(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPopupMenu*) QtSupport::getQt(env, obj))->customWhatsThis();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPopupMenu_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_drawContents(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((TQPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_enabledChange(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_enabledChange((bool) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_exec__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->exec();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_exec__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject pos)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->exec((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_exec__Lorg_trinitydesktop_qt_QPoint_2I(JNIEnv* env, jobject obj, jobject pos, jint indexAtPoint)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->exec((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (int) indexAtPoint);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_findItem(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->findItem((int) id), "org.trinitydesktop.qt.TQMenuItem");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_findPopup__Lorg_trinitydesktop_qt_QPopupMenu_2_3I(JNIEnv* env, jobject obj, jobject arg1, jintArray index)
{
	int* _int_index = QtSupport::toIntPtr(env, index);
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->findPopup((TQPopupMenu*) QtSupport::getQt(env, arg1),  (int*) _int_index), "org.trinitydesktop.qt.TQMenuItem");
	env->SetIntArrayRegion(index, 0, 1, (jint *) _int_index);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_focusInEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_focusInEvent((TQFocusEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_focusNextPrevChild(JNIEnv* env, jobject obj, jboolean next)
{
	jboolean xret = (jboolean) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_focusNextPrevChild((bool) next);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_focusOutEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_focusOutEvent((TQFocusEvent*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_iconSet(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->iconSet((int) id), "org.trinitydesktop.qt.TQIconSet");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_idAt__I(JNIEnv* env, jobject obj, jint index)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->idAt((int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_idAt__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject pos)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->idAt((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_indexOf(JNIEnv* env, jobject obj, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->indexOf((int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring text, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring text, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2(JNIEnv* env, jobject obj, jstring text, jobject receiver, jstring member, jobject accel)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2I(JNIEnv* env, jobject obj, jstring text, jobject receiver, jstring member, jobject accel, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2(JNIEnv* env, jobject obj, jstring text, jobject popup)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2I(JNIEnv* env, jobject obj, jstring text, jobject popup, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2II(JNIEnv* env, jobject obj, jstring text, jobject popup, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QCustomMenuItem_2(JNIEnv* env, jobject obj, jobject custom)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQCustomMenuItem*) QtSupport::getQt(env, custom));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QCustomMenuItem_2I(JNIEnv* env, jobject obj, jobject custom, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQCustomMenuItem*) QtSupport::getQt(env, custom), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QCustomMenuItem_2II(JNIEnv* env, jobject obj, jobject custom, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQCustomMenuItem*) QtSupport::getQt(env, custom), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member, jobject accel)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member, jobject accel, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2II(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member, jobject accel, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject popup)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject popup, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QPopupMenu_2II(JNIEnv* env, jobject obj, jobject icon, jstring text, jobject popup, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QCustomMenuItem_2(JNIEnv* env, jobject obj, jobject icon, jobject custom)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (TQCustomMenuItem*) QtSupport::getQt(env, custom));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QCustomMenuItem_2I(JNIEnv* env, jobject obj, jobject icon, jobject custom, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (TQCustomMenuItem*) QtSupport::getQt(env, custom), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QCustomMenuItem_2II(JNIEnv* env, jobject obj, jobject icon, jobject custom, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (TQCustomMenuItem*) QtSupport::getQt(env, custom), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject icon, jobject pixmap)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2II(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member, jobject accel)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2I(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member, jobject accel, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2II(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member, jobject accel, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject popup)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2I(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject popup, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2II(JNIEnv* env, jobject obj, jobject icon, jobject pixmap, jobject popup, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject pixmap)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject pixmap, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2II(JNIEnv* env, jobject obj, jobject pixmap, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject pixmap, jobject receiver, jstring member, jobject accel)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2I(JNIEnv* env, jobject obj, jobject pixmap, jobject receiver, jstring member, jobject accel, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QKeySequence_2II(JNIEnv* env, jobject obj, jobject pixmap, jobject receiver, jstring member, jobject accel, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()", (const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, accel), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2(JNIEnv* env, jobject obj, jobject pixmap, jobject popup)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2I(JNIEnv* env, jobject obj, jobject pixmap, jobject popup, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPopupMenu_2II(JNIEnv* env, jobject obj, jobject pixmap, jobject popup, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pixmap), (TQPopupMenu*) QtSupport::getQt(env, popup), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject widget)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQWidget*) QtSupport::getQt(env, widget));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject widget, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQWidget*) QtSupport::getQt(env, widget), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject widget, jint id, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertItem((TQWidget*) QtSupport::getQt(env, widget), (int) id, (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertSeparator__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertSeparator();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertSeparator__I(JNIEnv* env, jobject obj, jint index)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->insertSeparator((int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertTearOffHandle__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->insertTearOffHandle();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertTearOffHandle__I(JNIEnv* env, jobject obj, jint id)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->insertTearOffHandle((int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertTearOffHandle__II(JNIEnv* env, jobject obj, jint id, jint index)
{
	jint xret = (jint) ((TQPopupMenu*) QtSupport::getQt(env, obj))->insertTearOffHandle((int) id, (int) index);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_isCheckable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPopupMenu*) QtSupport::getQt(env, obj))->isCheckable();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_isItemActive(JNIEnv* env, jobject obj, jint id)
{
	jboolean xret = (jboolean) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->isItemActive((int) id);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_isItemChecked(JNIEnv* env, jobject obj, jint id)
{
	jboolean xret = (jboolean) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->isItemChecked((int) id);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_isItemEnabled(JNIEnv* env, jobject obj, jint id)
{
	jboolean xret = (jboolean) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->isItemEnabled((int) id);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_isItemVisible(JNIEnv* env, jobject obj, jint id)
{
	jboolean xret = (jboolean) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->isItemVisible((int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemAtPos__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemAtPos((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemAtPos__Lorg_trinitydesktop_qt_QPoint_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean ignoreSeparator)
{
	jint xret = (jint) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemAtPos((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1), (bool) ignoreSeparator);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemGeometry(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQPopupMenu*) QtSupport::getQt(env, obj))->itemGeometry((int) index)), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemHeight__I(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemHeight((int) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemHeight__Lorg_trinitydesktop_qt_QMenuItem_2(JNIEnv* env, jobject obj, jobject mi)
{
	jint xret = (jint) ((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemHeight((TQMenuItem*) QtSupport::getQt(env, mi));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_itemParameter(JNIEnv* env, jobject obj, jint id)
{
	jint xret = (jint) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->itemParameter((int) id);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_keyPressEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_keyPressEvent((TQKeyEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_leaveEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_leaveEvent((TQEvent*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_menuDelPopup(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuDelPopup((TQPopupMenu*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_menuInsPopup(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_menuInsPopup((TQPopupMenu*) QtSupport::getQt(env, arg1));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_mouseMoveEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_mouseMoveEvent((TQMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_mousePressEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_mousePressEvent((TQMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_mouseReleaseEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_mouseReleaseEvent((TQMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_newTQPopupMenu__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPopupMenuJBridge((TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_paintEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_paintEvent((TQPaintEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_pixmap(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->pixmap((int) id), "org.trinitydesktop.qt.TQPixmap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_popup__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject pos)
{
	((TQPopupMenu*) QtSupport::getQt(env, obj))->popup((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_popup__Lorg_trinitydesktop_qt_QPoint_2I(JNIEnv* env, jobject obj, jobject pos, jint indexAtPoint)
{
	((TQPopupMenu*) QtSupport::getQt(env, obj))->popup((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos), (int) indexAtPoint);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_removeItem(JNIEnv* env, jobject obj, jint id)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->removeItem((int) id);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setAccel(JNIEnv* env, jobject obj, jobject key, jint id)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setAccel((const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, key), (int) id);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setFont(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenu*) QtSupport::getQt(env, obj))->setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setId(JNIEnv* env, jobject obj, jint index, jint id)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setId((int) index, (int) id);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setItemChecked(JNIEnv* env, jobject obj, jint id, jboolean check)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setItemChecked((int) id, (bool) check);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setItemEnabled(JNIEnv* env, jobject obj, jint id, jboolean enable)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setItemEnabled((int) id, (bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setItemParameter(JNIEnv* env, jobject obj, jint id, jint param)
{
	jboolean xret = (jboolean) ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setItemParameter((int) id, (int) param);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setItemVisible(JNIEnv* env, jobject obj, jint id, jboolean visible)
{
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setItemVisible((int) id, (bool) visible);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_setWhatsThis(JNIEnv* env, jobject obj, jint id, jstring arg2)
{
static TQString* _qstring_arg2 = 0;
	((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->setWhatsThis((int) id, (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQPopupMenu*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_styleChange(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_styleChange((TQStyle&)*(TQStyle*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_text(JNIEnv* env, jobject obj, jint id)
{
	TQString  _qstring;
	_qstring = ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->text((int) id);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_timerEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_timerEvent((TQTimerEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQPopupMenuJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQPopupMenuJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_updateItem(JNIEnv* env, jobject obj, jint id)
{
	((TQPopupMenu*) QtSupport::getQt(env, obj))->updateItem((int) id);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_whatsThis(JNIEnv* env, jobject obj, jint id)
{
	TQString  _qstring;
	_qstring = ((TQMenuData*)(TQPopupMenu*) QtSupport::getQt(env, obj))->whatsThis((int) id);
	return QtSupport::fromTQString(env, &_qstring);
}

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

	if ((bool) Java_org_trinitydesktop_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member)) {
		Java_org_trinitydesktop_qt_QPopupMenu_setAccel(env, obj, accel, identifier);
	}

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject receiver, jstring member)
{
	jint identifier = Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Ljava_lang_String_2II(env, obj, text, -1, -1);
	Java_org_trinitydesktop_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject icon, jstring text, jobject receiver, jstring member)
{
static TQString * _qstring_text = 0;
	jint identifier = Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Ljava_lang_String_2II(env, obj, icon, text, -1, -1);
	Java_org_trinitydesktop_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);
	
	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject pixmap, jobject receiver, jstring member)
{
	jint identifier = Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QPixmap_2II(env, obj, pixmap, -1, -1);
	Java_org_trinitydesktop_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject icon, jobject pixmap, jobject receiver, jstring member)
{
	jint identifier = Java_org_trinitydesktop_qt_QPopupMenu_insertItem__Lorg_trinitydesktop_qt_QIconSet_2Lorg_trinitydesktop_qt_QPixmap_2II(env, obj, icon, pixmap, -1, -1);
	Java_org_trinitydesktop_qt_QPopupMenu_connectItem(env, obj, identifier, receiver, member);

	return identifier;
}

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

	if (	((TQPopupMenuJBridge*) 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_trinitydesktop_qt_QPopupMenu_disconnectItem(JNIEnv *env, jobject obj, jint identifier, jobject receiver, jstring member)
{
	JavaSlot * javaSlot = QtSupport::slotForReceiver(env, receiver, member);

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

