/***************************************************************************
                            KAction.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 <kaction.h>
#include <qstring.h>
#include <qcstring.h>
#include <qpixmap.h>
#include <qiconset.h>

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

class KActionJBridge : public KAction
{
public:
	KActionJBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(text, cut, receiver, slot, parent, name) {}
	KActionJBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(text, pix, cut, receiver, slot, parent, name) {}
	KActionJBridge(const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(text, pix, cut, receiver, slot, parent, name) {}
	KActionJBridge(const KGuiItem& item, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(item, cut, receiver, slot, parent, name) {}
	KActionJBridge(const QString& text, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, cut, parent, name) {}
	KActionJBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KAction(text, cut, receiver, slot, parent, name) {}
	KActionJBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, pix, cut, parent, name) {}
	KActionJBridge(const QString& text, const QString& pix, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, pix, cut, parent, name) {}
	KActionJBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KAction(text, pix, cut, receiver, slot, parent, name) {}
	KActionJBridge(const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KAction(text, pix, cut, receiver, slot, parent, name) {}
	KActionJBridge(QObject* parent, const char* name) : KAction(parent, name) {}
	~KActionJBridge() {QtSupport::qtKeyDeleted(this);}
	KToolBar*  protected_toolBar(int index) {
		return (KToolBar* ) KAction::toolBar(index);
	}
	QPopupMenu*  protected_popupMenu(int index) {
		return (QPopupMenu* ) KAction::popupMenu(index);
	}
	void protected_removeContainer(int index) {
		KAction::removeContainer(index);
		return;
	}
	int  protected_findContainer(const QWidget* widget) {
		return (int ) KAction::findContainer(widget);
	}
	void protected_plugMainWindowAccel(QWidget* w) {
		KAction::plugMainWindowAccel(w);
		return;
	}
	void protected_addContainer(QWidget* parent, int id) {
		KAction::addContainer(parent, id);
		return;
	}
	void protected_addContainer(QWidget* parent, QWidget* representative) {
		KAction::addContainer(parent, representative);
		return;
	}
	void protected_setShortcut(int i) {
		KAction::setShortcut(i);
		return;
	}
//	void protected_setShortcut(QPopupMenu* menu, int id) {
//		KAction::setShortcut(menu, id);
//		return;
//	}
//	void protected_setGroup(int id, const QString& grp) {
//		KAction::setGroup(id, grp);
//		return;
//	}
//	void protected_setText(int i, const QString& text) {
//		KAction::setText(i, text);
//		return;
//	}
//	void protected_setEnabled(int i, bool enable) {
//		KAction::setEnabled(i, enable);
//		return;
//	}
//	void protected_setIconSet(int i, const QIconSet& iconSet) {
//		KAction::setIconSet(i, iconSet);
//		return;
//	}
//	void protected_setIcon(int i, const QString& icon) {
//		KAction::setIcon(i, icon);
//		return;
//	}
//	void protected_setToolTip(int id, const QString& tt) {
//		KAction::setToolTip(id, tt);
//		return;
//	}
//	void protected_setWhatsThis(int i, const QString& text) {
//		KAction::setWhatsThis(i, text);
//		return;
//	}
	void protected_slotDestroyed() {
		KAction::slotDestroyed();
		return;
	}
	void protected_slotKeycodeChanged() {
		KAction::slotKeycodeChanged();
		return;
	}
	void protected_slotActivated() {
		KAction::slotActivated();
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KActionCollection_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KActionCollection*) 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_KAction_newKAction__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KActionCollection_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject pix, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconSet&) *(QIconSet *) QtSupport::getQt(env, pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KActionCollection*) 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_KAction_newKAction__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KActionCollection_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jstring pix, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_pix = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, pix, &_qstring_pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KActionCollection*) 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_KAction_newKAction__Lorg_kde_koala_KGuiItem_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KActionCollection_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject item, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((KGuiItem&) *(KGuiItem *) QtSupport::getQt(env, item), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KActionCollection*) 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_KAction_newKAction__Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject cut, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) 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_KAction_newKAction__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), KShortcut(), 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) 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_KAction_newKAction__Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv *env, jobject obj, jstring text, jobject cut, jobject receiver, jstring slot, jobject parent)
{
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) QtSupport::getQt(env, parent), 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject pix, jobject cut, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconSet&) *(QIconSet *) QtSupport::getQt(env, pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) 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_KAction_newKAction__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jstring text, jobject pix)
{
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconSet&) *(QIconSet *) QtSupport::getQt(env, pix), KShortcut(), 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jstring pix, jobject cut, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QString * _qstring_pix = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, pix, &_qstring_pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) 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_KAction_newKAction__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jstring pix)
{
static QString * _qstring_pix = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, pix, &_qstring_pix), KShortcut(), 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jobject pix, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconSet&) *(QIconSet *) QtSupport::getQt(env, pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) 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_KAction_newKAction__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv *env, jobject obj, jstring text, jobject pix, jobject cut, jobject receiver, jstring slot, jobject parent)
{
static QCString * _qstring_slot = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconSet&) *(QIconSet *) QtSupport::getQt(env, pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) QtSupport::getQt(env, parent), 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_newKAction__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text, jstring pix, jobject cut, jobject receiver, jstring slot, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
static QCString * _qstring_slot = 0;
static QString * _qstring_pix = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, pix, &_qstring_pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) 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_KAction_newKAction__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_koala_KShortcut_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv *env, jobject obj, jstring text, jstring pix, jobject cut, jobject receiver, jstring slot, jobject parent)
{
static QCString * _qstring_slot = 0;
static QString * _qstring_pix = 0;
static QString * _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KActionJBridge((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QString&) * (QString *) QtSupport::toQString(env, pix, &_qstring_pix), (KShortcut&) *(KShortcut *) QtSupport::getQt(env, cut), (QObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (QObject*) QtSupport::getQt(env, parent), 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KAction*)QtSupport::getQt(env, obj))->parent() == (QObject *) 0) {
		delete (KAction*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KAction_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_plug__Lorg_kde_qt_QWidget_2I(JNIEnv *env, jobject obj, jobject w, jint index)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->plug((QWidget*) QtSupport::getQt(env, w), (int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_plug__Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject w)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->plug((QWidget*) QtSupport::getQt(env, w), -1);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_plugAccel__Lorg_kde_koala_KAccel_2Z(JNIEnv *env, jobject obj, jobject accel, jboolean configurable)
{
	((KAction*) QtSupport::getQt(env, obj))->plugAccel((KAccel*) QtSupport::getQt(env, accel), (bool) configurable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_plugAccel__Lorg_kde_koala_KAccel_2(JNIEnv *env, jobject obj, jobject accel)
{
	((KAction*) QtSupport::getQt(env, obj))->plugAccel((KAccel*) QtSupport::getQt(env, accel), true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_unplug(JNIEnv *env, jobject obj, jobject w)
{
	((KAction*) QtSupport::getQt(env, obj))->unplug((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_unplugAccel(JNIEnv *env, jobject obj)
{
	((KAction*) QtSupport::getQt(env, obj))->unplugAccel();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAction_isPlugged__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->isPlugged();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAction_isPlugged__Lorg_kde_qt_QWidget_2I(JNIEnv *env, jobject obj, jobject container, jint identifier)
{
	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->isPlugged((QWidget*) QtSupport::getQt(env, container), (int) identifier);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAction_isPlugged__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject container, jobject _representative)
{
	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->isPlugged((QWidget*) QtSupport::getQt(env, container), (QWidget*) QtSupport::getQt(env, _representative));
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_container(JNIEnv *env, jobject obj, jint index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KAction*) QtSupport::getQt(env, obj))->container((int) index), "org.kde.qt.QWidget");
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_itemId(JNIEnv *env, jobject obj, jint index)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->itemId((int) index);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_representative(JNIEnv *env, jobject obj, jint index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KAction*) QtSupport::getQt(env, obj))->representative((int) index), "org.kde.qt.QWidget");
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_containerCount(JNIEnv *env, jobject obj)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->containerCount();
}

//JNIEXPORT jobject JNICALL
//Java_org_kde_koala_KAction_pixmap(JNIEnv *env, jobject obj)
//{
//	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (((KAction*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.QPixmap", TRUE);
//}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAction_hasIconSet(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->hasIconSet();
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_shortcut(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &((KAction*) QtSupport::getQt(env, obj))->shortcut(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_shortcutDefault(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &((KAction*) QtSupport::getQt(env, obj))->shortcutDefault(), "org.kde.koala.KShortcut");
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAction_isEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->isEnabled();
}

//JNIEXPORT jboolean JNICALL
//Java_org_kde_koala_KAction_isConfigurable(JNIEnv *env, jobject obj)
//{
//	return (jboolean) ((KAction*) QtSupport::getQt(env, obj))->isConfigurable();
//}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_iconSet(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (((KAction*) QtSupport::getQt(env, obj))->iconSet()), "org.kde.qt.QIconSet", TRUE);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_parentCollection(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KAction*) QtSupport::getQt(env, obj))->parentCollection(), "org.kde.koala.KActionCollection");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_unplugAll(JNIEnv *env, jobject obj)
{
	((KAction*) QtSupport::getQt(env, obj))->unplugAll();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_accel(JNIEnv *env, jobject obj)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->accel();
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setAccel(JNIEnv *env, jobject obj, jint key)
{
	((KAction*) QtSupport::getQt(env, obj))->setAccel((int) key);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setStatusText(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	((KAction*) QtSupport::getQt(env, obj))->setStatusText((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_menuId(JNIEnv *env, jobject obj, jint i)
{
	return (jint) ((KAction*) QtSupport::getQt(env, obj))->menuId((int) i);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setText__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	((KAction*) QtSupport::getQt(env, obj))->setText((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setShortcut__Lorg_kde_koala_KShortcut_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((KAction*) QtSupport::getQt(env, obj))->setShortcut((KShortcut&) *(KShortcut *) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setWhatsThis__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	((KAction*) QtSupport::getQt(env, obj))->setWhatsThis((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setIconSet__Lorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jobject iconSet)
{
	((KAction*) QtSupport::getQt(env, obj))->setIconSet((QIconSet&) *(QIconSet *) QtSupport::getQt(env, iconSet));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setIcon__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring icon)
{
static QString * _qstring_icon = 0;
	((KAction*) QtSupport::getQt(env, obj))->setIcon((QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setEnabled__Z(JNIEnv *env, jobject obj, jboolean enable)
{
	((KAction*) QtSupport::getQt(env, obj))->setEnabled((bool) enable);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setConfigurable(JNIEnv *env, jobject obj, jboolean arg1)
//{
//	((KAction*) QtSupport::getQt(env, obj))->setConfigurable((bool) arg1);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_activate(JNIEnv *env, jobject obj)
{
	((KAction*) QtSupport::getQt(env, obj))->activate();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_getToolButtonID(JNIEnv *env, jclass obj)
{
	return (jint) KActionJBridge::getToolButtonID();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_toolBar(JNIEnv *env, jobject obj, jint index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KActionJBridge*) QtSupport::getQt(env, obj))->protected_toolBar((int) index), "org.kde.koala.KToolBar");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KAction_popupMenu(JNIEnv *env, jobject obj, jint index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KActionJBridge*) QtSupport::getQt(env, obj))->protected_popupMenu((int) index), "org.kde.qt.QPopupMenu");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_removeContainer(JNIEnv *env, jobject obj, jint index)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_removeContainer((int) index);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAction_findContainer(JNIEnv *env, jobject obj, jobject widget)
{
	return (jint) ((KActionJBridge*) QtSupport::getQt(env, obj))->protected_findContainer((QWidget*) QtSupport::getQt(env, widget));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_plugMainWindowAccel(JNIEnv *env, jobject obj, jobject w)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_plugMainWindowAccel((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_addContainer__Lorg_kde_qt_QWidget_2I(JNIEnv *env, jobject obj, jobject parent, jint identifier)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_addContainer((QWidget*) QtSupport::getQt(env, parent), (int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_addContainer__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject parent, jobject representative)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_addContainer((QWidget*) QtSupport::getQt(env, parent), (QWidget*) QtSupport::getQt(env, representative));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_setShortcut__I(JNIEnv *env, jobject obj, jint i)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setShortcut((int) i);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setShortcut__Lorg_kde_qt_QPopupMenu_2I(JNIEnv *env, jobject obj, jobject menu, jint identifier)
//{
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setShortcut((QPopupMenu*) QtSupport::getQt(env, menu), (int) identifier);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setGroup__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint identifier, jstring grp)
//{
//static QString * _qstring_grp = 0;
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setGroup((int) identifier, (QString&) * (QString *) QtSupport::toQString(env, grp, &_qstring_grp));
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setText__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint i, jstring text)
//{
//static QString * _qstring_text = 0;
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setText((int) i, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setEnabled__IZ(JNIEnv *env, jobject obj, jint i, jboolean enable)
//{
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setEnabled((int) i, (bool) enable);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setIconSet__ILorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jint i, jobject iconSet)
//{
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setIconSet((int) i, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, iconSet));
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setIcon__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint i, jstring icon)
//{
//static QString * _qstring_icon = 0;
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setIcon((int) i, (QString&) * (QString *) QtSupport::toQString(env, icon, &_qstring_icon));
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setToolTip__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint identifier, jstring tt)
//{
//static QString * _qstring_tt = 0;
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setToolTip((int) identifier, (QString&) * (QString *) QtSupport::toQString(env, tt, &_qstring_tt));
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KAction_setWhatsThis__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint i, jstring text)
//{
//static QString * _qstring_text = 0;
//	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_setWhatsThis((int) i, (QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_slotDestroyed(JNIEnv *env, jobject obj)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_slotDestroyed();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_slotKeycodeChanged(JNIEnv *env, jobject obj)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_slotKeycodeChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAction_slotActivated(JNIEnv *env, jobject obj)
{
	((KActionJBridge*) QtSupport::getQt(env, obj))->protected_slotActivated();
	return;
}

