2014-02-12 07:42:07 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef _DFFFRAMESTREEMODEL_HPP_
|
|
|
|
#define _DFFFRAMESTREEMODEL_HPP_
|
|
|
|
#include <QAbstractItemModel>
|
2014-06-06 18:04:00 +02:00
|
|
|
#include <engine/RWTypes.hpp>
|
2014-02-12 07:42:07 +01:00
|
|
|
|
|
|
|
class DFFFramesTreeModel : public QAbstractItemModel
|
|
|
|
{
|
2014-06-10 17:47:44 +02:00
|
|
|
Model* model;
|
2014-02-12 07:42:07 +01:00
|
|
|
public:
|
|
|
|
|
2014-06-10 17:47:44 +02:00
|
|
|
explicit DFFFramesTreeModel(Model* m, QObject* parent = 0);
|
2014-02-12 07:42:07 +01:00
|
|
|
|
|
|
|
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
|
|
|
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
|
|
|
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
|
|
|
|
|
|
|
virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
|
|
|
|
virtual QModelIndex parent(const QModelIndex& child) const;
|
|
|
|
|
|
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
|
|
|
};
|
|
|
|
|
2014-06-06 13:18:32 +02:00
|
|
|
#endif
|