Salome HOME
update config files
[tools/install.git] / src / main.cxx
index 38b5f61ba124ac2239f0688e66ef93c5e9808ff1..63cfd193db20d3bb4df6020c685743591e55ea62 100644 (file)
@@ -1,16 +1,38 @@
 //  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
@@ -19,7 +41,9 @@
 // ================================================================
 int main( int argc, char **argv )
 {
+  qInstallMsgHandler( MessageOutput );
   QApplication a( argc, argv );
+  a.setFont( QFont("Helvetica", 9 ) );
   QString xmlFileName( argc == 2 ? argv[1] : "config.xml" );
   
   int result = -1;