// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
// Project : SALOME
// Module : Installation Wizard
-// Copyright : 2002-2008 CEA
+// Copyright : 2002-2009 CEA
#ifndef __SALOME_InstallWizard
#define __SALOME_InstallWizard
QString getBasePlatform();
// get current platform
static QStringList currentPlatform();
+ // get application root dir
+ static QString rootDirPath();
// get binaries path
QString getBinPath() const { return binPath; }
// set dependancies
void setDependancies( QCheckListItem* item, Dependancies dep);
+ // executes some actions after finish of installation process (successful or not)
+ void doPostActions( const QString& btnText,
+ const QString& btnAboutInfo );
+
// add button for the <Finish> page
void addFinishButton( const QString& label,
const QString& tooltip,
void setCopyright( const QString& copyright ) { myCopyright = copyright; }
// set license
void setLicense( const QString& license ) { myLicense = license; }
+ // set list of optional libraries
+ void setOptionalLibs( const QString& optlibs ) { myOptLibs = QStringList::split( ",", optlibs ); }
// get version
QString getVersion() { return myVersion; }
QString getCopyright() { return myCopyright; }
// get license
QString getLicense() { return myLicense; }
+ // get list of optional libraries
+ QStringList getOptionalLibs() { return myOptLibs; }
// get platform
QString getPlatform() { return !refPlatform.isEmpty() ? refPlatform : curPlatform; }
// get corresponding XML file
void readFromStdout();
// -->something was written to stderr
void readFromStderr();
+ // -->stop installation process if there is an error in stderr
+ void manageInstProc();
private:
QString myIWName; // Installation Wizard's name
QString myLicense; // license info
QString myTargetPath; // target directory path
QString myTmpPath; // temporary directory path
+ QStringList myOptLibs; // list of optional libraries
HelpWindow* helpWindow; // help window
QProcess* shellProcess; // shell process (install script)
QLineEdit* passedParams; // user can pass data to running script
QTextEdit* installProgress;// contains information about progress of installing selected products
ProgressView* progressView; // displays information about progress of installing selected products
+ QCheckBox* ignoreErrCBox; // checkbox to ignore installation errors
QLabel* statusLab; // displays currently performed action
// --> finish page
QWidget* readmePage; // page itself