author | insilmaril |
Wed Jun 09 13:14:08 2010 +0000 (2010-06-09) | |
changeset 847 | 43268373032d |
parent 829 | 832e96c9abb6 |
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 TreeEditor* getTreeEditor();
22 void initFocus();
24 public slots:
25 void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
26 void expandAll ();
27 void expandOneLevel ();
28 void collapseOneLevel ();
29 void showSelection ();
30 void toggleTreeEditor();
32 private:
33 VymModel *model;
34 TreeEditor *treeEditor;
35 QItemSelectionModel *selModel;
36 MapEditor *mapEditor;
37 };
40 #endif