1 /* File: "guideuiinspector.h", Time-stamp: <2005-04-28 15:00:34 feeley> */
3 /* Copyright (C) 1994-2005 by Marc Feeley, All Rights Reserved. */
5 #ifndef ___GUIDEUIINSPECTOR_H
6 #define ___GUIDEUIINSPECTOR_H
8 /*---------------------------------------------------------------------------*/
11 #include <qlistview.h>
13 /*---------------------------------------------------------------------------*/
15 class GuideUiInspectorItem
: public QListViewItem
18 GuideUiInspectorItem (QListView
*parent
)
19 : QListViewItem (parent
)
22 GuideUiInspectorItem (QListViewItem
*parent
)
23 : QListViewItem (parent
)
26 GuideUiInspectorItem (QListView
*parent
, QListViewItem
*after
)
27 : QListViewItem (parent
, after
)
30 GuideUiInspectorItem (QListViewItem
*parent
, QListViewItem
*after
)
31 : QListViewItem (parent
, after
)
34 virtual void paintCell (QPainter
*p
,
35 const QColorGroup
&cg
,
43 class GuideUiInspector
: public QListView
48 GuideUiInspector (QWidget
* parent
= 0, const char *name
= 0, WFlags f
= 0);
49 virtual void clearSelection ();
51 void set_nb_cols (int nb_cols
);
52 void set_column (int col
, QString text
, int width
=0);
53 void set_column_done ();
54 void set_nb_rows (int nb_rows
);
55 void set_cell (int row
, int col
, QString text
, bool read_only
);
56 void set_current (int row
, bool highlight_enable
);
61 virtual void item_clicked (QListViewItem
*item
);
64 void rowChanged (int i
);
67 GuideUiInspectorItem
*at (int i
);
68 bool highlight_enabled
;
71 friend class GuideUiInspectorItem
;
74 /*---------------------------------------------------------------------------*/
78 /* Local Variables: */