/***************************************************************************
                            KComboBox.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, 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 <kcombobox.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KComboBox.h>

class KComboBoxJBridge : public KComboBox
{
public:
	KComboBoxJBridge(QWidget* parent, const char* name) : KComboBox(parent, name) {}
	KComboBoxJBridge(bool rw, QWidget* parent, const char* name) : KComboBox(rw, parent, name) {}
	~KComboBoxJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_setCompletedText(const QString& arg1, bool arg2) {
		KComboBox::setCompletedText(arg1, arg2);
		return;
	}
	void protected_create(WId arg1, bool initializeWindow, bool destroyOldWindow) {
		KComboBox::create(arg1, initializeWindow, destroyOldWindow);
		return;
	}
	void protected_itemSelected(QListBoxItem* arg1) {
		KComboBox::itemSelected(arg1);
		return;
	}
	void protected_makeCompletion(const QString& arg1) {
		KComboBox::makeCompletion(arg1);
		return;
	}
	void keyPressEvent(QKeyEvent* e) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", e, "org.kde.qt.QKeyEvent")) {
			QComboBox::keyPressEvent(e);
		}
		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")) {
			QWidget::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")) {
			QWidget::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")) {
			QComboBox::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")) {
			QComboBox::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QComboBox::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* e) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", e, "org.kde.qt.QFocusEvent")) {
			QComboBox::focusInEvent(e);
		}
		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")) {
			QComboBox::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* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QComboBox::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QComboBox::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_newKComboBox__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 KComboBoxJBridge((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_koala_KComboBox_newKComboBox__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KComboBoxJBridge(0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_newKComboBox__ZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jboolean rw, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KComboBoxJBridge((bool) rw, (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_koala_KComboBox_newKComboBox__Z(JNIEnv *env, jobject obj, jboolean rw)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KComboBoxJBridge((bool) rw, 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KComboBox_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setEditURL(JNIEnv *env, jobject obj, jobject url)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setEditURL((KURL&) *(KURL *) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_insertURL__Lorg_kde_koala_KURL_2I(JNIEnv *env, jobject obj, jobject url, jint index)
{
	((KComboBox*) QtSupport::getQt(env, obj))->insertURL((KURL&) *(KURL *) QtSupport::getQt(env, url), (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_insertURL__Lorg_kde_koala_KURL_2(JNIEnv *env, jobject obj, jobject url)
{
	((KComboBox*) QtSupport::getQt(env, obj))->insertURL((KURL&) *(KURL *) QtSupport::getQt(env, url), -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_insertURL__Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KURL_2I(JNIEnv *env, jobject obj, jobject pixmap, jobject url, jint index)
{
	((KComboBox*) QtSupport::getQt(env, obj))->insertURL((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (KURL&) *(KURL *) QtSupport::getQt(env, url), (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_insertURL__Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KURL_2(JNIEnv *env, jobject obj, jobject pixmap, jobject url)
{
	((KComboBox*) QtSupport::getQt(env, obj))->insertURL((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (KURL&) *(KURL *) QtSupport::getQt(env, url), -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_changeURL__Lorg_kde_koala_KURL_2I(JNIEnv *env, jobject obj, jobject url, jint index)
{
	((KComboBox*) QtSupport::getQt(env, obj))->changeURL((KURL&) *(KURL *) QtSupport::getQt(env, url), (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_changeURL__Lorg_kde_qt_QPixmap_2Lorg_kde_koala_KURL_2I(JNIEnv *env, jobject obj, jobject pixmap, jobject url, jint index)
{
	((KComboBox*) QtSupport::getQt(env, obj))->changeURL((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (KURL&) *(KURL *) QtSupport::getQt(env, url), (int) index);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KComboBox_cursorPosition(JNIEnv *env, jobject obj)
{
	return (jint) ((KComboBox*) QtSupport::getQt(env, obj))->cursorPosition();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setAutoCompletion(JNIEnv *env, jobject obj, jboolean autocomplete)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setAutoCompletion((bool) autocomplete);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_autoCompletion(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->autoCompletion();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setContextMenuEnabled(JNIEnv *env, jobject obj, jboolean showMenu)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setContextMenuEnabled((bool) showMenu);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_isContextMenuEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->isContextMenuEnabled();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setURLDropsEnabled(JNIEnv *env, jobject obj, jboolean enable)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setURLDropsEnabled((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_isURLDropsEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->isURLDropsEnabled();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_contains(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->contains((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setTrapReturnKey(JNIEnv *env, jobject obj, jboolean trap)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setTrapReturnKey((bool) trap);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_trapReturnKey(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->trapReturnKey();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KComboBox_completionBox__Z(JNIEnv *env, jobject obj, jboolean create)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KComboBox*) QtSupport::getQt(env, obj))->completionBox((bool) create), "org.kde.koala.KCompletionBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KComboBox_completionBox__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KComboBox*) QtSupport::getQt(env, obj))->completionBox(true), "org.kde.koala.KCompletionBox");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setLineEdit(JNIEnv *env, jobject obj, jobject arg1)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setLineEdit((QLineEdit*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_rotateText(JNIEnv *env, jobject obj, jobject arg1)
{
	((KComboBox*) QtSupport::getQt(env, obj))->rotateText((KCompletionBase::KeyBindingType) *(KCompletionBase::KeyBindingType *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletedText__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletedText((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletedItems(JNIEnv *env, jobject obj, jobjectArray items)
{
static QStringList * _qlist_items = 0;
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletedItems((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCurrentItem__Ljava_lang_String_2ZI(JNIEnv *env, jobject obj, jstring item, jboolean insert, jint index)
{
static QString * _qstring_item = 0;
	((KComboBox*) QtSupport::getQt(env, obj))->setCurrentItem((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), (bool) insert, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCurrentItem__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring item)
{
static QString * _qstring_item = 0;
	((KComboBox*) QtSupport::getQt(env, obj))->setCurrentItem((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), false, -1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCurrentItem__I(JNIEnv *env, jobject obj, jint index)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setCurrentItem((int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletedText__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring arg1, jboolean arg2)
{
static QString * _qstring_arg1 = 0;
	((KComboBoxJBridge*) QtSupport::getQt(env, obj))->protected_setCompletedText((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_create__IZZ(JNIEnv *env, jobject obj, jint arg1, jboolean initializeWindow, jboolean destroyOldWindow)
{
	((KComboBoxJBridge*) QtSupport::getQt(env, obj))->protected_create((WId) arg1, (bool) initializeWindow, (bool) destroyOldWindow);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_create__(JNIEnv *env, jobject obj)
{
	((KComboBoxJBridge*) QtSupport::getQt(env, obj))->protected_create(0, true, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_itemSelected(JNIEnv *env, jobject obj, jobject arg1)
{
	((KComboBoxJBridge*) QtSupport::getQt(env, obj))->protected_itemSelected((QListBoxItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_makeCompletion(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KComboBoxJBridge*) QtSupport::getQt(env, obj))->protected_makeCompletion((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KComboBox_completionObject__Z(JNIEnv *env, jobject obj, jboolean hsig)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KComboBox*) QtSupport::getQt(env, obj))->completionObject((bool) hsig), "KCompletion");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KComboBox_completionObject__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KComboBox*) QtSupport::getQt(env, obj))->completionObject(true), "KCompletion");
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KComboBox_setCompletionObject__Lorg_kde_koala_KCompletion_2Z(JNIEnv *env, jobject obj, jobject arg1, jboolean hsig)
//{
//	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, arg1), (bool) hsig);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KComboBox_setCompletionObject__Lorg_kde_koala_KCompletion_2(JNIEnv *env, jobject obj, jobject arg1)
//{
//	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, arg1), true);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setHandleSignals(JNIEnv *env, jobject obj, jboolean arg1)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setHandleSignals((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_isCompletionObjectAutoDeleted(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->isCompletionObjectAutoDeleted();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setAutoDeleteCompletionObject(JNIEnv *env, jobject obj, jboolean autoDelete)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setAutoDeleteCompletionObject((bool) autoDelete);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setEnableSignals(JNIEnv *env, jobject obj, jboolean enable)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setEnableSignals((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_handleSignals(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->handleSignals();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_emitSignals(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->emitSignals();
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KComboBox_setCompletionMode(JNIEnv *env, jobject obj, jint mode)
//{
//	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionMode((KGlobalSettings::Completion) mode);
//	return;
//}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KComboBox_completionMode(JNIEnv *env, jobject obj)
{
	return (jint) ((KComboBox*) QtSupport::getQt(env, obj))->completionMode();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_setKeyBinding__II(JNIEnv *env, jobject obj, jint arg1, jint key)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->setKeyBinding((KComboBox::KeyBindingType) arg1, (int) key);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KComboBox_setKeyBinding__I(JNIEnv *env, jobject obj, jint arg1)
{
	return (jboolean) ((KComboBox*) QtSupport::getQt(env, obj))->setKeyBinding((KComboBox::KeyBindingType) arg1, 0);
}

//JNIEXPORT jint JNICALL
//Java_org_kde_koala_KComboBox_getKeyBinding(JNIEnv *env, jobject obj, jint item)
//{
//	return (jint) ((KComboBox*) QtSupport::getQt(env, obj))->getKeyBinding((KComboBox::KeyBindingType) item);
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_useGlobalKeyBindings(JNIEnv *env, jobject obj)
{
	((KComboBox*) QtSupport::getQt(env, obj))->useGlobalKeyBindings();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletedText(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletedText((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KComboBox_compObj(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KComboBox*) QtSupport::getQt(env, obj))->compObj(), "org.kde.koala.KComboBox");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletionMode(JNIEnv *env, jobject obj, jint mode)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionMode((KGlobalSettings::Completion) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletionObject__Lorg_kde_koala_KCompletion_2Z(JNIEnv *env, jobject obj, jobject arg1, jboolean hsig)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, arg1), (bool) hsig);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KComboBox_setCompletionObject__Lorg_kde_koala_KCompletion_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((KComboBox*) QtSupport::getQt(env, obj))->setCompletionObject((KCompletion*) QtSupport::getQt(env, arg1), true);
	return;
}
