Salome HOME
1) remove required size calculations for each product: just read its from XML and...
[tools/install.git] / src / SALOME_ProductsView.hxx
index b0d1ac107a59a7a4cea960bcb7e5fb99a203a299..fcd8fac8336f6bea3eb92fa49a4a395275712bf1 100644 (file)
@@ -3,7 +3,7 @@
 //  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
 //  Project   : SALOME
 //  Module    : Installation Wizard
-//  Copyright : 2002-2006 CEA
+//  Copyright : 2002-2007 CEA
 
 #ifndef __SALOME_ProductsView
 #define __SALOME_ProductsView
@@ -19,8 +19,6 @@ class ProductsViewItem : public QCheckListItem
  public:
   // constructor
   ProductsViewItem( ProductsView* parent, const QString& text, Type tt );
-  // other constructor
-  ProductsViewItem( QCheckListItem* parent, const QString& text, Type tt );
 
  protected:
   // called when users switches item on/off
@@ -36,46 +34,18 @@ class ProductsView : public QListView
   
 public:
   // constructor
-  ProductsView( QWidget* parent );
+  ProductsView( QWidget* parent, const char* name = 0 );
 
-  // event filter - prevents collapsing/expanding of items
-  bool eventFilter( QObject* o, QEvent* e );
-
-  // adds product item(s) into the list
+  // adds product item into the list
   QCheckListItem* addItem( const QString& name, 
                           const QString& version, 
-                          const QString& install, 
-                          const QStringList& supported, 
                           const QString& script );
+  // sets the given text as a heading of the given column
+  void renameColumn( int column, const QString& label );
 
   // emits signal when checkbox or radiobutton is switched
   void itemActivated( QCheckListItem* item );
 
-  // returns true if "install binaries" is on for the item
-  bool isBinaries( QCheckListItem* item ) const;
-  // returns true if "install sources" is on for the item
-  bool isSources( QCheckListItem* item ) const;
-  // returns true if "use native" is on for the item
-  bool isNative( QCheckListItem* item ) const;
-  // returns true if "not install" is on for the item
-  bool isNone(  QCheckListItem* item ) const;
-
-  // sets "install binaries" on for the item; if "binaries" item is absent, set "install sources" on if it is present 
-  void setBinaries( QCheckListItem* item );
-  // sets "install sources" on for the item; if "sources" item is absent, set "install binaries" on if it is present 
-  void setSources( QCheckListItem* item );
-  // sets "use native" on for the item; if "sources" item is absent, set "install binaries" on if it is present 
-  void setNative( QCheckListItem* item );
-  // sets "not install" on for the item
-  void setNone( QCheckListItem* item );
-
-  // returns true if product supports "binaries" installation mode
-  bool hasBinaries( QCheckListItem* item ) const;
-  // returns true if product supports "sources" installation mode
-  bool hasSources( QCheckListItem* item ) const;
-  // returns true if product supports "native" installation mode
-  bool hasNative( QCheckListItem* item ) const;
-
   // enable/disable item
   void setItemEnabled( QCheckListItem* item, const bool enable );