2 // Created : Thu Dec 18 12:01:00 2002
3 // Author : Vadim SANDLER
5 // Module : Installation Wizard
6 // Copyright : 2004-2005 CEA
10 #include "SALOME_InstallWizard.hxx"
11 #include <qapplication.h>
13 #include <qmessagebox.h>
15 // ================================================================
18 * Qt's messages handler funcion
20 // ================================================================
21 void MessageOutput( QtMsgType type, const char *msg )
36 // ================================================================
41 // ================================================================
42 int main( int argc, char **argv )
44 qInstallMsgHandler( MessageOutput );
45 QApplication a( argc, argv );
46 a.setFont( QFont("Helvetica", 9 ) );
47 QString xmlFileName( argc == 2 ? argv[1] : "config.xml" );
50 QFile xmlfile(xmlFileName);
51 if ( xmlfile.exists() ) {
52 SALOME_InstallWizard wizard(xmlFileName);
53 a.setMainWidget( &wizard );
58 QMessageBox::critical( 0,
59 QObject::tr( "Error" ),
60 QObject::tr( "Can't open config file:\n%1\n\nQuitting...").arg( xmlFileName ),
62 QMessageBox::NoButton,
63 QMessageBox::NoButton );