annotate widgets/LayerTree.h @ 58:01ab51f72e84

* Set indent-tabs-mode to nil in Emacs mode direction
author Chris Cannam
date Mon, 20 Mar 2006 11:40:39 +0000
parents fedaf3ffe80a
children 705f05ab42e3
rev   line source
Chris@43 1
Chris@58 2 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- 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