/***************************************************************************
                            MouseReleaseEvent.m -  description
                             -------------------
    begin                : Thu Mar 21 01:01:29 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Thu Mar 21 01:01:29 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.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_MouseReleaseEvent.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/MouseReleaseEvent.h>

@implementation  MouseReleaseEvent


- initWithMouseEvent: (QMouseEvent*)mouseEvent x: (int)x y: (int)y url: (NSString *)url target: (NSString *)target innerNode: (DOMNode*)innerNode long: (long)arg1
{
static kde_DOMString * _domstring_target = 0L;
static kde_DOMString * _domstring_url = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_MouseReleaseEvent((qt_QMouseEvent*) [mouseEvent qt], (int)x, (int)y, (kde_DOMString*) [url toDOMString: &_domstring_url], (kde_DOMString*) [target toDOMString: &_domstring_target], (kde_DOMNode*) [innerNode qt], (long)arg1)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithMouseEvent: (QMouseEvent*)mouseEvent x: (int)x y: (int)y url: (NSString *)url target: (NSString *)target innerNode: (DOMNode*)innerNode 
{
static kde_DOMString * _domstring_target = 0L;
static kde_DOMString * _domstring_url = 0L;
	if ([self qt] == 0L) {
		[self setQt: kde_new_MouseReleaseEvent((qt_QMouseEvent*) [mouseEvent qt], (int)x, (int)y, (kde_DOMString*) [url toDOMString: &_domstring_url], (kde_DOMString*) [target toDOMString: &_domstring_target], (kde_DOMNode*) [innerNode qt], 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

+ (BOOL) test: (QEvent *)event
{
	return (BOOL) kde_MouseReleaseEvent_test((qt_QEvent *) [event qt]);
}

@end
