Mercurial > hg > svgui
comparison widgets/LayerTree.h @ 56:fedaf3ffe80a
* Add menu for re-adding existing layers
* Fix layer tree window so that it at least approximates correct
* Add bundled operations in command history, for use with things like
multiple consecutive changes to a parameter value
* Disambiguate plugins that happen to have identical descriptions
* Add spectral centroid plugin (could use some parameters!)
* Some other fixes
author | Chris Cannam |
---|---|
date | Fri, 17 Mar 2006 17:38:28 +0000 |
parents | 78515b1e29eb |
children | 01ab51f72e84 |
comparison
equal
deleted
inserted
replaced
55:128ebfeeebee | 56:fedaf3ffe80a |
---|---|
12 #define _LAYER_TREE_H_ | 12 #define _LAYER_TREE_H_ |
13 | 13 |
14 #include <QAbstractItemModel> | 14 #include <QAbstractItemModel> |
15 | 15 |
16 class PaneStack; | 16 class PaneStack; |
17 class View; | |
18 class Layer; | |
17 | 19 |
18 class LayerTreeModel : public QAbstractItemModel | 20 class LayerTreeModel : public QAbstractItemModel |
19 { | 21 { |
20 Q_OBJECT | 22 Q_OBJECT |
21 | 23 |
23 LayerTreeModel(PaneStack *stack, QObject *parent = 0); | 25 LayerTreeModel(PaneStack *stack, QObject *parent = 0); |
24 virtual ~LayerTreeModel(); | 26 virtual ~LayerTreeModel(); |
25 | 27 |
26 QVariant data(const QModelIndex &index, int role) const; | 28 QVariant data(const QModelIndex &index, int role) const; |
27 | 29 |
28 // Qt::ItemFlags flags(const QModelIndex &index) const; | 30 Qt::ItemFlags flags(const QModelIndex &index) const; |
29 | 31 |
30 // QVariant headerData(int section, Qt::Orientation orientation, | 32 QVariant headerData(int section, Qt::Orientation orientation, |
31 // int role = Qt::DisplayRole) const; | 33 int role = Qt::DisplayRole) const; |
32 | 34 |
33 QModelIndex index(int row, int column, | 35 QModelIndex index(int row, int column, |
34 const QModelIndex &parent = QModelIndex()) const; | 36 const QModelIndex &parent = QModelIndex()) const; |
35 | 37 |
36 QModelIndex parent(const QModelIndex &index) const; | 38 QModelIndex parent(const QModelIndex &index) const; |