/***************************************************************************
                            kde_PartSelectEvent.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_PartSelectEvent.h"
}

#include <kparts/event.h>

class PartSelectEventBridge : public KParts::PartSelectEvent
{
public:
	PartSelectEventBridge(bool selected, KParts::Part* part, QWidget* widget) : PartSelectEvent(selected, part, widget) {}
};

kde_PartSelectEvent * kde_new_PartSelectEvent(int selected, kde_Part* part, qt_QWidget * widget){
	return (kde_PartSelectEvent *) new PartSelectEventBridge((bool)selected, (KParts::Part*)part, (QWidget*)widget);
}
int kde_PartSelectEvent_selected( kde_PartSelectEvent* instPointer){
	return (int) ((PartSelectEventBridge*)instPointer)->selected();
}
kde_Part* kde_PartSelectEvent_part( kde_PartSelectEvent* instPointer){
	return (kde_Part*) ((PartSelectEventBridge*)instPointer)->part();
}
qt_QWidget * kde_PartSelectEvent_widget( kde_PartSelectEvent* instPointer){
	return (qt_QWidget *) ((PartSelectEventBridge*)instPointer)->widget();
}
int kde_PartSelectEvent_test( qt_QEvent * event){
	return (int) PartSelectEventBridge::test((QEvent*)event);
}
