Chris@43: Chris@43: /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ Chris@43: Chris@43: /* Chris@43: A waveform viewer and audio annotation editor. Chris@43: Chris Cannam, Queen Mary University of London, 2005-2006 Chris@43: Chris@43: This is experimental software. Not for distribution. Chris@43: */ Chris@43: Chris@43: #ifndef _LAYER_TREE_H_ Chris@43: #define _LAYER_TREE_H_ Chris@43: Chris@43: #include Chris@43: Chris@43: class PaneStack; Chris@43: Chris@43: class LayerTreeModel : public QAbstractItemModel Chris@43: { Chris@43: Q_OBJECT Chris@43: Chris@43: public: Chris@43: LayerTreeModel(PaneStack *stack, QObject *parent = 0); Chris@43: virtual ~LayerTreeModel(); Chris@43: Chris@43: QVariant data(const QModelIndex &index, int role) const; Chris@43: Chris@43: // Qt::ItemFlags flags(const QModelIndex &index) const; Chris@43: Chris@43: // QVariant headerData(int section, Qt::Orientation orientation, Chris@43: // int role = Qt::DisplayRole) const; Chris@43: Chris@43: QModelIndex index(int row, int column, Chris@43: const QModelIndex &parent = QModelIndex()) const; Chris@43: Chris@43: QModelIndex parent(const QModelIndex &index) const; Chris@43: Chris@43: int rowCount(const QModelIndex &parent = QModelIndex()) const; Chris@43: int columnCount(const QModelIndex &parent = QModelIndex()) const; Chris@43: Chris@43: protected: Chris@43: PaneStack *m_stack; Chris@43: }; Chris@43: Chris@43: #endif