/***************************************************************************
                            kde_KToggleAction.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_KToggleAction.h"
}

#include <kaction.h>

class KToggleActionBridge : public KToggleAction
{
public:
	KToggleActionBridge(const QString& text, const KShortcut& cut, QObject* parent, const char* name) : KToggleAction(text, cut, parent, name) {}
	KToggleActionBridge(const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KToggleAction(text, cut, receiver, slot, parent, name) {}
	KToggleActionBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, QObject* parent, const char* name) : KToggleAction(text, pix, cut, parent, name) {}
	KToggleActionBridge(const QString& text, const QString& pix, const KShortcut& cut, QObject* parent, const char* name) : KToggleAction(text, pix, cut, parent, name) {}
	KToggleActionBridge(const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KToggleAction(text, pix, cut, receiver, slot, parent, name) {}
	KToggleActionBridge(const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KToggleAction(text, pix, cut, receiver, slot, parent, name) {}
	KToggleActionBridge(QObject* parent, const char* name) : KToggleAction(parent, name) {}
	~KToggleActionBridge() {}
//	void protected_setChecked(int id, bool checked) {
//		KToggleAction::setChecked(id, checked);
//		return;
//	}
	void protected_slotActivated() {
		KToggleAction::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_KToggleAction * kde_new_KToggleAction(qt_QString * text, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction1(qt_QString * text, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction2(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction3(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction4(qt_QString * text, qt_QIconSet* pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction5(qt_QString * text, qt_QString * pix, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QString&)* (QString*)text, (QString&)* (QString*)pix, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KToggleAction * kde_new_KToggleAction6(qt_QObject * parent, char* name){
	return (kde_KToggleAction *) new KToggleActionBridge((QObject*)parent, (char*)name);
}
void kde_del_KToggleAction( kde_KToggleAction* p ){
	delete (KToggleActionBridge*) p;
}
int kde_KToggleAction_plug( kde_KToggleAction* instPointer,qt_QWidget * arg1, int index){
	return (int) ((KToggleActionBridge*)instPointer)->plug((QWidget*)arg1, (int)index);
}
int kde_KToggleAction_isChecked( kde_KToggleAction* instPointer){
	return (int) ((KToggleActionBridge*)instPointer)->isChecked();
}
qt_QString * kde_KToggleAction_exclusiveGroup( kde_KToggleAction* instPointer){
	return (qt_QString *)new QString(((KToggleActionBridge*)instPointer)->exclusiveGroup());
}
void kde_KToggleAction_setExclusiveGroup( kde_KToggleAction* instPointer,qt_QString * name){
	((KToggleActionBridge*)instPointer)->setExclusiveGroup((QString&)* (QString*)name);
	return;
}
void kde_KToggleAction_setChecked( kde_KToggleAction* instPointer,int arg1){
	((KToggleActionBridge*)instPointer)->setChecked((bool)arg1);
	return;
}
//void kde_KToggleAction_setChecked1( kde_KToggleAction* instPointer,int identifier, int checked){
//	((KToggleActionBridge*)instPointer)->protected_setChecked((int)identifier, (bool)checked);
//	return;
//}
void kde_KToggleAction_slotActivated( kde_KToggleAction* instPointer){
	((KToggleActionBridge*)instPointer)->protected_slotActivated();
	return;
}
