/***************************************************************************
                            KToolBar.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 <ktoolbar.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDEJavaSlot.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KToolBar.h>

class KToolBarJBridge : public KToolBar
{
public:
	KToolBarJBridge(QWidget* parent, const char* name, bool honor_style, bool readConfig) : KToolBar(parent, name, honor_style, readConfig) {}
	KToolBarJBridge(QMainWindow* parentWindow, QMainWindow::ToolBarDock dock, bool newLine, const char* name, bool honor_style, bool readConfig) : KToolBar(parentWindow, dock, newLine, name, honor_style, readConfig) {}
	KToolBarJBridge(QMainWindow* parentWindow, QWidget* dock, bool newLine, const char* name, bool honor_style, bool readConfig) : KToolBar(parentWindow, dock, newLine, name, honor_style, readConfig) {}
	~KToolBarJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_mousePressEvent(QMouseEvent* arg1) {
		KToolBar::mousePressEvent(arg1);
		return;
	}
	void protected_childEvent(QChildEvent* e) {
		KToolBar::childEvent(e);
		return;
	}
	void protected_showEvent(QShowEvent* e) {
		KToolBar::showEvent(e);
		return;
	}
	void protected_resizeEvent(QResizeEvent* e) {
		KToolBar::resizeEvent(e);
		return;
	}
	bool  protected_event(QEvent* e) {
		return (bool ) KToolBar::event(e);
	}
	void protected_applyAppearanceSettings(KConfig* config, const QString& _configGroup, bool forceGlobal) {
		KToolBar::applyAppearanceSettings(config, _configGroup, forceGlobal);
		return;
	}
	QString  protected_settingsGroup() {
		return (QString ) KToolBar::settingsGroup();
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* e) {
		if (! QtSupport::eventDelegate(this, "childEvent", e, "org.kde.qt.QChildEvent")) {
			KToolBar::childEvent(e);
		}
		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* e) {
		if (! QtSupport::eventDelegate(this, "showEvent", e, "org.kde.qt.QShowEvent")) {
			KToolBar::showEvent(e);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* e) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", e, "org.kde.qt.QContextMenuEvent")) {
			QDockWindow::contextMenuEvent(e);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KToolBar::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")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::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* e) {
		if (! QtSupport::eventDelegate(this, "hideEvent", e, "org.kde.qt.QHideEvent")) {
			QDockWindow::hideEvent(e);
		}
		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")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", e, "org.kde.qt.QResizeEvent")) {
			KToolBar::resizeEvent(e);
		}
		return;
	}
};


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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_newKToolBar__Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KToolBarJBridge((QWidget*) QtSupport::getQt(env, parent), 0, FALSE, TRUE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_newKToolBar__Lorg_kde_qt_QMainWindow_2IZLjava_lang_String_2ZZ(JNIEnv *env, jobject obj, jobject parentWindow, jint dock, jboolean newLine, jstring name, jboolean honor_style, jboolean readConfig)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KToolBarJBridge((QMainWindow*) QtSupport::getQt(env, parentWindow), (QMainWindow::ToolBarDock) dock, (bool) newLine, (char*) QtSupport::toCharString(env, name, &_qstring_name), (bool) honor_style, (bool) readConfig));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_newKToolBar__Lorg_kde_qt_QMainWindow_2I(JNIEnv *env, jobject obj, jobject parentWindow, jint dock)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KToolBarJBridge((QMainWindow*) QtSupport::getQt(env, parentWindow), (QMainWindow::ToolBarDock) dock, false, 0, FALSE, TRUE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_newKToolBar__Lorg_kde_qt_QMainWindow_2Lorg_kde_qt_QWidget_2ZLjava_lang_String_2ZZ(JNIEnv *env, jobject obj, jobject parentWindow, jobject dock, jboolean newLine, jstring name, jboolean honor_style, jboolean readConfig)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KToolBarJBridge((QMainWindow*) QtSupport::getQt(env, parentWindow), (QWidget*) QtSupport::getQt(env, dock), (bool) newLine, (char*) QtSupport::toCharString(env, name, &_qstring_name), (bool) honor_style, (bool) readConfig));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_newKToolBar__Lorg_kde_qt_QMainWindow_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject parentWindow, jobject dock)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KToolBarJBridge((QMainWindow*) QtSupport::getQt(env, parentWindow), (QWidget*) QtSupport::getQt(env, dock), false, 0, FALSE, TRUE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KToolBar_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Ljava_lang_String_2IZLjava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jobject obj, jstring icon, jint identifier, jboolean enabled, jstring text, jint index, jobject _instance)
{
static QString * _qstring_text = 0;
static QString * _qstring_icon = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon), (int) identifier, (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) index, (KInstance*) QtSupport::getQt(env, _instance));
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Ljava_lang_String_2I(JNIEnv *env, jobject obj, jstring icon, jint identifier)
{
static QString * _qstring_icon = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon), (int) identifier, true, QString::null, -1, KGlobal::instance());
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Ljava_lang_String_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2ZLjava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jobject obj, jstring icon, jint identifier, jstring signal, jobject receiver, jstring slot, jboolean enabled, jstring text, jint index, jobject _instance)
{
static QString * _qstring_text = 0;
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_icon = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) index, (KInstance*) QtSupport::getQt(env, _instance));
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Ljava_lang_String_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring icon, jint identifier, jstring signal, jobject receiver, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_icon = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", true, QString::null, -1, KGlobal::instance());
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2IZLjava_lang_String_2I(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jboolean enabled, jstring text, jint index)
{
static QString * _qstring_text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2I(JNIEnv *env, jobject obj, jobject pixmap, jint identifier)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, true, QString::null, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2ZLjava_lang_String_2I(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jstring signal, jobject receiver, jstring slot, jboolean enabled, jstring text, jint index)
{
static QString * _qstring_text = 0;
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jstring signal, jobject receiver, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", true, QString::null, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2ILorg_kde_qt_QPopupMenu_2ZLjava_lang_String_2I(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jobject popup, jboolean enabled, jstring _text, jint index)
{
static QString * _qstring__text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (QPopupMenu*) QtSupport::getQt(env, popup), (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, _text, &_qstring__text), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertButton__Lorg_kde_qt_QPixmap_2ILorg_kde_qt_QPopupMenu_2ZLjava_lang_String_2(JNIEnv *env, jobject obj, jobject pixmap, jint identifier, jobject popup, jboolean enabled, jstring _text)
{
static QString * _qstring__text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertButton((QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (int) identifier, (QPopupMenu*) QtSupport::getQt(env, popup), (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, _text, &_qstring__text), -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertLined__Ljava_lang_String_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2ZLjava_lang_String_2II(JNIEnv *env, jobject obj, jstring text, jint identifier, jstring signal, jobject receiver, jstring slot, jboolean enabled, jstring toolTipText, jint size, jint index)
{
static QString * _qstring_toolTipText = 0;
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertLined((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, toolTipText, &_qstring_toolTipText), (int) size, (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertLined__Ljava_lang_String_2ILjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jint identifier, jstring signal, jobject receiver, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertLined((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", true, QString::null, 70, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertCombo___3Ljava_lang_String_2IZLjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2ZLjava_lang_String_2III(JNIEnv *env, jobject obj, jobjectArray list, jint identifier, jboolean writable, jstring signal, jobject receiver, jstring slot, jboolean enabled, jstring tooltiptext, jint size, jint index, jint policy)
{
static QString * _qstring_tooltiptext = 0;
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QStringList * _qlist_list = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertCombo((QStringList&) * (QStringList *) QtSupport::toQStringList(env, list, &_qlist_list), (int) identifier, (bool) writable, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, tooltiptext, &_qstring_tooltiptext), (int) size, (int) index, (QComboBox::Policy) policy);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertCombo___3Ljava_lang_String_2IZLjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray list, jint identifier, jboolean writable, jstring signal, jobject receiver, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QStringList * _qlist_list = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertCombo((QStringList&) * (QStringList *) QtSupport::toQStringList(env, list, &_qlist_list), (int) identifier, (bool) writable, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", true, QString::null, 70, -1, QComboBox::AtBottom);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertCombo__Ljava_lang_String_2IZLjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2ZLjava_lang_String_2III(JNIEnv *env, jobject obj, jstring text, jint identifier, jboolean writable, jstring signal, jobject recevier, jstring slot, jboolean enabled, jstring tooltiptext, jint size, jint index, jint policy)
{
static QString * _qstring_tooltiptext = 0;
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertCombo((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (bool) writable, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::getQt(env, recevier), (char*) QtSupport::toCharString(env, slot, &_qstring_slot), (bool) enabled, (QString&) * (QString *) QtSupport::toQString(env, tooltiptext, &_qstring_tooltiptext), (int) size, (int) index, (QComboBox::Policy) policy);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertCombo__Ljava_lang_String_2IZLjava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jint identifier, jboolean writable, jstring signal, jobject recevier, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
static QString * _qstring_text = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertCombo((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (int) identifier, (bool) writable, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::getQt(env, recevier), (char*) QtSupport::toCharString(env, slot, &_qstring_slot), true, QString::null, 70, -1, QComboBox::AtBottom);
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertLineSeparator__II(JNIEnv *env, jobject obj, jint index, jint identifier)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertLineSeparator((int) index, (int) identifier);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertLineSeparator__(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertLineSeparator(-1, -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertWidget__IILorg_kde_qt_QWidget_2I(JNIEnv *env, jobject obj, jint identifier, jint width, jobject _widget, jint index)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertWidget((int) identifier, (int) width, (QWidget*) QtSupport::getQt(env, _widget), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertWidget__IILorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jint identifier, jint width, jobject _widget)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertWidget((int) identifier, (int) width, (QWidget*) QtSupport::getQt(env, _widget), -1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertAnimatedWidget__ILorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv *env, jobject obj, jint identifier, jobject receiver, jstring slot, jstring icons, jint index)
{
static QString * _qstring_icons = 0;
static QCString * _qstring_slot = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertAnimatedWidget((int) identifier, (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke(int)", (QString&) * (QString *) QtSupport::toQString(env, icons, &_qstring_icons), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_insertAnimatedWidget__ILorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jint identifier, jobject receiver, jstring slot, jstring icons)
{
static QString * _qstring_icons = 0;
static QCString * _qstring_slot = 0;
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->insertAnimatedWidget((int) identifier, (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke(int)", (QString&) * (QString *) QtSupport::toQString(env, icons, &_qstring_icons), -1);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_animatedWidget(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KToolBar*) QtSupport::getQt(env, obj))->animatedWidget((int) identifier), "org.kde.koala.KAnimWidget");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_addConnection(JNIEnv *env, jobject obj, jint identifier, jstring signal, jobject receiver, jstring slot)
{
static QCString * _qstring_slot = 0;
static QCString * _qstring_signal = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->addConnection((int) identifier, (char*) QtSupport::toCharString(env, signal, &_qstring_signal), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()");
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setButtonPixmap(JNIEnv *env, jobject obj, jint identifier, jobject _pixmap)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setButtonPixmap((int) identifier, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, _pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setButtonIcon(JNIEnv *env, jobject obj, jint identifier, jstring _icon)
{
static QString * _qstring__icon = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->setButtonIcon((int) identifier, (QString&) * (QString *) QtSupport::toQString(env, _icon, &_qstring__icon));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setButtonIconSet(JNIEnv *env, jobject obj, jint identifier, jobject iconset)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setButtonIconSet((int) identifier, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, iconset));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setDelayedPopup__ILorg_kde_qt_QPopupMenu_2Z(JNIEnv *env, jobject obj, jint identifier, jobject _popup, jboolean toggle)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setDelayedPopup((int) identifier, (QPopupMenu*) QtSupport::getQt(env, _popup), (bool) toggle);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setDelayedPopup__ILorg_kde_qt_QPopupMenu_2(JNIEnv *env, jobject obj, jint identifier, jobject _popup)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setDelayedPopup((int) identifier, (QPopupMenu*) QtSupport::getQt(env, _popup), false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setAutoRepeat__IZ(JNIEnv *env, jobject obj, jint identifier, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setAutoRepeat((int) identifier, (bool) flag);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setAutoRepeat__I(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setAutoRepeat((int) identifier, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setToggle__IZ(JNIEnv *env, jobject obj, jint identifier, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setToggle((int) identifier, (bool) flag);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setToggle__I(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setToggle((int) identifier, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_toggleButton(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->toggleButton((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setButton(JNIEnv *env, jobject obj, jint identifier, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setButton((int) identifier, (bool) flag);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_isButtonOn(JNIEnv *env, jobject obj, jint identifier)
{
	return (jboolean) ((KToolBar*) QtSupport::getQt(env, obj))->isButtonOn((int) identifier);
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_insertComboList(JNIEnv *env, jobject obj, jint identifier, jobjectArray list, jint index)
{
static QStringList * _qlist_list = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->insertComboList((int) identifier, (QStringList&) * (QStringList *) QtSupport::toQStringList(env, list, &_qlist_list), (int) index);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_clearCombo(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->clearCombo((int) identifier);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_getCombo(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KToolBar*) QtSupport::getQt(env, obj))->getCombo((int) identifier), "org.kde.koala.KComboBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_getLined(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KToolBar*) QtSupport::getQt(env, obj))->getLined((int) identifier), "org.kde.koala.KLineEdit");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_getButton(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KToolBar*) QtSupport::getQt(env, obj))->getButton((int) identifier), "org.kde.koala.KToolBarButton");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_alignItemRight__IZ(JNIEnv *env, jobject obj, jint identifier, jboolean right)
{
	((KToolBar*) QtSupport::getQt(env, obj))->alignItemRight((int) identifier, (bool) right);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_alignItemRight__I(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->alignItemRight((int) identifier, true);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_getWidget(JNIEnv *env, jobject obj, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KToolBar*) QtSupport::getQt(env, obj))->getWidget((int) identifier), "org.kde.qt.QWidget");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setItemAutoSized__IZ(JNIEnv *env, jobject obj, jint identifier, jboolean yes)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setItemAutoSized((int) identifier, (bool) yes);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setItemAutoSized__I(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setItemAutoSized((int) identifier, true);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_hideItem(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->hideItem((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_showItem(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->showItem((int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setFullSize__Z(JNIEnv *env, jobject obj, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setFullSize((bool) flag);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setFullSize__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setFullSize(true);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_fullSize(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KToolBar*) QtSupport::getQt(env, obj))->fullSize();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_enableMoving__Z(JNIEnv *env, jobject obj, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->enableMoving((bool) flag);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_enableMoving__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->enableMoving(true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setBarPos(JNIEnv *env, jobject obj, jint bpos)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setBarPos((KToolBar::BarPosition) bpos);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_barPos(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->barPos();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_enable(JNIEnv *env, jobject obj, jint stat)
{
	return (jboolean) ((KToolBar*) QtSupport::getQt(env, obj))->enable((KToolBar::BarStatus) stat);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setMaxHeight(JNIEnv *env, jobject obj, jint h)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setMaxHeight((int) h);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_maxHeight(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->maxHeight();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setMaxWidth(JNIEnv *env, jobject obj, jint dw)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setMaxWidth((int) dw);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_maxWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->maxWidth();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setTitle(JNIEnv *env, jobject obj, jstring _title)
{
static QString * _qstring__title = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->setTitle((QString&) * (QString *) QtSupport::toQString(env, _title, &_qstring__title));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_enableFloating(JNIEnv *env, jobject obj, jboolean arrrrrrgh)
{
	((KToolBar*) QtSupport::getQt(env, obj))->enableFloating((bool) arrrrrrgh);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setIconText__I(JNIEnv *env, jobject obj, jint it)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setIconText((KToolBar::IconText) it);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setIconText__IZ(JNIEnv *env, jobject obj, jint it, jboolean update)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setIconText((KToolBar::IconText) it, (bool) update);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_iconTextId(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->iconText();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setIconSize__I(JNIEnv *env, jobject obj, jint size)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setIconSize((int) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setIconSize__IZ(JNIEnv *env, jobject obj, jint size, jboolean update)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setIconSize((int) size, (bool) update);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KToolBar_iconSize(JNIEnv *env, jobject obj)
{
	return (jint) ((KToolBar*) QtSupport::getQt(env, obj))->iconSize();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setEnableContextMenu__Z(JNIEnv *env, jobject obj, jboolean enable)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setEnableContextMenu((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setEnableContextMenu__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setEnableContextMenu(true);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_contextMenuEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KToolBar*) QtSupport::getQt(env, obj))->contextMenuEnabled();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setItemNoStyle__IZ(JNIEnv *env, jobject obj, jint identifier, jboolean no_style)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setItemNoStyle((int) identifier, (bool) no_style);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setItemNoStyle__I(JNIEnv *env, jobject obj, jint identifier)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setItemNoStyle((int) identifier, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setFlat(JNIEnv *env, jobject obj, jboolean flag)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setFlat((bool) flag);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_saveState__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->saveState();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_saveSettings(JNIEnv *env, jobject obj, jobject config, jstring configGroup)
{
static QString * _qstring_configGroup = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->saveSettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, configGroup, &_qstring_configGroup));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_applySettings(JNIEnv *env, jobject obj, jobject config, jstring configGroup)
{
static QString * _qstring_configGroup = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->applySettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, configGroup, &_qstring_configGroup));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setXMLGUIClient(JNIEnv *env, jobject obj, jobject client)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setXMLGUIClient((KXMLGUIClient*) QtSupport::getQt(env, client));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setText(JNIEnv *env, jobject obj, jstring txt)
{
static QString * _qstring_txt = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->setText((QString&) * (QString *) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setStretchableWidget(JNIEnv *env, jobject obj, jobject w)
{
	((KToolBar*) QtSupport::getQt(env, obj))->setStretchableWidget((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KToolBar_sizePolicy(JNIEnv *env, jobject obj)
{
	QSizePolicy _s= ((KToolBar*) QtSupport::getQt(env, obj))->sizePolicy();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSizePolicy(_s.horData(),_s.verData(),_s.hasHeightForWidth()), "org.kde.qt.QSizePolicy", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_highlight(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KToolBar*) QtSupport::getQt(env, obj))->highlight();
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_updateRects__Z(JNIEnv *env, jobject obj, jboolean arg1)
{
	((KToolBar*) QtSupport::getQt(env, obj))->updateRects((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_updateRects__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->updateRects(FALSE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_loadState(JNIEnv *env, jobject obj, jobject e)
{
	((KToolBar*) QtSupport::getQt(env, obj))->loadState((QDomElement&) *(QDomElement *) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_saveState__Lorg_kde_qt_QDomElement_2(JNIEnv *env, jobject obj, jobject e)
{
	((KToolBar*) QtSupport::getQt(env, obj))->saveState((QDomElement&) *(QDomElement *) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_positionYourself__Z(JNIEnv *env, jobject obj, jboolean force)
{
	((KToolBar*) QtSupport::getQt(env, obj))->positionYourself((bool) force);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_positionYourself__(JNIEnv *env, jobject obj)
{
	((KToolBar*) QtSupport::getQt(env, obj))->positionYourself(false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_setIconText__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring txt)
{
static QString * _qstring_txt = 0;
	((KToolBar*) QtSupport::getQt(env, obj))->setIconText((QString&) * (QString *) QtSupport::toQString(env, txt, &_qstring_txt));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_mousePressEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_mousePressEvent((QMouseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_childEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_childEvent((QChildEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_showEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_showEvent((QShowEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_resizeEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_resizeEvent((QResizeEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KToolBar_event(JNIEnv *env, jobject obj, jobject e)
{
	return (jboolean) ((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_event((QEvent*) QtSupport::getQt(env, e));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_applyAppearanceSettings__Lorg_kde_koala_KConfig_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobject config, jstring _configGroup, jboolean forceGlobal)
{
static QString * _qstring__configGroup = 0;
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_applyAppearanceSettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, _configGroup, &_qstring__configGroup), (bool) forceGlobal);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KToolBar_applyAppearanceSettings__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject config, jstring _configGroup)
{
static QString * _qstring__configGroup = 0;
	((KToolBarJBridge*) QtSupport::getQt(env, obj))->protected_applyAppearanceSettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, _configGroup, &_qstring__configGroup), false);
	return;
}

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

