X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_InstallWizard.hxx;h=f3564b4890b0509680a472d32bc7aab7b9383b16;hb=7f20464cbfdbb123c2880002895cdbb454e63fbf;hp=2075da8fdb1203b525f85b14fcbbbe4455d5e3b0;hpb=66b6c764c24199f26b09a828caea783f93aa8139;p=tools%2Finstall.git diff --git a/src/SALOME_InstallWizard.hxx b/src/SALOME_InstallWizard.hxx index 2075da8..f3564b4 100644 --- a/src/SALOME_InstallWizard.hxx +++ b/src/SALOME_InstallWizard.hxx @@ -1,9 +1,9 @@ // File : SALOME_InstallWizard.hxx // Created : Thu Dec 18 12:01:00 2002 -// Author : Vadim SANDLER +// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) // Project : SALOME // Module : Installation Wizard -// Copyright : 2004-2005 CEA +// Copyright : 2002-2007 CEA #ifndef __SALOME_InstallWizard #define __SALOME_InstallWizard @@ -31,6 +31,11 @@ class ProgressView; class HelpWindow; class InstallInfo; class QButton; +class QRadioButton; +class QButtonGroup; + +// This enum describes the possible types of the SALOME installation +enum InstallationType { Binaries, Sources, Compile }; /*! Class Dependancies : Products info @@ -46,19 +51,21 @@ class Dependancies const QStringList& depend, const long Binsize, const long Sourcessize, + const long SrcBuildsize, const long tempsize, - const QString& def = QString::null, + const QString& vers = QString::null, const QString& descr = QString::null, - const QString& ctx = QString::null, + const QString& tp = QString::null, bool pickup = false ) : smbName( name ), dependsOn( depend ), - sizeSourcesTotal( Sourcessize ), sizeBinaryTotal( Binsize ), + sizeSourcesTotal( Sourcessize ), + sizeSrcBuildTotal( SrcBuildsize ), sizeTemp( tempsize ), - defaultMode( def ), + version( vers ), description( descr ), - context( ctx ), + type( tp ), pickupEnv( pickup ) {} // gets symbolic name @@ -66,36 +73,36 @@ class Dependancies // gets dependancies QStringList getDependancies() const { return dependsOn; } // gets disk space required - long getSize(bool sources = false) const + long getSize( InstallationType instType ) const { - return ( sources ? sizeSourcesTotal : sizeBinaryTotal ); + return instType == Binaries ? sizeBinaryTotal : + instType == Sources ? sizeSourcesTotal : + sizeSrcBuildTotal; } // gets temporary disk space required - long getTempSize() const { return sizeTemp; } + long getTempSize( InstallationType instType ) const + { + return ( instType == Binaries ? 0 : instType == Sources ? 0 : sizeTemp ); + } + // gets product's version + QString getVersion() const { return version; } // gets product's description QString getDescription() const { return description; } - // gets product's context - QString getContext() const { return context; } - // returns true if product supports given context - bool hasContext( const QString& ctx ) const - { - QStringList cl = QStringList::split(",",context); - return cl.find( ctx ) != cl.end(); - } - // gets default mode - QString getDefault() const { return defaultMode; } + // gets product's type + QString getType() const { return type; } // returns true if this product needs to pick-up environment bool pickUpEnvironment() { return pickupEnv; } private: - QString smbName; // symbolic name - QStringList dependsOn; // prerequisites list - long sizeSourcesTotal; // disk space required - long sizeBinaryTotal; // disk space required - long sizeTemp; // disk space for temporary files required - QString defaultMode; // default installation mode - QString description; // product's description - QString context; // product's context (salome sources, binaries or prerequisite) + QString smbName; // symbolic name + QStringList dependsOn; // prerequisites list + long sizeBinaryTotal; // disk space for binaries required + long sizeSourcesTotal; // disk space for sources required + long sizeSrcBuildTotal; // disk space for compiled sources required + long sizeTemp; // disk space for temporary files required + QString version; // product's version + QString description; // product's description + QString type; // product's type (salome sources, binaries or prerequisite) bool pickupEnv; // "Pick-up environment" flag }; @@ -134,6 +141,7 @@ class Button typedef QMap MapProducts; typedef QValueList