// File : main.cxx
// Created : Thu Dec 18 12:01:00 2002
// Author : Vadim SANDLER
-// Project : PAL/SALOME
-// Module : InstallWizard
-// Copyright : 2004 CEA
-// $Header$
+// Project : SALOME
+// Module : Installation Wizard
+// Copyright : 2004-2005 CEA
+
+#include "globals.h"
#include "SALOME_InstallWizard.hxx"
#include <qapplication.h>
#include <qfile.h>
#include <qmessagebox.h>
+// ================================================================
+/*!
+ * MessageOutput
+ * Qt's messages handler funcion
+ */
+// ================================================================
+void MessageOutput( QtMsgType type, const char *msg )
+{
+ switch ( type ) {
+ case QtDebugMsg:
+ ___DEBUG___( msg );
+ break;
+ case QtWarningMsg:
+ ___WARNING___( msg );
+ break;
+ case QtFatalMsg:
+ ___FATAL___( msg );
+ break;
+ }
+}
+
// ================================================================
/*!
* main
// ================================================================
int main( int argc, char **argv )
{
+ qInstallMsgHandler( MessageOutput );
QApplication a( argc, argv );
QString xmlFileName( argc == 2 ? argv[1] : "config.xml" );