| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef CTKPLUGINRESOURCESTREEMODEL_H
- #define CTKPLUGINRESOURCESTREEMODEL_H
- #include <QAbstractItemModel>
- #include <QDir>
- #include <QSharedPointer>
- class ctkPlugin;
- class ctkPluginResourceTreeItem;
- class ctkPluginResourcesTreeModel : public QAbstractItemModel
- {
- public:
- ctkPluginResourcesTreeModel(QSharedPointer<const ctkPlugin> plugin, QObject* parent = 0);
- ~ctkPluginResourcesTreeModel();
- QVariant data(const QModelIndex &index, int role) const;
- Qt::ItemFlags flags(const QModelIndex &index) const;
- QVariant headerData(int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const;
- QModelIndex index(int row, int column,
- const QModelIndex &parent = QModelIndex()) const;
- QModelIndex parent(const QModelIndex &index) const;
- int rowCount(const QModelIndex &parent = QModelIndex()) const;
- int columnCount(const QModelIndex &parent = QModelIndex()) const;
- private:
- QSharedPointer<const ctkPlugin> plugin;
- ctkPluginResourceTreeItem* rootItem;
- };
- #endif
|