]> git.sven.stormbind.net Git - sven/vym.git/blob - treeeditor.h
f5c0c14031090a4b03057bffc88d3380b399b272
[sven/vym.git] / treeeditor.h
1 #ifndef TREEEDITOR_H
2 #define TREEEDITOR_H
3
4 #include <QTreeView>
5
6 class VymModel;
7
8 /*! \brief TreeView widget in vym to display and edit a map, based on
9  * QTreeView */
10
11
12 class TreeEditor : public QTreeView {   
13     Q_OBJECT
14
15 public:
16     TreeEditor(VymModel *m=NULL);
17     ~TreeEditor();
18     void init();
19     QModelIndex getSelectedIndex();
20 private slots:
21     void cursorUp();
22     void cursorDown();
23
24 private:
25     VymModel *model;
26 };
27
28 #endif
29