X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_ProductsView.hxx;h=a3002d516b2a37a25cbc4cdabc1095c100d99eb8;hb=260bf6b42efe9e30501c4e6e99b013da3fe34f77;hp=bade8b3388bebdeaedd60a4d7a9d9b0c31d6f700;hpb=e248ae8e6480f161e70bd6d50c2351cf1d64c4e1;p=tools%2Finstall.git diff --git a/src/SALOME_ProductsView.hxx b/src/SALOME_ProductsView.hxx index bade8b3..a3002d5 100644 --- a/src/SALOME_ProductsView.hxx +++ b/src/SALOME_ProductsView.hxx @@ -1,10 +1,9 @@ // File : SALOME_ProductsView.hxx // Created : Thu Dec 18 12:01:00 2002 -// Author : Vadim SANDLER -// Project : PAL/SALOME -// Module : InstallWizard -// Copyright : 2004 CEA -// $Header$ +// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +// Project : SALOME +// Module : Installation Wizard +// Copyright : 2002-2010 CEA #ifndef __SALOME_ProductsView #define __SALOME_ProductsView @@ -20,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 @@ -37,38 +34,23 @@ 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 ); - // returns true if "install sources" is on for the item - bool isSources( QCheckListItem* item ); - // returns true if "use native" is on for the item - bool isNative( QCheckListItem* item ); - // returns true if "not install" is on for the item - bool isNone( QCheckListItem* item ); - - // 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 ); + // enable/disable item + void setItemEnabled( QCheckListItem* item, const bool enable ); + + // find bin item which corresponds to the src item + QCheckListItem* findBinItem( const QString& srcName ); signals: // emitted when checkbox or radiobutton is switched