/***************************************************************************
                            kde_KToolBarPopupAction.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_KToolBarPopupAction.h"
}

#include <kaction.h>

class KToolBarPopupActionBridge : public KToolBarPopupAction
{
public:
	KToolBarPopupActionBridge(const QString& text, const QString& icon, const KShortcut& cut, QObject* parent, const char* name) : KToolBarPopupAction(text, icon, cut, parent, name) {}
	KToolBarPopupActionBridge(const QString& text, const QString& icon, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name) : KToolBarPopupAction(text, icon, cut, receiver, slot, parent, name) {}
	KToolBarPopupActionBridge(const KGuiItem& item, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name) : KToolBarPopupAction(item, cut, receiver, slot, parent, name) {}
	~KToolBarPopupActionBridge() {}
	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_KToolBarPopupAction * kde_new_KToolBarPopupAction(qt_QString * text, qt_QString * icon, kde_KShortcut* cut, qt_QObject * parent, char* name){
	return (kde_KToolBarPopupAction *) new KToolBarPopupActionBridge((QString&)* (QString*)text, (QString&)* (QString*)icon, (KShortcut&)* (KShortcut*)cut, (QObject*)parent, (char*)name);
}
kde_KToolBarPopupAction * kde_new_KToolBarPopupAction1(qt_QString * text, qt_QString * icon, kde_KShortcut* cut, qt_QObject * receiver, char* slot, qt_QObject * parent, char* name){
	return (kde_KToolBarPopupAction *) new KToolBarPopupActionBridge((QString&)* (QString*)text, (QString&)* (QString*)icon, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (QObject*)parent, (char*)name);
}
kde_KToolBarPopupAction * kde_new_KToolBarPopupAction2(kde_KGuiItem* item, kde_KShortcut* cut, qt_QObject * receiver, char* slot, kde_KActionCollection* parent, char* name){
	return (kde_KToolBarPopupAction *) new KToolBarPopupActionBridge((KGuiItem&)* (KGuiItem*)item, (KShortcut&)* (KShortcut*)cut, (QObject*)receiver, (char*)slot, (KActionCollection*)parent, (char*)name);
}
void kde_del_KToolBarPopupAction( kde_KToolBarPopupAction* p ){
	delete (KToolBarPopupActionBridge*) p;
}
int kde_KToolBarPopupAction_plug( kde_KToolBarPopupAction* instPointer,qt_QWidget * widget, int index){
	return (int) ((KToolBarPopupActionBridge*)instPointer)->plug((QWidget*)widget, (int)index);
}
void kde_KToolBarPopupAction_unplug( kde_KToolBarPopupAction* instPointer,qt_QWidget * widget){
	((KToolBarPopupActionBridge*)instPointer)->unplug((QWidget*)widget);
	return;
}
kde_KPopupMenu* kde_KToolBarPopupAction_popupMenu( kde_KToolBarPopupAction* instPointer){
	return (kde_KPopupMenu*) ((KToolBarPopupActionBridge*)instPointer)->popupMenu();
}
int kde_KToolBarPopupAction_delayed( kde_KToolBarPopupAction* instPointer){
	return (int) ((KToolBarPopupActionBridge*)instPointer)->delayed();
}
void kde_KToolBarPopupAction_setDelayed( kde_KToolBarPopupAction* instPointer,int delayed){
	((KToolBarPopupActionBridge*)instPointer)->setDelayed((bool)delayed);
	return;
}
int kde_KToolBarPopupAction_stickyMenu( kde_KToolBarPopupAction* instPointer){
	return (int) ((KToolBarPopupActionBridge*)instPointer)->stickyMenu();
}
void kde_KToolBarPopupAction_setStickyMenu( kde_KToolBarPopupAction* instPointer,int sticky){
	((KToolBarPopupActionBridge*)instPointer)->setStickyMenu((bool)sticky);
	return;
}
