/***************************************************************************
                            QEvent.m -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, 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 <qtc/qt_QEvent.h>
#include <qtobjc/QEvent.h>

@implementation  QEvent


- initWithInt: (int)type
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QEvent((int)type)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld]) {
			qt_del_QEvent((qt_QEvent *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

- (int) type
{
	return (int) qt_QEvent_type((qt_QEvent *)[self qt]);
}

- (BOOL) spontaneous
{
	return (BOOL) qt_QEvent_spontaneous((qt_QEvent *)[self qt]);
}

+ (int) None
{
	return (int) QEVENT_None;
}

+ (int) Timer
{
	return (int) QEVENT_Timer;
}

+ (int) MouseButtonPress
{
	return (int) QEVENT_MouseButtonPress;
}

+ (int) MouseButtonRelease
{
	return (int) QEVENT_MouseButtonRelease;
}

+ (int) MouseButtonDblClick
{
	return (int) QEVENT_MouseButtonDblClick;
}

+ (int) MouseMove
{
	return (int) QEVENT_MouseMove;
}

+ (int) KeyPress
{
	return (int) QEVENT_KeyPress;
}

+ (int) KeyRelease
{
	return (int) QEVENT_KeyRelease;
}

+ (int) FocusIn
{
	return (int) QEVENT_FocusIn;
}

+ (int) FocusOut
{
	return (int) QEVENT_FocusOut;
}

+ (int) Enter
{
	return (int) QEVENT_Enter;
}

+ (int) Leave
{
	return (int) QEVENT_Leave;
}

+ (int) Paint
{
	return (int) QEVENT_Paint;
}

+ (int) Move
{
	return (int) QEVENT_Move;
}

+ (int) Resize
{
	return (int) QEVENT_Resize;
}

+ (int) Create
{
	return (int) QEVENT_Create;
}

+ (int) Destroy
{
	return (int) QEVENT_Destroy;
}

+ (int) Show
{
	return (int) QEVENT_Show;
}

+ (int) Hide
{
	return (int) QEVENT_Hide;
}

+ (int) Close
{
	return (int) QEVENT_Close;
}

+ (int) Quit
{
	return (int) QEVENT_Quit;
}

+ (int) Reparent
{
	return (int) QEVENT_Reparent;
}

+ (int) ShowMinimized
{
	return (int) QEVENT_ShowMinimized;
}

+ (int) ShowNormal
{
	return (int) QEVENT_ShowNormal;
}

+ (int) WindowActivate
{
	return (int) QEVENT_WindowActivate;
}

+ (int) WindowDeactivate
{
	return (int) QEVENT_WindowDeactivate;
}

+ (int) ShowToParent
{
	return (int) QEVENT_ShowToParent;
}

+ (int) HideToParent
{
	return (int) QEVENT_HideToParent;
}

+ (int) ShowMaximized
{
	return (int) QEVENT_ShowMaximized;
}

+ (int) ShowFullScreen
{
	return (int) QEVENT_ShowFullScreen;
}

+ (int) Accel
{
	return (int) QEVENT_Accel;
}

+ (int) Wheel
{
	return (int) QEVENT_Wheel;
}

+ (int) AccelAvailable
{
	return (int) QEVENT_AccelAvailable;
}

+ (int) CaptionChange
{
	return (int) QEVENT_CaptionChange;
}

+ (int) IconChange
{
	return (int) QEVENT_IconChange;
}

+ (int) ParentFontChange
{
	return (int) QEVENT_ParentFontChange;
}

+ (int) ApplicationFontChange
{
	return (int) QEVENT_ApplicationFontChange;
}

+ (int) ParentPaletteChange
{
	return (int) QEVENT_ParentPaletteChange;
}

+ (int) ApplicationPaletteChange
{
	return (int) QEVENT_ApplicationPaletteChange;
}

+ (int) PaletteChange
{
	return (int) QEVENT_PaletteChange;
}

+ (int) Clipboard
{
	return (int) QEVENT_Clipboard;
}

+ (int) Speech
{
	return (int) QEVENT_Speech;
}

+ (int) SockAct
{
	return (int) QEVENT_SockAct;
}

+ (int) AccelOverride
{
	return (int) QEVENT_AccelOverride;
}

+ (int) DeferredDelete
{
	return (int) QEVENT_DeferredDelete;
}

+ (int) DragEnter
{
	return (int) QEVENT_DragEnter;
}

+ (int) DragMove
{
	return (int) QEVENT_DragMove;
}

+ (int) DragLeave
{
	return (int) QEVENT_DragLeave;
}

+ (int) Drop
{
	return (int) QEVENT_Drop;
}

+ (int) DragResponse
{
	return (int) QEVENT_DragResponse;
}

+ (int) ChildInserted
{
	return (int) QEVENT_ChildInserted;
}

+ (int) ChildRemoved
{
	return (int) QEVENT_ChildRemoved;
}

+ (int) LayoutHint
{
	return (int) QEVENT_LayoutHint;
}

+ (int) ShowWindowRequest
{
	return (int) QEVENT_ShowWindowRequest;
}

+ (int) ActivateControl
{
	return (int) QEVENT_ActivateControl;
}

+ (int) DeactivateControl
{
	return (int) QEVENT_DeactivateControl;
}

+ (int) ContextMenu
{
	return (int) QEVENT_ContextMenu;
}

+ (int) IMStart
{
	return (int) QEVENT_IMStart;
}

+ (int) IMCompose
{
	return (int) QEVENT_IMCompose;
}

+ (int) IMEnd
{
	return (int) QEVENT_IMEnd;
}

+ (int) Accessibility
{
	return (int) QEVENT_Accessibility;
}

+ (int) Tablet
{
	return (int) QEVENT_Tablet;
}

+ (int) User
{
	return (int) QEVENT_User;
}

+ (int) MaxUser
{
	return (int) QEVENT_MaxUser;
}

@end
