URL
https://opencores.org/ocsvn/ezidebug/ezidebug/trunk
[/] [ezidebug/] [trunk/] [EziDebug_src/] [ezidebugtreemodel.h] - Blame information for rev 2
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
2 |
EziDebug |
#ifndef EZIDEBUGTREEMODEL_H
|
| 2 |
|
|
#define EZIDEBUGTREEMODEL_H
|
| 3 |
|
|
#include <QIcon>
|
| 4 |
|
|
#include <QAbstractItemModel>
|
| 5 |
|
|
class EziDebugInstanceTreeItem ;
|
| 6 |
|
|
|
| 7 |
|
|
class EziDebugTreeModel:public QAbstractItemModel
|
| 8 |
|
|
{
|
| 9 |
|
|
//Q_OBJECT
|
| 10 |
|
|
public:
|
| 11 |
|
|
EziDebugTreeModel(EziDebugInstanceTreeItem* item, QObject *parent);
|
| 12 |
|
|
~EziDebugTreeModel();
|
| 13 |
|
|
|
| 14 |
|
|
QVariant data(const QModelIndex &index, int role) const;
|
| 15 |
|
|
Qt::ItemFlags flags(const QModelIndex &index) const;
|
| 16 |
|
|
QVariant headerData(int section, Qt::Orientation orientation,int role = Qt::DisplayRole) const;
|
| 17 |
|
|
QModelIndex index(int row, int column,const QModelIndex &parent = QModelIndex()) const;
|
| 18 |
|
|
QModelIndex parent(const QModelIndex &child) const;
|
| 19 |
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
| 20 |
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
| 21 |
|
|
|
| 22 |
|
|
EziDebugInstanceTreeItem* getInstanceTreeRootItem(void) ;
|
| 23 |
|
|
void setInstanceTreeRootItem(EziDebugInstanceTreeItem* item);
|
| 24 |
|
|
|
| 25 |
|
|
private:
|
| 26 |
|
|
EziDebugInstanceTreeItem* m_pheadItem ;
|
| 27 |
|
|
EziDebugInstanceTreeItem* m_pinstanceTopItem ;
|
| 28 |
|
|
};
|
| 29 |
|
|
|
| 30 |
|
|
#endif // EZIDEBUGTREEMODEL_H
|
© copyright 1999-2026
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.