/***************************************************************************
                            QApplication.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_QApplication.h>
#include <qtobjc/QApplication.h>
#include <qtobjc/QCursor.h>
#include <qtobjc/QFont.h>
#include <qtobjc/QPalette.h>
#include <qtobjc/QPoint.h>
#include <qtobjc/QSessionManager.h>
#include <qtobjc/QSize.h>
#include <qtobjc/QStyle.h>
#include <qtobjc/QTextCodec.h>
#include <qtobjc/QTranslator.h>
#include <qtobjc/QWidget.h>


static QApplication *		qAppInstance = nil;

@implementation  QApplication

- init
{
	qAppInstance = self;
 	[super init];
 	return self;
}

- initWithArgc: (int)argc argv: (char **)argv
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QApplication((int)argc, (char**) argv)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[self init];
	return self;
}

- initWithArgc: (int)argc argv: (char **)argv GUIenabled: (BOOL)GUIenabled
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QApplication1((int)argc, (char**) argv, (int)GUIenabled)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[self init];
	return self;
}

- initWithArgc: (int)argc argv: (char **)argv int: (int)arg1
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QApplication2((int)argc, (char**) argv, (int)arg1)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[self init];
	return self;
}

//- initWithDisplay: (Display*)dpy visual: (unsigned int)visual cmap: (unsigned int)cmap
//{
//	if ([self qt] == 0L) {
//		[self setQt: qt_new_QApplication3((Display*)dpy, (unsigned int)visual, (unsigned int)cmap)];
//		[self setAllocatedInObjcWorld: YES];
//		[QtSupport setObject: self forQtKey: [self qt]];
//	}
//	[self init];
//	return self;
//}

//- initWithDisplay: (Display*)dpy
//{
//	if ([self qt] == 0L) {
//		[self setQt: qt_new_QApplication3((Display*)dpy, 0, 0)];
//		[self setAllocatedInObjcWorld: YES];
//		[QtSupport setObject: self forQtKey: [self qt]];
//	}
//	[self init];
//	return self;
//}

//- initWithDisplay: (Display*)dpy argc: (int)argc argv: (NSString *)argv visual: (unsigned int)visual cmap: (unsigned int)cmap
//{
//	if ([self qt] == 0L) {
//		[self setQt: qt_new_QApplication4((Display*)dpy, (int)argc, (char**) [argv cString], (unsigned int)visual, (unsigned int)cmap)];
//		[self setAllocatedInObjcWorld: YES];
//		[QtSupport setObject: self forQtKey: [self qt]];
//	}
//	[self init];
//	return self;
//}

//- initWithDisplay: (Display*)dpy argc: (int)argc argv: (NSString *)argv
//{
//	if ([self qt] == 0L) {
//		[self setQt: qt_new_QApplication4((Display*)dpy, (int)argc, (char**) [argv cString], 0, 0)];
//		[self setAllocatedInObjcWorld: YES];
//		[QtSupport setObject: self forQtKey: [self qt]];
//	}
//	[self init];
//	return self;
//}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld] && [self parent] == nil) {
			qt_del_QApplication((qt_QApplication *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

+ qApp
{
	return qAppInstance;
}

- (int) argc
{
	return (int) qt_QApplication_argc((qt_QApplication *)[self qt]);
}

- (char **) argv
{
	return (char **) qt_QApplication_argv((qt_QApplication *)[self qt]);
}

- (int) type
{
	return (int) qt_QApplication_type((qt_QApplication *)[self qt]);
}

- (QWidget*) mainWidget
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_mainWidget((qt_QApplication *)[self qt]) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- setMainWidget: (QWidget *)arg1
{
	qt_QApplication_setMainWidget((qt_QApplication *)[self qt], (qt_QWidget *) [arg1 qt]);
	return self;
}

- polishWidget: (QWidget *)arg1
{
	qt_QApplication_polish((qt_QApplication *)[self qt], (qt_QWidget *) [arg1 qt]);
	return self;
}

- (QWidget*) focusWidget
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_focusWidget((qt_QApplication *)[self qt]) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- (QWidget*) activeWindow
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_activeWindow((qt_QApplication *)[self qt]) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- (int) exec
{
	return (int) qt_QApplication_exec((qt_QApplication *)[self qt]);
}

- processEvents
{
	qt_QApplication_processEvents((qt_QApplication *)[self qt]);
	return self;
}

- processEvents: (int)maxtime
{
	qt_QApplication_processEvents1((qt_QApplication *)[self qt], (int)maxtime);
	return self;
}

//- processOneEvent
//{
//	qt_QApplication_processOneEvent((qt_QApplication *)[self qt]);
//	return self;
//}

- (BOOL) hasPendingEvents
{
	return (BOOL) qt_QApplication_hasPendingEvents((qt_QApplication *)[self qt]);
}

- (int) enter_loop
{
	return (int) qt_QApplication_enter_loop((qt_QApplication *)[self qt]);
}

- exit_loop
{
	qt_QApplication_exit_loop((qt_QApplication *)[self qt]);
	return self;
}

- (int) loopLevel
{
	return (int) qt_QApplication_loopLevel((qt_QApplication *)[self qt]);
}

- (BOOL) notify: (QObject *)arg1 event: (QEvent *)arg2
{
	return (BOOL) qt_QApplication_notify((qt_QApplication *)[self qt], (qt_QObject *) [arg1 qt], (qt_QEvent *) [arg2 qt]);
}

- setDefaultCodec: (QTextCodec*)arg1
{
	qt_QApplication_setDefaultCodec((qt_QApplication *)[self qt], (qt_QTextCodec*) [arg1 qt]);
	return self;
}

- (QTextCodec*) defaultCodec
{
	return (QTextCodec*) [QtSupport objectForQtKey: qt_QApplication_defaultCodec((qt_QApplication *)[self qt]) withClass: [QTextCodec class] allocatedInObjcWorld: YES];
}

- installTranslator: (QTranslator*)arg1
{
	qt_QApplication_installTranslator((qt_QApplication *)[self qt], (qt_QTranslator*) [arg1 qt]);
	return self;
}

- removeTranslator: (QTranslator*)arg1
{
	qt_QApplication_removeTranslator((qt_QApplication *)[self qt], (qt_QTranslator*) [arg1 qt]);
	return self;
}

- (NSString *) translate: (NSString *)context key: (NSString *)key comment: (NSString *)comment encoding: (int)encoding
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QApplication_translate((qt_QApplication *)[self qt], (char*) [context cString], (char*) [key cString], (char*) [comment cString], (int)encoding);
	return [NSString fromQString: _qstring];
}

//- (BOOL) macEventFilter: (EventRef)arg1
//{
//	return (BOOL) qt_QApplication_macEventFilter((qt_QApplication *)[self qt], (EventRef) arg1);
//}

//- (BOOL) winEventFilter: (MSG*)arg1
//{
//	return (BOOL) qt_QApplication_winEventFilter((qt_QApplication *)[self qt], (MSG*)arg1);
//}

//- (BOOL) x11EventFilter: (XEvent*)arg1
//{
//	return (BOOL) qt_QApplication_x11EventFilter((qt_QApplication *)[self qt], (XEvent*)arg1);
//}

//- (int) x11ClientMessage: (QWidget *)arg1 xevent: (XEvent*)arg2 passive_only: (BOOL)passive_only
//{
//	return (int) qt_QApplication_x11ClientMessage((qt_QApplication *)[self qt], (qt_QWidget *) [arg1 qt], (XEvent*)arg2, (int)passive_only);
//}

//- (int) x11ProcessEvent: (XEvent*)arg1
//{
//	return (int) qt_QApplication_x11ProcessEvent((qt_QApplication *)[self qt], (XEvent*)arg1);
//}

//- (BOOL) qwsEventFilter: (QWSEvent*)arg1
//{
//	return (BOOL) qt_QApplication_qwsEventFilter((qt_QApplication *)[self qt], (qt_QWSEvent*) [arg1 qt]);
//}

//- (int) qwsProcessEvent: (QWSEvent*)arg1
//{
//	return (int) qt_QApplication_qwsProcessEvent((qt_QApplication *)[self qt], (qt_QWSEvent*) [arg1 qt]);
//}

//- qwsSetCustomColors: (int *)colortable start: (int)start numColors: (int)numColors
//{
//	qt_QApplication_qwsSetCustomColors((qt_QApplication *)[self qt], (int *)colortable, (int)start, (int)numColors);
//	return self;
//}

//- winFocus: (QWidget *)arg1 bool: (BOOL)arg2
//{
//	qt_QApplication_winFocus((qt_QApplication *)[self qt], (qt_QWidget *) [arg1 qt], (int)arg2);
//	return self;
//}

- (BOOL) isSessionRestored
{
	return (BOOL) qt_QApplication_isSessionRestored((qt_QApplication *)[self qt]);
}

- (NSString *) sessionId
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QApplication_sessionId((qt_QApplication *)[self qt]);
	return [NSString fromQString: _qstring];
}

- commitData: (QSessionManager*)sm
{
	qt_QApplication_commitData((qt_QApplication *)[self qt], (qt_QSessionManager*) [sm qt]);
	return self;
}

- saveState: (QSessionManager*)sm
{
	qt_QApplication_saveState((qt_QApplication *)[self qt], (qt_QSessionManager*) [sm qt]);
	return self;
}

//- wakeUpGuiThread
//{
//	qt_QApplication_wakeUpGuiThread((qt_QApplication *)[self qt]);
//	return self;
//}

//- lock
//{
//	qt_QApplication_lock((qt_QApplication *)[self qt]);
//	return self;
//}

//- unlock: (BOOL)wakeUpGui
//{
//	qt_QApplication_unlock((qt_QApplication *)[self qt], (int)wakeUpGui);
//	return self;
//}

//- unlock
//{
//	qt_QApplication_unlock((qt_QApplication *)[self qt], 1);
//	return self;
//}

//- (BOOL) locked
//{
//	return (BOOL) qt_QApplication_locked((qt_QApplication *)[self qt]);
//}

//- (BOOL) tryLock
//{
//	return (BOOL) qt_QApplication_tryLock((qt_QApplication *)[self qt]);
//}

//- setEnableRemoteControl: (BOOL)enable appId: (QUuid)appId
//{
//	qt_QApplication_setEnableRemoteControl((qt_QApplication *)[self qt], (int)enable, (QUuid) appId);
//	return self;
//}

//- setEnableRemoteControl: (BOOL)enable
//{
//	qt_QApplication_setEnableRemoteControl((qt_QApplication *)[self qt], (int)enable, [QApplication QUuid()]);
//	return self;
//}

//- (BOOL) remoteControlEnabled
//{
//	return (BOOL) qt_QApplication_remoteControlEnabled((qt_QApplication *)[self qt]);
//}

//- (QUuid) applicationId
//{
//	return (QUuid) qt_QApplication_applicationId((qt_QApplication *)[self qt]);
//}

- quit
{
	qt_QApplication_quit((qt_QApplication *)[self qt]);
	return self;
}

- closeAllWindows
{
	qt_QApplication_closeAllWindows((qt_QApplication *)[self qt]);
	return self;
}

+ (QStyle*) style
{
	return (QStyle*) [QtSupport objectForQtKey: qt_QApplication_style() withClass: [QStyle class] allocatedInObjcWorld: YES];
}

+ setStyle: (QStyle*)arg1
{
	qt_QApplication_setStyle((qt_QStyle*) [arg1 qt]);
	return self;
}

+ (QStyle*) setStyleFromString: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	return (QStyle*) [QtSupport objectForQtKey: qt_QApplication_setStyle1((qt_QString *) [arg1 toQString: &_qstring_arg1]) withClass: [QStyle class] allocatedInObjcWorld: YES];
}

+ (int) colorMode
{
	return (int) qt_QApplication_colorMode();
}

+ setColorMode: (int)arg1
{
	qt_QApplication_setColorMode((int)arg1);
	return self;
}

+ (int) colorSpec
{
	return (int) qt_QApplication_colorSpec();
}

+ setColorSpec: (int)arg1
{
	qt_QApplication_setColorSpec((int)arg1);
	return self;
}

+ (QCursor*) overrideCursor
{
	return (QCursor*) [QtSupport objectForQtKey: qt_QApplication_overrideCursor() withClass: [QCursor class] allocatedInObjcWorld: YES];
}

+ setOverrideCursor: (QCursor *)arg1 replace: (BOOL)replace
{
	qt_QApplication_setOverrideCursor((qt_QCursor *) [arg1 qt], (int)replace);
	return self;
}

+ setOverrideCursor: (QCursor *)arg1 
{
	qt_QApplication_setOverrideCursor((qt_QCursor *) [arg1 qt], 0);
	return self;
}

+ restoreOverrideCursor
{
	qt_QApplication_restoreOverrideCursor();
	return self;
}

+ (BOOL) hasGlobalMouseTracking
{
	return (BOOL) qt_QApplication_hasGlobalMouseTracking();
}

+ setGlobalMouseTracking: (BOOL)enable
{
	qt_QApplication_setGlobalMouseTracking((int)enable);
	return self;
}

+ (QPalette*) palette: (QWidget *)arg1
{
	return (QPalette*) [QtSupport objectForQtKey: qt_QApplication_palette((qt_QWidget *) [arg1 qt]) withClass: [QPalette class] allocatedInObjcWorld: YES];
}

+ (QPalette*) palette
{
	return (QPalette*) [QtSupport objectForQtKey: qt_QApplication_palette(0) withClass: [QPalette class] allocatedInObjcWorld: YES];
}

+ setPalette: (QPalette *)arg1 informWidgets: (BOOL)informWidgets className: (NSString *)className
{
	qt_QApplication_setPalette((qt_QPalette *) [arg1 qt], (int)informWidgets, (char*) [className cString]);
	return self;
}

+ setPalette: (QPalette *)arg1 
{
	qt_QApplication_setPalette((qt_QPalette *) [arg1 qt], 0, 0);
	return self;
}

+ (QFont*) font: (QWidget *)arg1
{
	return (QFont*) [QtSupport objectForQtKey: qt_QApplication_font((qt_QWidget *) [arg1 qt]) withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ (QFont*) font
{
	return (QFont*) [QtSupport objectForQtKey: qt_QApplication_font(0) withClass: [QFont class] allocatedInObjcWorld: YES];
}

+ setFont: (QFont *)arg1 informWidgets: (BOOL)informWidgets className: (NSString *)className
{
	qt_QApplication_setFont((qt_QFont *) [arg1 qt], (int)informWidgets, (char*) [className cString]);
	return self;
}

+ setFont: (QFont *)arg1 
{
	qt_QApplication_setFont((qt_QFont *) [arg1 qt], 0, 0);
	return self;
}

+ (QFontMetrics*) fontMetrics
{
	return (QFontMetrics*) [QtSupport objectForQtKey: qt_QApplication_fontMetrics() withClass: [QFontMetrics class] allocatedInObjcWorld: YES];
}

+ (NSArray *) allWidgets
{
static qt_QWidgetList * _qlist = 0L;
	_qlist = qt_QApplication_allWidgets();
	return (NSArray *) [NSMutableArray arrayWithQWidgetList: _qlist];
}

+ (NSArray *) topLevelWidgets
{
static qt_QWidgetList * _qlist = 0L;
	_qlist = qt_QApplication_topLevelWidgets();
	return (NSArray *) [NSMutableArray arrayWithQWidgetList: _qlist];
}

//+ (QDesktopWidget*) desktop
//{
//	return (QDesktopWidget*) [QtSupport objectForQtKey: qt_QApplication_desktop() withClass: [QDesktopWidget class] allocatedInObjcWorld: YES];
//}

+ (QWidget*) activePopupWidget
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_activePopupWidget() withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ (QWidget*) activeModalWidget
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_activeModalWidget() withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ (QClipboard*) clipboard
{
	return (QClipboard*) [QtSupport objectForQtKey: qt_QApplication_clipboard() withClass: [QClipboard class] allocatedInObjcWorld: YES];
}

+ (QWidget*) widgetAt: (int)x y: (int)y child: (BOOL)child
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_widgetAt((int)x, (int)y, (int)child) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ (QWidget*) widgetAt: (int)x y: (int)y 
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_widgetAt((int)x, (int)y, 0) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ (QWidget*) widgetAt: (QPoint*)arg1 child: (BOOL)child
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_widgetAt1((qt_QPoint*) [arg1 qt], (int)child) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ (QWidget*) widgetAt: (QPoint*)arg1 
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QApplication_widgetAt1((qt_QPoint*) [arg1 qt], 0) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

+ exit: (int)retcode
{
	qt_QApplication_exit((int)retcode);
	return self;
}

+ exit
{
	qt_QApplication_exit(0);
	return self;
}

//+ (BOOL) sendEvent: (QObject *)receiver event: (QEvent *)event
//{
//	return (BOOL) qt_QApplication_sendEvent((qt_QObject *) [receiver qt], (qt_QEvent *) [event qt]);
//}

//+ postEvent: (QObject *)receiver event: (QEvent *)event
//{
//	qt_QApplication_postEvent((qt_QObject *) [receiver qt], (qt_QEvent *) [event qt]);
//	return self;
//}

+ sendPostedEvents: (QObject *)receiver event_type: (int)event_type
{
	qt_QApplication_sendPostedEvents((qt_QObject *) [receiver qt], (int)event_type);
	return self;
}

+ sendPostedEvents
{
	qt_QApplication_sendPostedEvents1();
	return self;
}

+ removePostedEvents: (QObject *)receiver
{
	qt_QApplication_removePostedEvents((qt_QObject *) [receiver qt]);
	return self;
}

+ (BOOL) startingUp
{
	return (BOOL) qt_QApplication_startingUp();
}

+ (BOOL) closingDown
{
	return (BOOL) qt_QApplication_closingDown();
}

+ flushX
{
	qt_QApplication_flushX();
	return self;
}

+ flush
{
	qt_QApplication_flush();
	return self;
}

+ syncX
{
	qt_QApplication_syncX();
	return self;
}

+ beep
{
	qt_QApplication_beep();
	return self;
}

+ setWinStyleHighlightColor: (QColor *)c
{
	qt_QApplication_setWinStyleHighlightColor((qt_QColor *) [c qt]);
	return self;
}

+ (QColor*) winStyleHighlightColor
{
	return (QColor*) [QtSupport objectForQtKey: qt_QApplication_winStyleHighlightColor() withClass: [QColor class] allocatedInObjcWorld: YES];
}

+ setDesktopSettingsAware: (BOOL)arg1
{
	qt_QApplication_setDesktopSettingsAware((int)arg1);
	return self;
}

+ (BOOL) desktopSettingsAware
{
	return (BOOL) qt_QApplication_desktopSettingsAware();
}

+ setCursorFlashTime: (int)arg1
{
	qt_QApplication_setCursorFlashTime((int)arg1);
	return self;
}

+ (int) cursorFlashTime
{
	return (int) qt_QApplication_cursorFlashTime();
}

+ setDoubleClickInterval: (int)arg1
{
	qt_QApplication_setDoubleClickInterval((int)arg1);
	return self;
}

+ (int) doubleClickInterval
{
	return (int) qt_QApplication_doubleClickInterval();
}

+ setWheelScrollLines: (int)arg1
{
	qt_QApplication_setWheelScrollLines((int)arg1);
	return self;
}

+ (int) wheelScrollLines
{
	return (int) qt_QApplication_wheelScrollLines();
}

+ setGlobalStrut: (QSize *)arg1
{
	qt_QApplication_setGlobalStrut((qt_QSize *) [arg1 qt]);
	return self;
}

+ (QSize*) globalStrut
{
	return (QSize*) [QtSupport objectForQtKey: qt_QApplication_globalStrut() withClass: [QSize class] allocatedInObjcWorld: YES];
}

+ setLibraryPaths: (NSArray *)arg1
{
static qt_QStringList * _qlist_arg1 = 0L;
	qt_QApplication_setLibraryPaths((qt_QStringList*) [arg1 toQStringList: (void *)&_qlist_arg1]);
	return self;
}

+ (NSArray *) libraryPaths
{
static qt_QStringList * _qlist = 0L;
	_qlist = qt_QApplication_libraryPaths();
	return (NSArray *) [NSMutableArray arrayWithQStringList: _qlist];
}

+ addLibraryPath: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	qt_QApplication_addLibraryPath((qt_QString *) [arg1 toQString: &_qstring_arg1]);
	return self;
}

+ removeLibraryPath: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	qt_QApplication_removeLibraryPath((qt_QString *) [arg1 toQString: &_qstring_arg1]);
	return self;
}

+ setStartDragTime: (int)ms
{
	qt_QApplication_setStartDragTime((int)ms);
	return self;
}

+ (int) startDragTime
{
	return (int) qt_QApplication_startDragTime();
}

+ setStartDragDistance: (int)l
{
	qt_QApplication_setStartDragDistance((int)l);
	return self;
}

+ (int) startDragDistance
{
	return (int) qt_QApplication_startDragDistance();
}

+ setReverseLayout: (BOOL)b
{
	qt_QApplication_setReverseLayout((int)b);
	return self;
}

+ (BOOL) reverseLayout
{
	return (BOOL) qt_QApplication_reverseLayout();
}

+ (int) horizontalAlignment: (int)align
{
	return (int) qt_QApplication_horizontalAlignment((int)align);
}

+ (BOOL) isEffectEnabled: (int)arg1
{
	return (BOOL) qt_QApplication_isEffectEnabled((int)arg1);
}

+ setEffectEnabled: (int)arg1 enable: (BOOL)enable
{
	qt_QApplication_setEffectEnabled((int)arg1, (int)enable);
	return self;
}

+ setEffectEnabled: (int)arg1 
{
	qt_QApplication_setEffectEnabled((int)arg1, 1);
	return self;
}

//+ (QWSDecoration*) qwsDecoration
//{
//	return (QWSDecoration*) [QtSupport objectForQtKey: qt_QApplication_qwsDecoration() withClass: [QWSDecoration class] allocatedInObjcWorld: YES];
//}

//+ qwsSetDecoration: (QWSDecoration*)arg1
//{
//	qt_QApplication_qwsSetDecoration((qt_QWSDecoration*) [arg1 qt]);
//	return self;
//}

//+ (int) winVersion
//{
//	return (int) qt_QApplication_winVersion();
//}

//+ winMouseButtonUp
//{
//	qt_QApplication_winMouseButtonUp();
//	return self;
//}

//+ create_xim
//{
//	qt_QApplication_create_xim();
//	return self;
//}

//+ close_xim
//{
//	qt_QApplication_close_xim();
//	return self;
//}

//+ (BOOL) x11_apply_settings
//{
//	return (BOOL) qt_QApplication_x11_apply_settings();
//}

+ (int) Tty
{
	return (int) QAPPLICATION_Tty;
}

+ (int) GuiClient
{
	return (int) QAPPLICATION_GuiClient;
}

+ (int) GuiServer
{
	return (int) QAPPLICATION_GuiServer;
}

+ (int) NormalColors
{
	return (int) QAPPLICATION_NormalColors;
}

+ (int) CustomColors
{
	return (int) QAPPLICATION_CustomColors;
}

+ (int) NormalColor
{
	return (int) QAPPLICATION_NormalColor;
}

+ (int) CustomColor
{
	return (int) QAPPLICATION_CustomColor;
}

+ (int) ManyColor
{
	return (int) QAPPLICATION_ManyColor;
}

+ (int) DefaultCodec
{
	return (int) QAPPLICATION_DefaultCodec;
}

+ (int) UnicodeUTF8
{
	return (int) QAPPLICATION_UnicodeUTF8;
}

@end
