//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpixmap.h>
#include <tqstring.h>
#include <tqpoint.h>
#include <tdepopupmenu.h>
#include <tqnamespace.h>

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

class TDEPopupMenuJBridge : public TDEPopupMenu
{
public:
	TDEPopupMenuJBridge(TQWidget* arg1,const char* arg2) : TDEPopupMenu(arg1,arg2) {};
	TDEPopupMenuJBridge(TQWidget* arg1) : TDEPopupMenu(arg1) {};
	TDEPopupMenuJBridge() : TDEPopupMenu() {};
	void protected_closeEvent(TQCloseEvent* arg1) {
		TDEPopupMenu::closeEvent(arg1);
		return;
	}
	void protected_keyPressEvent(TQKeyEvent* arg1) {
		TDEPopupMenu::keyPressEvent(arg1);
		return;
	}
	void protected_mouseReleaseEvent(TQMouseEvent* arg1) {
		TDEPopupMenu::mouseReleaseEvent(arg1);
		return;
	}
	void protected_mousePressEvent(TQMouseEvent* arg1) {
		TDEPopupMenu::mousePressEvent(arg1);
		return;
	}
	bool protected_focusNextPrevChild(bool arg1) {
		return (bool) TDEPopupMenu::focusNextPrevChild(arg1);
	}
	void protected_contextMenuEvent(TQContextMenuEvent* arg1) {
		TDEPopupMenu::contextMenuEvent(arg1);
		return;
	}
	void protected_hideEvent(TQHideEvent* arg1) {
		TDEPopupMenu::hideEvent(arg1);
		return;
	}
	TQString protected_underlineText(const TQString& arg1,uint arg2) {
		return (TQString) TDEPopupMenu::underlineText(arg1,arg2);
	}
	void protected_resetKeyboardVars(bool arg1) {
		TDEPopupMenu::resetKeyboardVars(arg1);
		return;
	}
	void protected_resetKeyboardVars() {
		TDEPopupMenu::resetKeyboardVars();
		return;
	}
	void protected_itemHighlighted(int arg1) {
		TDEPopupMenu::itemHighlighted(arg1);
		return;
	}
	void protected_showCtxMenu(TQPoint arg1) {
		TDEPopupMenu::showCtxMenu(arg1);
		return;
	}
	void protected_ctxMenuHiding() {
		TDEPopupMenu::ctxMenuHiding();
		return;
	}
	void protected_ctxMenuHideShowingMenu() {
		TDEPopupMenu::ctxMenuHideShowingMenu();
		return;
	}
	~TDEPopupMenuJBridge() {QtSupport::qtKeyDeleted(this);}
	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.koala.TDEPopupMenu","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.koala.TDEPopupMenu","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.koala.TDEPopupMenu","unsetCursor")) {
			TQWidget::unsetCursor();
		}
		return;
	}
	void hideEvent(TQHideEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"hideEvent",(void*)arg1,"org.trinitydesktop.qt.TQHideEvent")) {
			TDEPopupMenu::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.koala.TDEPopupMenu","polish")) {
			TQWidget::polish();
		}
		return;
	}
	void showMaximized() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TDEPopupMenu","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")) {
			TDEPopupMenu::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")) {
			TDEPopupMenu::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")) {
			TDEPopupMenu::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.koala.TDEPopupMenu","updateMask")) {
			TQWidget::updateMask();
		}
		return;
	}
	void showNormal() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TDEPopupMenu","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")) {
			TDEPopupMenu::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.koala.TDEPopupMenu","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")) {
			TDEPopupMenu::contextMenuEvent(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.TDEPopupMenu",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.koala.TDEPopupMenu","showMinimized")) {
			TQWidget::showMinimized();
		}
		return;
	}
};

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_changeTitle__ILorg_trinitydesktop_qt_QPixmap_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jint id, jobject icon, jstring text)
{
static TQString* _qstring_text = 0;
	((TDEPopupMenu*) QtSupport::getQt(env, obj))->changeTitle((int) id, (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_closeEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_closeEvent((TQCloseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_contextMenuEvent(JNIEnv* env, jobject obj, jobject e)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_contextMenuEvent((TQContextMenuEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_contextMenuFocusItem(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TDEPopupMenuJBridge::contextMenuFocusItem();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_contextMenuFocus(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEPopupMenuJBridge::contextMenuFocus(), "org.trinitydesktop.koala.TDEPopupMenu");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_ctxMenuHideShowingMenu(JNIEnv* env, jobject obj)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_ctxMenuHideShowingMenu();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_ctxMenuHiding(JNIEnv* env, jobject obj)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_ctxMenuHiding();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEPopupMenu_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_hideContextMenu(JNIEnv* env, jobject obj)
{
	((TDEPopupMenu*) QtSupport::getQt(env, obj))->hideContextMenu();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_hideEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_hideEvent((TQHideEvent*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_insertTitle__Lorg_trinitydesktop_qt_QPixmap_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TDEPopupMenu*) QtSupport::getQt(env, obj))->insertTitle((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_insertTitle__Lorg_trinitydesktop_qt_QPixmap_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TDEPopupMenu*) QtSupport::getQt(env, obj))->insertTitle((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_insertTitle__Lorg_trinitydesktop_qt_QPixmap_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jobject icon, jstring text, jint id, jint index)
{
static TQString* _qstring_text = 0;
	jint xret = (jint) ((TDEPopupMenu*) QtSupport::getQt(env, obj))->insertTitle((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) id, (int) index);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_itemHighlighted(JNIEnv* env, jobject obj, jint whichItem)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_itemHighlighted((int) whichItem);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_keyPressEvent(JNIEnv* env, jobject obj, jobject e)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_keyPressEvent((TQKeyEvent*) QtSupport::getQt(env, e));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_mousePressEvent(JNIEnv* env, jobject obj, jobject e)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_mousePressEvent((TQMouseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_mouseReleaseEvent(JNIEnv* env, jobject obj, jobject e)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_mouseReleaseEvent((TQMouseEvent*) QtSupport::getQt(env, e));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_newTDEPopupMenu__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 TDEPopupMenuJBridge((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_koala_TDEPopupMenu_resetKeyboardVars__(JNIEnv* env, jobject obj)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_resetKeyboardVars();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_resetKeyboardVars__Z(JNIEnv* env, jobject obj, jboolean noMatches)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_resetKeyboardVars((bool) noMatches);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_setKeyboardShortcutsEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDEPopupMenu*) QtSupport::getQt(env, obj))->setKeyboardShortcutsEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_setKeyboardShortcutsExecute(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDEPopupMenu*) QtSupport::getQt(env, obj))->setKeyboardShortcutsExecute((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_showCtxMenu(JNIEnv* env, jobject obj, jobject pos)
{
	((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_showCtxMenu((TQPoint)*(TQPoint*) QtSupport::getQt(env, pos));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_state(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEPopupMenu*) QtSupport::getQt(env, obj))->state();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_titlePixmap(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TDEPopupMenu*) QtSupport::getQt(env, obj))->titlePixmap((int) id)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDEPopupMenu_underlineText(JNIEnv* env, jobject obj, jstring text, jint length)
{
	TQString  _qstring;
static TQString* _qstring_text = 0;
	_qstring = ((TDEPopupMenuJBridge*) QtSupport::getQt(env, obj))->protected_underlineText((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (uint) length);
	return QtSupport::fromTQString(env, &_qstring);
}

