2 // Created : Thu Dec 18 12:01:00 2002
3 // Author : Vadim SANDLER
4 // Project : PAL/SALOME
5 // Module : InstallWizard
6 // Copyright : 2004 CEA
9 #include "SALOME_InstallWizard.hxx"
10 #include <qapplication.h>
12 #include <qmessagebox.h>
14 // ================================================================
19 // ================================================================
20 int main( int argc, char **argv )
22 QApplication a( argc, argv );
23 QString xmlFileName( argc == 2 ? argv[1] : "config.xml" );
26 QFile xmlfile(xmlFileName);
27 if ( xmlfile.exists() ) {
28 SALOME_InstallWizard wizard(xmlFileName);
29 a.setMainWidget( &wizard );
34 QMessageBox::critical( 0,
35 QObject::tr( "Error" ),
36 QObject::tr( "Can't open config file:\n%1\n\nQuitting...").arg( xmlFileName ),
38 QMessageBox::NoButton,
39 QMessageBox::NoButton );