/***************************************************************************
                            kde_KActionMenu.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_KActionMenu.h"
}

#include <kaction.h>

class KActionMenuBridge : public KActionMenu
{
public:
	KActionMenuBridge(const QString& text, QObject* parent, const char* name) : KActionMenu(text, parent, name) {}
	KActionMenuBridge(const QString& text, const QIconSet& icon, QObject* parent, const char* name) : KActionMenu(text, icon, parent, name) {}
	KActionMenuBridge(const QString& text, const QString& icon, QObject* parent, const char* name) : KActionMenu(text, icon, parent, name) {}
	KActionMenuBridge(QObject* parent, const char* name) : KActionMenu(parent, name) {}
	~KActionMenuBridge() {}
//	void protected_setText(int id, const QString& text) {
//		KActionMenu::setText(id, text);
//		return;
//	}
//	void protected_setIconSet(int id, const QIconSet& iconSet) {
//		KActionMenu::setIconSet(id, iconSet);
//		return;
//	}
	void protected_setIconSet(const QIconSet& i) {
		KActionMenu::setIconSet(i);
		return;
	}
	void protected_setText(const QString& s) {
		KActionMenu::setText(s);
		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_KActionMenu * kde_new_KActionMenu(qt_QString * text, qt_QObject * parent, char* name){
	return (kde_KActionMenu *) new KActionMenuBridge((QString&)* (QString*)text, (QObject*)parent, (char*)name);
}
kde_KActionMenu * kde_new_KActionMenu1(qt_QString * text, qt_QIconSet* icon, qt_QObject * parent, char* name){
	return (kde_KActionMenu *) new KActionMenuBridge((QString&)* (QString*)text, (QIconSet&)* (QIconSet*)icon, (QObject*)parent, (char*)name);
}
kde_KActionMenu * kde_new_KActionMenu2(qt_QString * text, qt_QString * icon, qt_QObject * parent, char* name){
	return (kde_KActionMenu *) new KActionMenuBridge((QString&)* (QString*)text, (QString&)* (QString*)icon, (QObject*)parent, (char*)name);
}
kde_KActionMenu * kde_new_KActionMenu3(qt_QObject * parent, char* name){
	return (kde_KActionMenu *) new KActionMenuBridge((QObject*)parent, (char*)name);
}
void kde_del_KActionMenu( kde_KActionMenu* p ){
	delete (KActionMenuBridge*) p;
}
void kde_KActionMenu_insert( kde_KActionMenu* instPointer,kde_KAction* arg1, int index){
	((KActionMenuBridge*)instPointer)->insert((KAction*)arg1, (int)index);
	return;
}
void kde_KActionMenu_remove( kde_KActionMenu* instPointer,kde_KAction* arg1){
	((KActionMenuBridge*)instPointer)->remove((KAction*)arg1);
	return;
}
kde_KPopupMenu* kde_KActionMenu_popupMenu( kde_KActionMenu* instPointer){
	return (kde_KPopupMenu*) ((KActionMenuBridge*)instPointer)->popupMenu();
}
void kde_KActionMenu_popup( kde_KActionMenu* instPointer,qt_QPoint* global){
	((KActionMenuBridge*)instPointer)->popup((QPoint&)* (QPoint*)global);
	return;
}
int kde_KActionMenu_delayed( kde_KActionMenu* instPointer){
	return (int) ((KActionMenuBridge*)instPointer)->delayed();
}
void kde_KActionMenu_setDelayed( kde_KActionMenu* instPointer,int _delayed){
	((KActionMenuBridge*)instPointer)->setDelayed((bool)_delayed);
	return;
}
int kde_KActionMenu_stickyMenu( kde_KActionMenu* instPointer){
	return (int) ((KActionMenuBridge*)instPointer)->stickyMenu();
}
void kde_KActionMenu_setStickyMenu( kde_KActionMenu* instPointer,int sticky){
	((KActionMenuBridge*)instPointer)->setStickyMenu((bool)sticky);
	return;
}
int kde_KActionMenu_plug( kde_KActionMenu* instPointer,qt_QWidget * widget, int index){
	return (int) ((KActionMenuBridge*)instPointer)->plug((QWidget*)widget, (int)index);
}
void kde_KActionMenu_unplug( kde_KActionMenu* instPointer,qt_QWidget * widget){
	((KActionMenuBridge*)instPointer)->unplug((QWidget*)widget);
	return;
}
void kde_KActionMenu_setEnabled( kde_KActionMenu* instPointer,int b){
	((KActionMenuBridge*)instPointer)->setEnabled((bool)b);
	return;
}
//void kde_KActionMenu_setText( kde_KActionMenu* instPointer,int identifier, qt_QString * text){
//	((KActionMenuBridge*)instPointer)->protected_setText((int)identifier, (QString&)* (QString*)text);
//	return;
//}
//void kde_KActionMenu_setIconSet( kde_KActionMenu* instPointer,int identifier, qt_QIconSet* iconSet){
//	((KActionMenuBridge*)instPointer)->protected_setIconSet((int)identifier, (QIconSet&)* (QIconSet*)iconSet);
//	return;
//}
void kde_KActionMenu_setIconSet1( kde_KActionMenu* instPointer,qt_QIconSet* i){
	((KActionMenuBridge*)instPointer)->protected_setIconSet((QIconSet&)* (QIconSet*)i);
	return;
}
void kde_KActionMenu_setText1( kde_KActionMenu* instPointer,qt_QString * s){
	((KActionMenuBridge*)instPointer)->protected_setText((QString&)* (QString*)s);
	return;
}
