/***************************************************************************
                            kde_KSelectAction.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_KSelectAction.h"
}

#include <qstringlist.h>
#include <kaction.h>

class KSelectActionBridge : public KSelectAction
{
public:
	KSelectActionBridge(const QString& text, const KShortcut& cut, QObject* parent, const char* name) : KSelectAction(text, cut, parent, name) {}
	KSelectActionBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KSelectAction(text, cut, receiver, slot, parent, name) {}
	KSelectActionBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, QObject* parent, const char* name) : KSelectAction(text, pix, cut, parent, name) {}
	KSelectActionBridge(const QString& text, const QString& pix, const KShortcut& cut, QObject* parent, const char* name) : KSelectAction(text, pix, cut, parent, name) {}
	KSelectActionBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KSelectAction(text, pix, cut, receiver, slot, parent, name) {}
	KSelectActionBridge(const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KSelectAction(text, pix, cut, receiver, slot, parent, name) {}
	KSelectActionBridge(QObject* parent, const char* name) : KSelectAction(parent, name) {}
	~KSelectActionBridge() {}
	void protected_changeItem(int id, int index, const QString& text) {
		KSelectAction::changeItem(id, index, text);
		return;
	}
//	void protected_setCurrentItem(int id, int index) {
//		KSelectAction::setCurrentItem(id, index);
//		return;
//	}
//	void protected_setComboWidth(int id, int width) {
//		KSelectAction::setComboWidth(id, width);
//		return;
//	}
//	void protected_setItems(int id, const QStringList& lst) {
//		KSelectAction::setItems(id, lst);
//		return;
//	}
//	void protected_clear(int id) {
//		KSelectAction::clear(id);
//		return;
//	}
	void protected_slotActivated(int id) {
		KSelectAction::slotActivated(id);
		return;
	}
	void protected_slotActivated(const QString& text) {
		KSelectAction::slotActivated(text);
		return;
	}
	void protected_slotActivated() {
		KSelectAction::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_KSelectAction * kde_new_KSelectAction(qt_QString * text, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction1(qt_QString * text, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction2(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction3(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction4(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction5(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KSelectAction * kde_new_KSelectAction6(qt_QObject * parent, char* name){
	return (kde_KSelectAction *) new KSelectActionBridge((QObject*)parent, (char*)name);
}
void kde_del_KSelectAction( kde_KSelectAction* p ){
	delete (KSelectActionBridge*) p;
}
int kde_KSelectAction_plug( kde_KSelectAction* instPointer,qt_QWidget * widget, int index){
	return (int) ((KSelectActionBridge*)instPointer)->plug((QWidget*)widget, (int)index);
}
int kde_KSelectAction_isEditable( kde_KSelectAction* instPointer){
	return (int) ((KSelectActionBridge*)instPointer)->isEditable();
}
qt_QStringList* kde_KSelectAction_items( kde_KSelectAction* instPointer){
	return (qt_QStringList*)new QStringList(((KSelectActionBridge*)instPointer)->items());
}
void kde_KSelectAction_changeItem( kde_KSelectAction* instPointer,int index, qt_QString * text){
	((KSelectActionBridge*)instPointer)->changeItem((int)index, (QString&)* (QString*)text);
	return;
}
qt_QString * kde_KSelectAction_currentText( kde_KSelectAction* instPointer){
	return (qt_QString *)new QString(((KSelectActionBridge*)instPointer)->currentText());
}
int kde_KSelectAction_currentItem( kde_KSelectAction* instPointer){
	return (int) ((KSelectActionBridge*)instPointer)->currentItem();
}
int kde_KSelectAction_comboWidth( kde_KSelectAction* instPointer){
	return (int) ((KSelectActionBridge*)instPointer)->comboWidth();
}
qt_QPopupMenu* kde_KSelectAction_popupMenu( kde_KSelectAction* instPointer){
	return (qt_QPopupMenu*) ((KSelectActionBridge*)instPointer)->popupMenu();
}
void kde_KSelectAction_setCurrentItem( kde_KSelectAction* instPointer,int index){
	((KSelectActionBridge*)instPointer)->setCurrentItem((int)index);
	return;
}
void kde_KSelectAction_setItems( kde_KSelectAction* instPointer,qt_QStringList* lst){
	((KSelectActionBridge*)instPointer)->setItems((QStringList&)* (QStringList*)lst);
	return;
}
void kde_KSelectAction_clear( kde_KSelectAction* instPointer){
	((KSelectActionBridge*)instPointer)->clear();
	return;
}
void kde_KSelectAction_setEditable( kde_KSelectAction* instPointer,int arg1){
	((KSelectActionBridge*)instPointer)->setEditable((bool)arg1);
	return;
}
void kde_KSelectAction_setComboWidth( kde_KSelectAction* instPointer,int width){
	((KSelectActionBridge*)instPointer)->setComboWidth((int)width);
	return;
}
void kde_KSelectAction_changeItem1( kde_KSelectAction* instPointer,int identifier, int index, qt_QString * text){
	((KSelectActionBridge*)instPointer)->protected_changeItem((int)identifier, (int)index, (QString&)* (QString*)text);
	return;
}
//void kde_KSelectAction_setCurrentItem1( kde_KSelectAction* instPointer,int identifier, int index){
//	((KSelectActionBridge*)instPointer)->protected_setCurrentItem((int)identifier, (int)index);
//	return;
//}
//void kde_KSelectAction_setComboWidth1( kde_KSelectAction* instPointer,int identifier, int width){
//	((KSelectActionBridge*)instPointer)->protected_setComboWidth((int)identifier, (int)width);
//	return;
//}
//void kde_KSelectAction_setItems1( kde_KSelectAction* instPointer,int identifier, qt_QStringList* lst){
//	((KSelectActionBridge*)instPointer)->protected_setItems((int)identifier, (QStringList&)* (QStringList*)lst);
//	return;
//}
//void kde_KSelectAction_clear1( kde_KSelectAction* instPointer,int identifier){
//	((KSelectActionBridge*)instPointer)->protected_clear((int)identifier);
//	return;
//}
void kde_KSelectAction_slotActivated( kde_KSelectAction* instPointer,int identifier){
	((KSelectActionBridge*)instPointer)->protected_slotActivated((int)identifier);
	return;
}
void kde_KSelectAction_slotActivated1( kde_KSelectAction* instPointer,qt_QString * text){
	((KSelectActionBridge*)instPointer)->protected_slotActivated((QString&)* (QString*)text);
	return;
}
void kde_KSelectAction_slotActivated2( kde_KSelectAction* instPointer){
	((KSelectActionBridge*)instPointer)->protected_slotActivated();
	return;
}
