123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef FRAMETREEMODEL_H
- #define FRAMETREEMODEL_H
- #include <QAbstractItemModel>
- #include "sequenz.h"
- class FrameTreeModel : public QAbstractItemModel
- {
- Q_OBJECT
- private:
- Sequenz *seq;
-
- bool isIndexValid( const QModelIndex &i ) const;
- public:
- explicit FrameTreeModel();
- ~FrameTreeModel();
-
-
- void setSequenz( Sequenz *s );
-
-
-
- QVariant data(const QModelIndex &index, int role) const override;
-
-
- Qt::ItemFlags flags(const QModelIndex &index) const override;
-
- QVariant headerData(int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const override;
-
- QModelIndex index(int row, int column,
- const QModelIndex &parent = QModelIndex()) const override;
-
- QModelIndex parent(const QModelIndex &index) const override;
-
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
- int columnCount(const QModelIndex &parent = QModelIndex()) const override;
-
- bool clickedOnFrame( const QModelIndex &index, int &camera, int &frame ) const;
-
- QModelIndex getFrameSelectionIndex() const;
-
- QModelIndex getCameraSelectionIndex() const;
-
- QList< QModelIndex > getSelectedPackages() const;
-
- void update();
- };
- #endif
|