X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=treemodel.h;fp=treemodel.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=3a0ccbd200c5fc97614951f4b6c6ec19db39a4cf;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/treemodel.h b/treemodel.h deleted file mode 100644 index 3a0ccbd..0000000 --- a/treemodel.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef TREEMODEL_H -#define TREEMODEL_H - -#include -#include -#include - - -class BranchItem; -class TreeItem; -class Link; -class LinkableMapObj; - -class TreeModel : public QAbstractItemModel -{ - Q_OBJECT - -public: - TreeModel(QObject *parent = 0); - ~TreeModel(); - - 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 (TreeItem* ti); - 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; - - void nextBranch (BranchItem* ¤t, BranchItem* &previous, bool deepLevelsFirst=false, BranchItem* start=NULL); - - bool removeRows ( int row, int count, - const QModelIndex & parent = QModelIndex() ); - - TreeItem* getItem (const QModelIndex &index) const; - BranchItem* getRootItem(); - - virtual int xlinkCount(); - virtual Link* getXLinkNum (const int &n); - -protected: - BranchItem *rootItem; - - QList xlinks; - QList deleteLaterIDs; - -}; - -#endif