/***************************************************************************
                            qt_QApplication.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QApplication.h"
}

#include <qapplication.h>

class QApplicationBridge : public QApplication
{
public:
	QApplicationBridge(int& argc, char* * argv) : QApplication(argc, argv) {}
	QApplicationBridge(int& argc, char* * argv, bool GUIenabled) : QApplication(argc, argv, GUIenabled) {}
	QApplicationBridge(int& argc, char* * argv, Type arg1) : QApplication(argc, argv, arg1) {}
	QApplicationBridge(Display* dpy, HANDLE visual, HANDLE cmap) : QApplication(dpy, visual, cmap) {}
	QApplicationBridge(Display* dpy, int argc, char* * argv, HANDLE visual, HANDLE cmap) : QApplication(dpy, argc, argv, visual, cmap) {}
	~QApplicationBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QApplication * qt_new_QApplication(int argc, char** argv){
	return (qt_QApplication *) new QApplicationBridge((int&)argc, (char**)argv);
}
qt_QApplication * qt_new_QApplication1(int argc, char** argv, int GUIenabled){
	return (qt_QApplication *) new QApplicationBridge((int&)argc, (char**)argv, (bool)GUIenabled);
}
qt_QApplication * qt_new_QApplication2(int argc, char** argv, int arg1){
	return (qt_QApplication *) new QApplicationBridge((int&)argc, (char**)argv, (QApplication::Type)arg1);
}
//qt_QApplication * qt_new_QApplication3(Display* dpy, unsigned int visual, unsigned int cmap){
//	return (qt_QApplication *) new QApplicationBridge((Display*)dpy, (HANDLE)visual, (HANDLE)cmap);
//}
//qt_QApplication * qt_new_QApplication4(Display* dpy, int argc, char** argv, unsigned int visual, unsigned int cmap){
//	return (qt_QApplication *) new QApplicationBridge((Display*)dpy, (int)argc, (char**)argv, (HANDLE)visual, (HANDLE)cmap);
//}
void qt_del_QApplication( qt_QApplication* p ){
	delete (QApplicationBridge*) p;
}
int qt_QApplication_argc( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->argc();
}
char** qt_QApplication_argv( qt_QApplication* instPointer){
	return (char**) ((QApplicationBridge*)instPointer)->argv();
}
int qt_QApplication_type( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->type();
}
qt_QWidget * qt_QApplication_mainWidget( qt_QApplication* instPointer){
	return (qt_QWidget *) ((QApplicationBridge*)instPointer)->mainWidget();
}
void qt_QApplication_setMainWidget( qt_QApplication* instPointer,qt_QWidget * arg1){
	((QApplicationBridge*)instPointer)->setMainWidget((QWidget*)arg1);
	return;
}
void qt_QApplication_polish( qt_QApplication* instPointer,qt_QWidget * arg1){
	((QApplicationBridge*)instPointer)->polish((QWidget*)arg1);
	return;
}
qt_QWidget * qt_QApplication_focusWidget( qt_QApplication* instPointer){
	return (qt_QWidget *) ((QApplicationBridge*)instPointer)->focusWidget();
}
qt_QWidget * qt_QApplication_activeWindow( qt_QApplication* instPointer){
	return (qt_QWidget *) ((QApplicationBridge*)instPointer)->activeWindow();
}
int qt_QApplication_exec( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->exec();
}
void qt_QApplication_processEvents( qt_QApplication* instPointer){
	((QApplicationBridge*)instPointer)->processEvents();
	return;
}
void qt_QApplication_processEvents1( qt_QApplication* instPointer,int maxtime){
	((QApplicationBridge*)instPointer)->processEvents((int)maxtime);
	return;
}
int qt_QApplication_hasPendingEvents( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->hasPendingEvents();
}
int qt_QApplication_enter_loop( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->enter_loop();
}
void qt_QApplication_exit_loop( qt_QApplication* instPointer){
	((QApplicationBridge*)instPointer)->exit_loop();
	return;
}
int qt_QApplication_loopLevel( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->loopLevel();
}
int qt_QApplication_notify( qt_QApplication* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QApplicationBridge*)instPointer)->notify((QObject*)arg1, (QEvent*)arg2);
}
void qt_QApplication_setDefaultCodec( qt_QApplication* instPointer,qt_QTextCodec* arg1){
	((QApplicationBridge*)instPointer)->setDefaultCodec((QTextCodec*)arg1);
	return;
}
qt_QTextCodec* qt_QApplication_defaultCodec( qt_QApplication* instPointer){
	return (qt_QTextCodec*) ((QApplicationBridge*)instPointer)->defaultCodec();
}
void qt_QApplication_installTranslator( qt_QApplication* instPointer,qt_QTranslator* arg1){
	((QApplicationBridge*)instPointer)->installTranslator((QTranslator*)arg1);
	return;
}
void qt_QApplication_removeTranslator( qt_QApplication* instPointer,qt_QTranslator* arg1){
	((QApplicationBridge*)instPointer)->removeTranslator((QTranslator*)arg1);
	return;
}
qt_QString * qt_QApplication_translate( qt_QApplication* instPointer,char* context, char* key, char* comment, int encoding){
	return (qt_QString *)new QString(((QApplicationBridge*)instPointer)->translate((char*)context, (char*)key, (char*)comment, (QApplication::Encoding)encoding));
}
//int qt_QApplication_macEventFilter( qt_QApplication* instPointer,EventRef arg1){
//	return (int) ((QApplicationBridge*)instPointer)->macEventFilter((EventRef)arg1);
//}
//int qt_QApplication_winEventFilter( qt_QApplication* instPointer,MSG* arg1){
//	return (int) ((QApplicationBridge*)instPointer)->winEventFilter((MSG*)arg1);
//}
//int qt_QApplication_x11EventFilter( qt_QApplication* instPointer,XEvent* arg1){
//	return (int) ((QApplicationBridge*)instPointer)->x11EventFilter((XEvent*)arg1);
//}
int qt_QApplication_x11ClientMessage( qt_QApplication* instPointer,qt_QWidget * arg1, XEvent* arg2, int passive_only){
	return (int) ((QApplicationBridge*)instPointer)->x11ClientMessage((QWidget*)arg1, (XEvent*)arg2, (bool)passive_only);
}
//int qt_QApplication_qwsEventFilter( qt_QApplication* instPointer,qt_QWSEvent* arg1){
//	return (int) ((QApplicationBridge*)instPointer)->qwsEventFilter((QWSEvent*)arg1);
//}
//void qt_QApplication_qwsSetCustomColors( qt_QApplication* instPointer,int * colortable, int start, int numColors){
//	((QApplicationBridge*)instPointer)->qwsSetCustomColors((QRgb*)colortable, (int)start, (int)numColors);
//	return;
//}
//void qt_QApplication_winFocus( qt_QApplication* instPointer,qt_QWidget * arg1, int arg2){
//	((QApplicationBridge*)instPointer)->winFocus((QWidget*)arg1, (bool)arg2);
//	return;
//}
int qt_QApplication_isSessionRestored( qt_QApplication* instPointer){
	return (int) ((QApplicationBridge*)instPointer)->isSessionRestored();
}
qt_QString * qt_QApplication_sessionId( qt_QApplication* instPointer){
	return (qt_QString *)new QString(((QApplicationBridge*)instPointer)->sessionId());
}
void qt_QApplication_commitData( qt_QApplication* instPointer,qt_QSessionManager* sm){
	((QApplicationBridge*)instPointer)->commitData((QSessionManager&)* (QSessionManager*)sm);
	return;
}
void qt_QApplication_saveState( qt_QApplication* instPointer,qt_QSessionManager* sm){
	((QApplicationBridge*)instPointer)->saveState((QSessionManager&)* (QSessionManager*)sm);
	return;
}
void qt_QApplication_wakeUpGuiThread( qt_QApplication* instPointer){
	((QApplicationBridge*)instPointer)->wakeUpGuiThread();
	return;
}
//void qt_QApplication_lock( qt_QApplication* instPointer){
//	((QApplicationBridge*)instPointer)->lock();
//	return;
//}
//void qt_QApplication_unlock( qt_QApplication* instPointer,int wakeUpGui){
//	((QApplicationBridge*)instPointer)->unlock((bool)wakeUpGui);
//	return;
//}
//int qt_QApplication_locked( qt_QApplication* instPointer){
//	return (int) ((QApplicationBridge*)instPointer)->locked();
//}
//int qt_QApplication_tryLock( qt_QApplication* instPointer){
//	return (int) ((QApplicationBridge*)instPointer)->tryLock();
//}
//void qt_QApplication_setEnableRemoteControl( qt_QApplication* instPointer,int enable, QUuid appId){
//	((QApplicationBridge*)instPointer)->setEnableRemoteControl((bool)enable, (QUuid)appId);
//	return;
//}
//int qt_QApplication_remoteControlEnabled( qt_QApplication* instPointer){
//	return (int) ((QApplicationBridge*)instPointer)->remoteControlEnabled();
//}
//QUuid qt_QApplication_applicationId( qt_QApplication* instPointer){
//	return (QUuid) ((QApplicationBridge*)instPointer)->applicationId();
//}
void qt_QApplication_quit( qt_QApplication* instPointer){
	((QApplicationBridge*)instPointer)->quit();
	return;
}
void qt_QApplication_closeAllWindows( qt_QApplication* instPointer){
	((QApplicationBridge*)instPointer)->closeAllWindows();
	return;
}
qt_QStyle* qt_QApplication_style( ){
	return (qt_QStyle*) ( QStyle *)&QApplicationBridge::style();
}
void qt_QApplication_setStyle( qt_QStyle* arg1){
	QApplicationBridge::setStyle((QStyle*)arg1);
	return;
}
qt_QStyle* qt_QApplication_setStyle1( qt_QString * arg1){
	return (qt_QStyle*) QApplicationBridge::setStyle((QString&)* (QString*)arg1);
}
int qt_QApplication_colorMode( ){
	return (int) QApplicationBridge::colorMode();
}
void qt_QApplication_setColorMode( int arg1){
	QApplicationBridge::setColorMode((QApplication::ColorMode)arg1);
	return;
}
int qt_QApplication_colorSpec( ){
	return (int) QApplicationBridge::colorSpec();
}
void qt_QApplication_setColorSpec( int arg1){
	QApplicationBridge::setColorSpec((int)arg1);
	return;
}
qt_QCursor * qt_QApplication_overrideCursor( ){
	return (qt_QCursor *) QApplicationBridge::overrideCursor();
}
void qt_QApplication_setOverrideCursor( qt_QCursor * arg1, int replace){
	QApplicationBridge::setOverrideCursor((QCursor&)* (QCursor*)arg1, (bool)replace);
	return;
}
void qt_QApplication_restoreOverrideCursor( ){
	QApplicationBridge::restoreOverrideCursor();
	return;
}
int qt_QApplication_hasGlobalMouseTracking( ){
	return (int) QApplicationBridge::hasGlobalMouseTracking();
}
void qt_QApplication_setGlobalMouseTracking( int enable){
	QApplicationBridge::setGlobalMouseTracking((bool)enable);
	return;
}
qt_QPalette * qt_QApplication_palette( qt_QWidget * arg1){
	return (qt_QPalette *)new QPalette(QApplicationBridge::palette((QWidget*)arg1));
}
void qt_QApplication_setPalette( qt_QPalette * arg1, int informWidgets, char* className){
	QApplicationBridge::setPalette((QPalette&)* (QPalette*)arg1, (bool)informWidgets, (char*)className);
	return;
}
qt_QFont * qt_QApplication_font( qt_QWidget * arg1){
	return (qt_QFont *)new QFont(QApplicationBridge::font((QWidget*)arg1));
}
void qt_QApplication_setFont( qt_QFont * arg1, int informWidgets, char* className){
	QApplicationBridge::setFont((QFont&)* (QFont*)arg1, (bool)informWidgets, (char*)className);
	return;
}
qt_QFontMetrics * qt_QApplication_fontMetrics( ){
	return (qt_QFontMetrics *)new QFontMetrics(QApplicationBridge::fontMetrics());
}
qt_QWidgetList* qt_QApplication_allWidgets( ){
	return (qt_QWidgetList*) QApplicationBridge::allWidgets();
}
qt_QWidgetList* qt_QApplication_topLevelWidgets( ){
	return (qt_QWidgetList*) QApplicationBridge::topLevelWidgets();
}
qt_QDesktopWidget* qt_QApplication_desktop( ){
	return (qt_QDesktopWidget*) QApplicationBridge::desktop();
}
qt_QWidget * qt_QApplication_activePopupWidget( ){
	return (qt_QWidget *) QApplicationBridge::activePopupWidget();
}
qt_QWidget * qt_QApplication_activeModalWidget( ){
	return (qt_QWidget *) QApplicationBridge::activeModalWidget();
}
qt_QClipboard * qt_QApplication_clipboard( ){
	return (qt_QClipboard *) QApplicationBridge::clipboard();
}
qt_QWidget * qt_QApplication_widgetAt( int x, int y, int child){
	return (qt_QWidget *) QApplicationBridge::widgetAt((int)x, (int)y, (bool)child);
}
qt_QWidget * qt_QApplication_widgetAt1( qt_QPoint* arg1, int child){
	return (qt_QWidget *) QApplicationBridge::widgetAt((QPoint&)* (QPoint*)arg1, (bool)child);
}
void qt_QApplication_exit( int retcode){
	QApplicationBridge::exit((int)retcode);
	return;
}
void qt_QApplication_sendPostedEvents( qt_QObject * receiver, int event_type){
	QApplicationBridge::sendPostedEvents((QObject*)receiver, (int)event_type);
	return;
}
void qt_QApplication_sendPostedEvents1( ){
	QApplicationBridge::sendPostedEvents();
	return;
}
void qt_QApplication_removePostedEvents( qt_QObject * receiver){
	QApplicationBridge::removePostedEvents((QObject*)receiver);
	return;
}
int qt_QApplication_startingUp( ){
	return (int) QApplicationBridge::startingUp();
}
int qt_QApplication_closingDown( ){
	return (int) QApplicationBridge::closingDown();
}
void qt_QApplication_flushX( ){
	QApplicationBridge::flushX();
	return;
}
void qt_QApplication_flush( ){
	QApplicationBridge::flush();
	return;
}
void qt_QApplication_syncX( ){
	QApplicationBridge::syncX();
	return;
}
void qt_QApplication_beep( ){
	QApplicationBridge::beep();
	return;
}
void qt_QApplication_setWinStyleHighlightColor( qt_QColor * c){
	QApplicationBridge::setWinStyleHighlightColor((QColor&)* (QColor*)c);
	return;
}
qt_QColor * qt_QApplication_winStyleHighlightColor( ){
	return (qt_QColor *) (const QColor *)&QApplicationBridge::winStyleHighlightColor();
}
void qt_QApplication_setDesktopSettingsAware( int arg1){
	QApplicationBridge::setDesktopSettingsAware((bool)arg1);
	return;
}
int qt_QApplication_desktopSettingsAware( ){
	return (int) QApplicationBridge::desktopSettingsAware();
}
void qt_QApplication_setCursorFlashTime( int arg1){
	QApplicationBridge::setCursorFlashTime((int)arg1);
	return;
}
int qt_QApplication_cursorFlashTime( ){
	return (int) QApplicationBridge::cursorFlashTime();
}
void qt_QApplication_setDoubleClickInterval( int arg1){
	QApplicationBridge::setDoubleClickInterval((int)arg1);
	return;
}
int qt_QApplication_doubleClickInterval( ){
	return (int) QApplicationBridge::doubleClickInterval();
}
void qt_QApplication_setWheelScrollLines( int arg1){
	QApplicationBridge::setWheelScrollLines((int)arg1);
	return;
}
int qt_QApplication_wheelScrollLines( ){
	return (int) QApplicationBridge::wheelScrollLines();
}
void qt_QApplication_setGlobalStrut( qt_QSize * arg1){
	QApplicationBridge::setGlobalStrut((QSize&)* (QSize*)arg1);
	return;
}
qt_QSize * qt_QApplication_globalStrut( ){
	QSize _s= QApplicationBridge::globalStrut();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QApplication_setLibraryPaths( qt_QStringList* arg1){
	QApplicationBridge::setLibraryPaths((QStringList&)* (QStringList*)arg1);
	return;
}
qt_QStringList* qt_QApplication_libraryPaths( ){
	return (qt_QStringList*)new QStringList(QApplicationBridge::libraryPaths());
}
void qt_QApplication_addLibraryPath( qt_QString * arg1){
	QApplicationBridge::addLibraryPath((QString&)* (QString*)arg1);
	return;
}
void qt_QApplication_removeLibraryPath( qt_QString * arg1){
	QApplicationBridge::removeLibraryPath((QString&)* (QString*)arg1);
	return;
}
void qt_QApplication_setStartDragTime( int ms){
	QApplicationBridge::setStartDragTime((int)ms);
	return;
}
int qt_QApplication_startDragTime( ){
	return (int) QApplicationBridge::startDragTime();
}
void qt_QApplication_setStartDragDistance( int l){
	QApplicationBridge::setStartDragDistance((int)l);
	return;
}
int qt_QApplication_startDragDistance( ){
	return (int) QApplicationBridge::startDragDistance();
}
void qt_QApplication_setReverseLayout( int b){
	QApplicationBridge::setReverseLayout((bool)b);
	return;
}
int qt_QApplication_reverseLayout( ){
	return (int) QApplicationBridge::reverseLayout();
}
int qt_QApplication_horizontalAlignment( int align){
	return (int) QApplicationBridge::horizontalAlignment((int)align);
}
int qt_QApplication_isEffectEnabled( int arg1){
	return (int) QApplicationBridge::isEffectEnabled((Qt::UIEffect)arg1);
}
void qt_QApplication_setEffectEnabled( int arg1, int enable){
	QApplicationBridge::setEffectEnabled((Qt::UIEffect)arg1, (bool)enable);
	return;
}
//qt_QWSDecoration* qt_QApplication_qwsDecoration( ){
//	return (qt_QWSDecoration*) ( QWSDecoration *)&QApplicationBridge::qwsDecoration();
//}
//void qt_QApplication_qwsSetDecoration( qt_QWSDecoration* arg1){
//	QApplicationBridge::qwsSetDecoration((QWSDecoration*)arg1);
//	return;
//}
//int qt_QApplication_winVersion( ){
//	return (int) QApplicationBridge::winVersion();
//}
//void qt_QApplication_winMouseButtonUp( ){
//	QApplicationBridge::winMouseButtonUp();
//	return;
//}
//void qt_QApplication_create_xim( ){
//	QApplicationBridge::create_xim();
//	return;
//}
//void qt_QApplication_close_xim( ){
//	QApplicationBridge::close_xim();
//	return;
//}
int qt_QApplication_x11_apply_settings( ){
	return (int) QApplicationBridge::x11_apply_settings();
}
