Mercurial > hg > svgui
annotate 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 |
rev | line source |
---|---|
Chris@43 | 1 |
Chris@43 | 2 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@43 | 3 |
Chris@43 | 4 /* |
Chris@43 | 5 A waveform viewer and audio annotation editor. |
Chris@43 | 6 Chris Cannam, Queen Mary University of London, 2005-2006 |
Chris@43 | 7 |
Chris@43 | 8 This is experimental software. Not for distribution. |
Chris@43 | 9 */ |
Chris@43 | 10 |
Chris@43 | 11 #ifndef _LAYER_TREE_H_ |
Chris@43 | 12 #define _LAYER_TREE_H_ |
Chris@43 | 13 |
Chris@43 | 14 #include <QAbstractItemModel> |
Chris@43 | 15 |
Chris@43 | 16 class PaneStack; |
Chris@56 | 17 class View; |
Chris@56 | 18 class Layer; |
Chris@43 | 19 |
Chris@43 | 20 class LayerTreeModel : public QAbstractItemModel |
Chris@43 | 21 { |
Chris@43 | 22 Q_OBJECT |
Chris@43 | 23 |
Chris@43 | 24 public: |
Chris@43 | 25 LayerTreeModel(PaneStack *stack, QObject *parent = 0); |
Chris@43 | 26 virtual ~LayerTreeModel(); |
Chris@43 | 27 |
Chris@43 | 28 QVariant data(const QModelIndex &index, int role) const; |
Chris@43 | 29 |
Chris@56 | 30 Qt::ItemFlags flags(const QModelIndex &index) const; |
Chris@43 | 31 |
Chris@56 | 32 QVariant headerData(int section, Qt::Orientation orientation, |
Chris@56 | 33 int role = Qt::DisplayRole) const; |
Chris@43 | 34 |
Chris@43 | 35 QModelIndex index(int row, int column, |
Chris@43 | 36 const QModelIndex &parent = QModelIndex()) const; |
Chris@43 | 37 |
Chris@43 | 38 QModelIndex parent(const QModelIndex &index) const; |
Chris@43 | 39 |
Chris@43 | 40 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
Chris@43 | 41 int columnCount(const QModelIndex &parent = QModelIndex()) const; |
Chris@43 | 42 |
Chris@43 | 43 protected: |
Chris@43 | 44 PaneStack *m_stack; |
Chris@43 | 45 }; |
Chris@43 | 46 |
Chris@43 | 47 #endif |