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 QString xmlFileName( argc == 2 ? argv[1] : "config.xml" );
49 QFile xmlfile(xmlFileName);
50 if ( xmlfile.exists() ) {
51 SALOME_InstallWizard wizard(xmlFileName);
52 a.setMainWidget( &wizard );
57 QMessageBox::critical( 0,
58 QObject::tr( "Error" ),
59 QObject::tr( "Can't open config file:\n%1\n\nQuitting...").arg( xmlFileName ),
61 QMessageBox::NoButton,
62 QMessageBox::NoButton );