Mercurial > hg > svgui
comparison widgets/LayerTree.h @ 43:78515b1e29eb
* Rejig project file a bit to do pkg-config detection &c
and change some HAVE_* symbol names accordingly
* Add selection move/resize/delete
* First stubs for add layer / pane commands
author | Chris Cannam |
---|---|
date | Wed, 01 Mar 2006 18:13:01 +0000 |
parents | |
children | fedaf3ffe80a |
comparison
equal
deleted
inserted
replaced
42:1bdf285c4eac | 43:78515b1e29eb |
---|---|
1 | |
2 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ | |
3 | |
4 /* | |
5 A waveform viewer and audio annotation editor. | |
6 Chris Cannam, Queen Mary University of London, 2005-2006 | |
7 | |
8 This is experimental software. Not for distribution. | |
9 */ | |
10 | |
11 #ifndef _LAYER_TREE_H_ | |
12 #define _LAYER_TREE_H_ | |
13 | |
14 #include <QAbstractItemModel> | |
15 | |
16 class PaneStack; | |
17 | |
18 class LayerTreeModel : public QAbstractItemModel | |
19 { | |
20 Q_OBJECT | |
21 | |
22 public: | |
23 LayerTreeModel(PaneStack *stack, QObject *parent = 0); | |
24 virtual ~LayerTreeModel(); | |
25 | |
26 QVariant data(const QModelIndex &index, int role) const; | |
27 | |
28 // Qt::ItemFlags flags(const QModelIndex &index) const; | |
29 | |
30 // QVariant headerData(int section, Qt::Orientation orientation, | |
31 // int role = Qt::DisplayRole) const; | |
32 | |
33 QModelIndex index(int row, int column, | |
34 const QModelIndex &parent = QModelIndex()) const; | |
35 | |
36 QModelIndex parent(const QModelIndex &index) const; | |
37 | |
38 int rowCount(const QModelIndex &parent = QModelIndex()) const; | |
39 int columnCount(const QModelIndex &parent = QModelIndex()) const; | |
40 | |
41 protected: | |
42 PaneStack *m_stack; | |
43 }; | |
44 | |
45 #endif |