/***************************************************************************
                            qt_QAccel.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_QAccel.h"
}

#include <qaccel.h>

class QAccelBridge : public QAccel
{
public:
	QAccelBridge(QWidget* parent, const char* name) : QAccel(parent, name) {}
	QAccelBridge(QWidget* watch, QObject* parent, const char* name) : QAccel(watch, parent, name) {}
	~QAccelBridge() {}
	bool  protected_eventFilter(QObject* arg1, QEvent* arg2) {
		return (bool ) QAccel::eventFilter(arg1, arg2);
	}
	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_QAccel * qt_new_QAccel(qt_QWidget * parent, char* name){
	return (qt_QAccel *) new QAccelBridge((QWidget*)parent, (char*)name);
}
qt_QAccel * qt_new_QAccel1(qt_QWidget * watch, qt_QObject * parent, char* name){
	return (qt_QAccel *) new QAccelBridge((QWidget*)watch, (QObject*)parent, (char*)name);
}
void qt_del_QAccel( qt_QAccel* p ){
	delete (QAccelBridge*) p;
}
int qt_QAccel_isEnabled( qt_QAccel* instPointer){
	return (int) ((QAccelBridge*)instPointer)->isEnabled();
}
void qt_QAccel_setEnabled( qt_QAccel* instPointer,int arg1){
	((QAccelBridge*)instPointer)->setEnabled((bool)arg1);
	return;
}
unsigned int qt_QAccel_count( qt_QAccel* instPointer){
	return (unsigned int) ((QAccelBridge*)instPointer)->count();
}
int qt_QAccel_insertItem( qt_QAccel* instPointer,qt_QKeySequence* key, int identifier){
	return (int) ((QAccelBridge*)instPointer)->insertItem((QKeySequence&)* (QKeySequence*)key, (int)identifier);
}
void qt_QAccel_removeItem( qt_QAccel* instPointer,int identifier){
	((QAccelBridge*)instPointer)->removeItem((int)identifier);
	return;
}
void qt_QAccel_clear( qt_QAccel* instPointer){
	((QAccelBridge*)instPointer)->clear();
	return;
}
qt_QKeySequence* qt_QAccel_key( qt_QAccel* instPointer,int identifier){
	return (qt_QKeySequence*)new QKeySequence(((QAccelBridge*)instPointer)->key((int)identifier));
}
int qt_QAccel_findKey( qt_QAccel* instPointer,qt_QKeySequence* key){
	return (int) ((QAccelBridge*)instPointer)->findKey((QKeySequence&)* (QKeySequence*)key);
}
int qt_QAccel_isItemEnabled( qt_QAccel* instPointer,int identifier){
	return (int) ((QAccelBridge*)instPointer)->isItemEnabled((int)identifier);
}
void qt_QAccel_setItemEnabled( qt_QAccel* instPointer,int identifier, int enable){
	((QAccelBridge*)instPointer)->setItemEnabled((int)identifier, (bool)enable);
	return;
}
int qt_QAccel_connectItem( qt_QAccel* instPointer,int identifier, qt_QObject * receiver, char* member){
	return (int) ((QAccelBridge*)instPointer)->connectItem((int)identifier, (QObject*)receiver, (char*)member);
}
int qt_QAccel_disconnectItem( qt_QAccel* instPointer,int identifier, qt_QObject * receiver, char* member){
	return (int) ((QAccelBridge*)instPointer)->disconnectItem((int)identifier, (QObject*)receiver, (char*)member);
}
void qt_QAccel_repairEventFilter( qt_QAccel* instPointer){
	((QAccelBridge*)instPointer)->repairEventFilter();
	return;
}
void qt_QAccel_setWhatsThis( qt_QAccel* instPointer,int identifier, qt_QString * arg1){
	((QAccelBridge*)instPointer)->setWhatsThis((int)identifier, (QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QAccel_whatsThis( qt_QAccel* instPointer,int identifier){
	return (qt_QString *)new QString(((QAccelBridge*)instPointer)->whatsThis((int)identifier));
}
void qt_QAccel_setIgnoreWhatsThis( qt_QAccel* instPointer,int arg1){
	((QAccelBridge*)instPointer)->setIgnoreWhatsThis((bool)arg1);
	return;
}
int qt_QAccel_ignoreWhatsThis( qt_QAccel* instPointer){
	return (int) ((QAccelBridge*)instPointer)->ignoreWhatsThis();
}
qt_QKeySequence* qt_QAccel_shortcutKey( qt_QString * arg1){
	return (qt_QKeySequence*)new QKeySequence(QAccelBridge::shortcutKey((QString&)* (QString*)arg1));
}
qt_QString * qt_QAccel_keyToString( qt_QKeySequence* k){
	return (qt_QString *)new QString(QAccelBridge::keyToString((QKeySequence)* (QKeySequence*)k));
}
qt_QKeySequence* qt_QAccel_stringToKey( qt_QString * arg1){
	return (qt_QKeySequence*)new QKeySequence(QAccelBridge::stringToKey((QString&)* (QString*)arg1));
}
int qt_QAccel_eventFilter( qt_QAccel* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QAccelBridge*)instPointer)->protected_eventFilter((QObject*)arg1, (QEvent*)arg2);
}
