author | insilmaril |
Mon Mar 15 15:32:37 2010 +0000 (2010-03-15) | |
changeset 836 | 62d621e3e550 |
parent 823 | 0bba81dde1bc |
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