author | insilmaril |
Tue, 09 Mar 2010 09:37:57 +0000 | |
changeset 832 | 6a6018ba4cc7 |
parent 829 | 832e96c9abb6 |
child 842 | bec082472471 |
permissions | -rw-r--r-- |
1 #ifndef VYMVIEW_H
2 #define VYMVIEW_H
4 #include <QItemSelectionModel>
5 #include <QWidget>
7 class VymModel;
8 class MapEditor;
9 class TreeEditor;
11 class QTreeView;
13 class VymView:public QWidget
14 {
15 Q_OBJECT
16 public:
17 VymView(VymModel *model);
18 ~VymView();
19 VymModel* getModel();
20 MapEditor* getMapEditor();
21 void initFocus();
23 public slots:
24 void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
25 void expandAll ();
26 void expandOneLevel ();
27 void collapseOneLevel ();
28 void showSelection ();
29 void toggleTreeEditor();
31 private:
32 VymModel *model;
33 TreeEditor *treeEditor;
34 QItemSelectionModel *selModel;
35 MapEditor *mapEditor;
36 };
39 #endif