1 // File : SALOME_ProductsView.hxx
2 // Created : Thu Dec 18 12:01:00 2002
3 // Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
5 // Module : Installation Wizard
6 // Copyright : 2002-2007 CEA
8 #ifndef __SALOME_ProductsView
9 #define __SALOME_ProductsView
11 #include <qlistview.h>
14 Class ProductsViewItem: to define custom products list view item
17 class ProductsViewItem : public QCheckListItem
21 ProductsViewItem( ProductsView* parent, const QString& text, Type tt );
24 // called when users switches item on/off
25 void stateChange( bool on );
29 Class ProductsView : Products list view
31 class ProductsView : public QListView
37 ProductsView( QWidget* parent, const char* name = 0 );
39 // adds product item into the list
40 QCheckListItem* addItem( const QString& name,
41 const QString& version,
42 const QString& script );
43 // sets the given text as a heading of the given column
44 void renameColumn( int column, const QString& label );
46 // emits signal when checkbox or radiobutton is switched
47 void itemActivated( QCheckListItem* item );
49 // enable/disable item
50 void setItemEnabled( QCheckListItem* item, const bool enable );
52 // find bin item which corresponds to the src item
53 QCheckListItem* findBinItem( const QString& srcName );
56 // emitted when checkbox or radiobutton is switched
57 void itemToggled( QCheckListItem* item );