/***************************************************************************
                            qt_QAction.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QAction.h"
}

#include <qaction.h>

class QActionBridge : public QAction
{
public:
	QActionBridge(QObject* parent, const char* name, bool toggle) : QAction(parent, name, toggle) {}
	QActionBridge(const QString& text, const QIconSet& icon, const QString& menuText, QKeySequence accel, QObject* parent, const char* name, bool toggle) : QAction(text, icon, menuText, accel, parent, name, toggle) {}
	QActionBridge(const QString& text, const QString& menuText, QKeySequence accel, QObject* parent, const char* name, bool toggle) : QAction(text, menuText, accel, parent, name, toggle) {}
	~QActionBridge() {}
	void protected_addedTo(QWidget* actionWidget, QWidget* container) {
		QAction::addedTo(actionWidget, container);
		return;
	}
	void protected_addedTo(int index, QPopupMenu* menu) {
		QAction::addedTo(index, menu);
		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;
	}
};

qt_QAction * qt_new_QAction(qt_QObject * parent, char* name, int toggle){
	return (qt_QAction *) new QActionBridge((QObject*)parent, (char*)name, (bool)toggle);
}
qt_QAction * qt_new_QAction1(qt_QString * text, qt_QIconSet* icon, qt_QString * menuText, qt_QKeySequence* accel, qt_QObject * parent, char* name, int toggle){
	return (qt_QAction *) new QActionBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)icon, (QString&)* (QString*)menuText, (QKeySequence)* (QKeySequence*)accel, (QObject*)parent, (char*)name, (bool)toggle);
}
qt_QAction * qt_new_QAction2(qt_QString * text, qt_QString * menuText, qt_QKeySequence* accel, qt_QObject * parent, char* name, int toggle){
	return (qt_QAction *) new QActionBridge((QString&)* (QString*)text, (QString&)* (QString*)menuText, (QKeySequence)* (QKeySequence*)accel, (QObject*)parent, (char*)name, (bool)toggle);
}
void qt_del_QAction( qt_QAction* p ){
	delete (QActionBridge*) p;
}
void qt_QAction_setIconSet( qt_QAction* instPointer,qt_QIconSet* arg1){
	((QActionBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)arg1);
	return;
}
qt_QIconSet* qt_QAction_iconSet( qt_QAction* instPointer){
	return (qt_QIconSet*)new QIconSet(((QActionBridge*)instPointer)->iconSet());
}
void qt_QAction_setText( qt_QAction* instPointer,qt_QString * arg1){
	((QActionBridge*)instPointer)->setText((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAction_text( qt_QAction* instPointer){
	return (qt_QString *)new QString(((QActionBridge*)instPointer)->text());
}
void qt_QAction_setMenuText( qt_QAction* instPointer,qt_QString * arg1){
	((QActionBridge*)instPointer)->setMenuText((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAction_menuText( qt_QAction* instPointer){
	return (qt_QString *)new QString(((QActionBridge*)instPointer)->menuText());
}
void qt_QAction_setToolTip( qt_QAction* instPointer,qt_QString * arg1){
	((QActionBridge*)instPointer)->setToolTip((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAction_toolTip( qt_QAction* instPointer){
	return (qt_QString *)new QString(((QActionBridge*)instPointer)->toolTip());
}
void qt_QAction_setStatusTip( qt_QAction* instPointer,qt_QString * arg1){
	((QActionBridge*)instPointer)->setStatusTip((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAction_statusTip( qt_QAction* instPointer){
	return (qt_QString *)new QString(((QActionBridge*)instPointer)->statusTip());
}
void qt_QAction_setWhatsThis( qt_QAction* instPointer,qt_QString * arg1){
	((QActionBridge*)instPointer)->setWhatsThis((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAction_whatsThis( qt_QAction* instPointer){
	return (qt_QString *)new QString(((QActionBridge*)instPointer)->whatsThis());
}
void qt_QAction_setAccel( qt_QAction* instPointer,qt_QKeySequence* key){
	((QActionBridge*)instPointer)->setAccel((QKeySequence&)* (QKeySequence*)key);
	return;
}
qt_QKeySequence* qt_QAction_accel( qt_QAction* instPointer){
	return (qt_QKeySequence*)new QKeySequence(((QActionBridge*)instPointer)->accel());
}
void qt_QAction_setToggleAction( qt_QAction* instPointer,int arg1){
	((QActionBridge*)instPointer)->setToggleAction((bool)arg1);
	return;
}
int qt_QAction_isToggleAction( qt_QAction* instPointer){
	return (int) ((QActionBridge*)instPointer)->isToggleAction();
}
int qt_QAction_isOn( qt_QAction* instPointer){
	return (int) ((QActionBridge*)instPointer)->isOn();
}
int qt_QAction_isEnabled( qt_QAction* instPointer){
	return (int) ((QActionBridge*)instPointer)->isEnabled();
}
int qt_QAction_addTo( qt_QAction* instPointer,qt_QWidget * arg1){
	return (int) ((QActionBridge*)instPointer)->addTo((QWidget*)arg1);
}
int qt_QAction_removeFrom( qt_QAction* instPointer,qt_QWidget * arg1){
	return (int) ((QActionBridge*)instPointer)->removeFrom((QWidget*)arg1);
}
void qt_QAction_toggle( qt_QAction* instPointer){
	((QActionBridge*)instPointer)->toggle();
	return;
}
void qt_QAction_setOn( qt_QAction* instPointer,int arg1){
	((QActionBridge*)instPointer)->setOn((bool)arg1);
	return;
}
void qt_QAction_setEnabled( qt_QAction* instPointer,int arg1){
	((QActionBridge*)instPointer)->setEnabled((bool)arg1);
	return;
}
void qt_QAction_addedTo( qt_QAction* instPointer,qt_QWidget * actionWidget, qt_QWidget * container){
	((QActionBridge*)instPointer)->protected_addedTo((QWidget*)actionWidget, (QWidget*)container);
	return;
}
void qt_QAction_addedTo1( qt_QAction* instPointer,int index, qt_QPopupMenu* menu){
	((QActionBridge*)instPointer)->protected_addedTo((int)index, (QPopupMenu*)menu);
	return;
}
