/***************************************************************************
                            kde_KAction.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KAction.h"
}

#include <qpixmap.h>
#include <qiconset.h>
#include <kaction.h>

class KActionBridge : public KAction
{
public:
	KActionBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(text, cut, receiver, slot, parent, name) {}
	KActionBridge(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) {}
	KActionBridge(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) {}
	KActionBridge(const KGuiItem& item, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KAction(item, cut, receiver, slot, parent, name) {}
	KActionBridge(const QString& text, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, cut, parent, name) {}
	KActionBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KAction(text, cut, receiver, slot, parent, name) {}
	KActionBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, pix, cut, parent, name) {}
	KActionBridge(const QString& text, const QString& pix, const KShortcut& cut, QObject* parent, const char* name) : KAction(text, pix, cut, parent, name) {}
	KActionBridge(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) {}
	KActionBridge(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) {}
	KActionBridge(QObject* parent, const char* name) : KAction(parent, name) {}
	~KActionBridge() {}
	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 (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

kde_KAction * kde_new_KAction(qt_QString * text, kde_KShortcut* cut, qt_QObject * receiver, char* slot, kde_KActionCollection* parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (KActionCollection*)parent, (char*)name);
}
kde_KAction * kde_new_KAction1(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, kde_KActionCollection* parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (KActionCollection*)parent, (char*)name);
}
kde_KAction * kde_new_KAction2(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, kde_KActionCollection* parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (KActionCollection*)parent, (char*)name);
}
kde_KAction * kde_new_KAction3(kde_KGuiItem* item, kde_KShortcut* cut, qt_QObject * receiver, char* slot, kde_KActionCollection* parent, char* name){
	return (kde_KAction *) new KActionBridge((KGuiItem&)* (KGuiItem*)item, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (KActionCollection*)parent, (char*)name);
}
kde_KAction * kde_new_KAction4(qt_QString * text, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction5(qt_QString * text, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction6(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction7(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction8(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction9(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KAction * kde_new_KAction10(qt_QObject * parent, char* name){
	return (kde_KAction *) new KActionBridge((QObject*)parent, (char*)name);
}
void kde_del_KAction( kde_KAction* p ){
	delete (KActionBridge*) p;
}
int kde_KAction_plug( kde_KAction* instPointer,qt_QWidget * w, int index){
	return (int) ((KActionBridge*)instPointer)->plug((QWidget*)w, (int)index);
}
void kde_KAction_plugAccel( kde_KAction* instPointer,kde_KAccel* accel, int configurable){
	((KActionBridge*)instPointer)->plugAccel((KAccel*)accel, (bool)configurable);
	return;
}
void kde_KAction_unplug( kde_KAction* instPointer,qt_QWidget * w){
	((KActionBridge*)instPointer)->unplug((QWidget*)w);
	return;
}
void kde_KAction_unplugAccel( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->unplugAccel();
	return;
}
int kde_KAction_isPlugged( kde_KAction* instPointer){
	return (int) ((KActionBridge*)instPointer)->isPlugged();
}
int kde_KAction_isPlugged1( kde_KAction* instPointer,qt_QWidget * container, int identifier){
	return (int) ((KActionBridge*)instPointer)->isPlugged((QWidget*)container, (int)identifier);
}
int kde_KAction_isPlugged2( kde_KAction* instPointer,qt_QWidget * container, qt_QWidget * _representative){
	return (int) ((KActionBridge*)instPointer)->isPlugged((QWidget*)container, (QWidget*)_representative);
}
qt_QWidget * kde_KAction_container( kde_KAction* instPointer,int index){
	return (qt_QWidget *) ((KActionBridge*)instPointer)->container((int)index);
}
int kde_KAction_itemId( kde_KAction* instPointer,int index){
	return (int) ((KActionBridge*)instPointer)->itemId((int)index);
}
qt_QWidget * kde_KAction_representative( kde_KAction* instPointer,int index){
	return (qt_QWidget *) ((KActionBridge*)instPointer)->representative((int)index);
}
int kde_KAction_containerCount( kde_KAction* instPointer){
	return (int) ((KActionBridge*)instPointer)->containerCount();
}
//qt_QPixmap * kde_KAction_pixmap( kde_KAction* instPointer){
//	return (qt_QPixmap *)new QPixmap(((KActionBridge*)instPointer)->pixmap());
//}
int kde_KAction_hasIconSet( kde_KAction* instPointer){
	return (int) ((KActionBridge*)instPointer)->hasIconSet();
}
qt_QString * kde_KAction_plainText( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->plainText());
}
qt_QString * kde_KAction_text( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->text());
}
kde_KShortcut* kde_KAction_shortcut( kde_KAction* instPointer){
	return (kde_KShortcut*) (const KShortcut *)&((KActionBridge*)instPointer)->shortcut();
}
kde_KShortcut* kde_KAction_shortcutDefault( kde_KAction* instPointer){
	return (kde_KShortcut*) (const KShortcut *)&((KActionBridge*)instPointer)->shortcutDefault();
}
qt_QString * kde_KAction_shortcutText( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->shortcutText());
}
void kde_KAction_setShortcutText( kde_KAction* instPointer,qt_QString * arg1){
	((KActionBridge*)instPointer)->setShortcutText((QString&)* (QString*)arg1);
	return;
}
int kde_KAction_isEnabled( kde_KAction* instPointer){
	return (int) ((KActionBridge*)instPointer)->isEnabled();
}
//int kde_KAction_isConfigurable( kde_KAction* instPointer){
//	return (int) ((KActionBridge*)instPointer)->isConfigurable();
//}
qt_QString * kde_KAction_group( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->group());
}
qt_QString * kde_KAction_whatsThis( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->whatsThis());
}
qt_QString * kde_KAction_toolTip( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->toolTip());
}
qt_QIconSet* kde_KAction_iconSet( kde_KAction* instPointer){
	return (qt_QIconSet*)new QIconSet(((KActionBridge*)instPointer)->iconSet());
}
qt_QString * kde_KAction_icon( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->icon());
}
kde_KActionCollection* kde_KAction_parentCollection( kde_KAction* instPointer){
	return (kde_KActionCollection*) ((KActionBridge*)instPointer)->parentCollection();
}
void kde_KAction_unplugAll( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->unplugAll();
	return;
}
int kde_KAction_accel( kde_KAction* instPointer){
	return (int) ((KActionBridge*)instPointer)->accel();
}
qt_QString * kde_KAction_statusText( kde_KAction* instPointer){
	return (qt_QString *)new QString(((KActionBridge*)instPointer)->statusText());
}
void kde_KAction_setAccel( kde_KAction* instPointer,int key){
	((KActionBridge*)instPointer)->setAccel((int)key);
	return;
}
void kde_KAction_setStatusText( kde_KAction* instPointer,qt_QString * text){
	((KActionBridge*)instPointer)->setStatusText((QString&)* (QString*)text);
	return;
}
int kde_KAction_menuId( kde_KAction* instPointer,int i){
	return (int) ((KActionBridge*)instPointer)->menuId((int)i);
}
void kde_KAction_setText( kde_KAction* instPointer,qt_QString * text){
	((KActionBridge*)instPointer)->setText((QString&)* (QString*)text);
	return;
}
void kde_KAction_setShortcut( kde_KAction* instPointer,kde_KShortcut* arg1){
	((KActionBridge*)instPointer)->setShortcut((KShortcut&)* (KShortcut*)arg1);
	return;
}
void kde_KAction_setGroup( kde_KAction* instPointer,qt_QString * arg1){
	((KActionBridge*)instPointer)->setGroup((QString&)* (QString*)arg1);
	return;
}
void kde_KAction_setWhatsThis( kde_KAction* instPointer,qt_QString * text){
	((KActionBridge*)instPointer)->setWhatsThis((QString&)* (QString*)text);
	return;
}
void kde_KAction_setToolTip( kde_KAction* instPointer,qt_QString * arg1){
	((KActionBridge*)instPointer)->setToolTip((QString&)* (QString*)arg1);
	return;
}
void kde_KAction_setIconSet( kde_KAction* instPointer,qt_QIconSet* iconSet){
	((KActionBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)iconSet);
	return;
}
void kde_KAction_setIcon( kde_KAction* instPointer,qt_QString * icon){
	((KActionBridge*)instPointer)->setIcon((QString&)* (QString*)icon);
	return;
}
void kde_KAction_setEnabled( kde_KAction* instPointer,int enable){
	((KActionBridge*)instPointer)->setEnabled((bool)enable);
	return;
}
//void kde_KAction_setConfigurable( kde_KAction* instPointer,int arg1){
//	((KActionBridge*)instPointer)->setConfigurable((bool)arg1);
//	return;
//}
void kde_KAction_activate( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->activate();
	return;
}
int kde_KAction_getToolButtonID( ){
	return (int) KActionBridge::getToolButtonID();
}
kde_KToolBar* kde_KAction_toolBar( kde_KAction* instPointer,int index){
	return (kde_KToolBar*) ((KActionBridge*)instPointer)->protected_toolBar((int)index);
}
qt_QPopupMenu* kde_KAction_popupMenu( kde_KAction* instPointer,int index){
	return (qt_QPopupMenu*) ((KActionBridge*)instPointer)->protected_popupMenu((int)index);
}
void kde_KAction_removeContainer( kde_KAction* instPointer,int index){
	((KActionBridge*)instPointer)->protected_removeContainer((int)index);
	return;
}
int kde_KAction_findContainer( kde_KAction* instPointer,qt_QWidget * widget){
	return (int) ((KActionBridge*)instPointer)->protected_findContainer((QWidget*)widget);
}
void kde_KAction_plugMainWindowAccel( kde_KAction* instPointer,qt_QWidget * w){
	((KActionBridge*)instPointer)->protected_plugMainWindowAccel((QWidget*)w);
	return;
}
void kde_KAction_addContainer( kde_KAction* instPointer,qt_QWidget * parent, int identifier){
	((KActionBridge*)instPointer)->protected_addContainer((QWidget*)parent, (int)identifier);
	return;
}
void kde_KAction_addContainer1( kde_KAction* instPointer,qt_QWidget * parent, qt_QWidget * representative){
	((KActionBridge*)instPointer)->protected_addContainer((QWidget*)parent, (QWidget*)representative);
	return;
}
void kde_KAction_setShortcut1( kde_KAction* instPointer,int i){
	((KActionBridge*)instPointer)->protected_setShortcut((int)i);
	return;
}
//void kde_KAction_setShortcut2( kde_KAction* instPointer,qt_QPopupMenu* menu, int identifier){
//	((KActionBridge*)instPointer)->protected_setShortcut((QPopupMenu*)menu, (int)identifier);
//	return;
//}
//void kde_KAction_setGroup1( kde_KAction* instPointer,int identifier, qt_QString * grp){
//	((KActionBridge*)instPointer)->protected_setGroup((int)identifier, (QString&)* (QString*)grp);
//	return;
//}
//void kde_KAction_setText1( kde_KAction* instPointer,int i, qt_QString * text){
//	((KActionBridge*)instPointer)->protected_setText((int)i, (QString&)* (QString*)text);
//	return;
//}
//void kde_KAction_setEnabled1( kde_KAction* instPointer,int i, int enable){
//	((KActionBridge*)instPointer)->protected_setEnabled((int)i, (bool)enable);
//	return;
//}
//void kde_KAction_setIconSet1( kde_KAction* instPointer,int i, qt_QIconSet* iconSet){
//	((KActionBridge*)instPointer)->protected_setIconSet((int)i, (QIconSet&)* (QIconSet*)iconSet);
//	return;
//}
//void kde_KAction_setIcon1( kde_KAction* instPointer,int i, qt_QString * icon){
//	((KActionBridge*)instPointer)->protected_setIcon((int)i, (QString&)* (QString*)icon);
//	return;
//}
//void kde_KAction_setToolTip1( kde_KAction* instPointer,int identifier, qt_QString * tt){
//	((KActionBridge*)instPointer)->protected_setToolTip((int)identifier, (QString&)* (QString*)tt);
//	return;
//}
//void kde_KAction_setWhatsThis1( kde_KAction* instPointer,int i, qt_QString * text){
//	((KActionBridge*)instPointer)->protected_setWhatsThis((int)i, (QString&)* (QString*)text);
//	return;
//}
void kde_KAction_slotDestroyed( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->protected_slotDestroyed();
	return;
}
void kde_KAction_slotKeycodeChanged( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->protected_slotKeycodeChanged();
	return;
}
void kde_KAction_slotActivated( kde_KAction* instPointer){
	((KActionBridge*)instPointer)->protected_slotActivated();
	return;
}
