Salome HOME
1) getSize() just returns required size that read from XML now;
authorakl <akl@opencascade.com>
Tue, 28 Aug 2007 13:51:41 +0000 (13:51 +0000)
committerakl <akl@opencascade.com>
Tue, 28 Aug 2007 13:51:41 +0000 (13:51 +0000)
2) introduce updateSizeColumn();
3) Small corrections.

src/SALOME_InstallWizard.hxx

index 901b46b4376fc5cc032bc49731580a3d2ff6c674..f3564b4890b0509680a472d32bc7aab7b9383b16 100644 (file)
@@ -75,8 +75,9 @@ class Dependancies
   // gets disk space required
   long        getSize( InstallationType instType ) const 
   { 
-    return ( instType == Binaries ? ( type == "component" ? sizeBinaryTotal + sizeSourcesTotal : sizeBinaryTotal ) :
-            ( instType == Sources ? sizeSourcesTotal : sizeSrcBuildTotal ) );
+    return instType == Binaries ? sizeBinaryTotal : 
+      instType == Sources ? sizeSourcesTotal : 
+      sizeSrcBuildTotal;
   }
   // gets temporary disk space required
   long        getTempSize( InstallationType instType ) const     
@@ -89,14 +90,6 @@ class Dependancies
   QString     getDescription() const  { return description; }
   // gets product's type
   QString     getType() const         { return type; }
-  // returns true if product supports given type
-  bool        hasType( const QString& tp ) const
-  {
-    QStringList tl = QStringList::split(",",type);
-    return tl.find( tp ) != tl.end();
-  }
-  // gets default mode
-  QString     getDefault() const      { return ""; }
   // returns true if this product needs to pick-up environment
   bool        pickUpEnvironment()     { return pickupEnv; }
 
@@ -307,6 +300,8 @@ class SALOME_InstallWizard: public InstallWizard
   void updateAvailableSpace();
   // Slot to take result of Fortran libraries checking
   void checkFLibResult();
+  // Slot to update 'Size' column for modules and prerequisites
+  void updateSizeColumn();
 
   // <Finish> page buttons slot
   void onFinishButton();
@@ -352,6 +347,7 @@ class SALOME_InstallWizard: public InstallWizard
   QString          tmpCreated;     // created temporary directory
   bool             stateChanged;   // flag: whether installation type or platform was changed
   bool             exitConfirmed;  // flag: "Exit confirmed"
+  bool             rmSrcPrevState; // flag: status of "Remove SRC & TMP files" is changed ?
   // Widgets
   // --> introduction page
   QWidget*         introPage;      // page itself
@@ -366,7 +362,7 @@ class SALOME_InstallWizard: public InstallWizard
   QRadioButton*    binBtn;         // install binaries button
   QRadioButton*    srcBtn;         // install sources button
   QRadioButton*    srcCompileBtn;  // install sources and compile button
-  QMyCheckBox*     removeSrcBtn;   // <Remove sources & tmp files> checkbox
+  QCheckBox*       removeSrcBtn;   // <Remove sources & tmp files> checkbox
   // --> installation platform page
   QWidget*         platformsPage;  // page itself
   QButtonGroup*    platBtnGrp;     // group of platforms for selection