/***************************************************************************
                            kde_MousePressEvent.cpp -  description
                             -------------------
    begin                : Tue Mar 19 20:11:49 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar 19 20:11:49 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_MousePressEvent.h"
}

#include <khtml_events.h>

class MousePressEventBridge : public khtml::MousePressEvent
{
public:
	MousePressEventBridge(QMouseEvent* mouseEvent, int x, int y, const DOM::DOMString& url, const DOM::DOMString& target, const DOM::Node& innerNode) : MousePressEvent(mouseEvent, x, y, url, target, innerNode) {}
};

kde_MousePressEvent * kde_new_MousePressEvent(qt_QMouseEvent* mouseEvent, int x, int y, kde_DOMString* url, kde_DOMString* target, kde_DOMNode* innerNode){
	return (kde_MousePressEvent *) new MousePressEventBridge((QMouseEvent*)mouseEvent, (int)x, (int)y, (DOM::DOMString&)* (DOM::DOMString*)url, (DOM::DOMString&)* (DOM::DOMString*)target, (DOM::Node&)* (DOM::Node*)innerNode);
}
int kde_MousePressEvent_test( qt_QEvent * event){
	return (int) MousePressEventBridge::test((QEvent*)event);
}
