author | insilmaril |
Fri, 13 Nov 2009 08:32:03 +0000 | |
changeset 804 | 14f2b1b15242 |
parent 801 | 16a8ef1d82b2 |
child 808 | b163492fda17 |
permissions | -rw-r--r-- |
1 #ifndef VYMVIEW_H
2 #define VYMVIEW_H
4 #include <QItemSelectionModel>
5 #include <QSplitter>
8 class VymModel;
9 class MapEditor;
10 class TreeEditor;
12 class QTreeView;
14 class VymView : public QSplitter
15 {
16 Q_OBJECT
17 public:
18 VymView(VymModel *model);
19 ~VymView();
20 VymModel* getModel();
21 MapEditor* getMapEditor();
22 void initFocus();
24 public slots:
25 void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
26 void changeProxySelection (const QItemSelection &newSel, const QItemSelection &delSel);
27 void expandAll ();
28 void expandOneLevel ();
29 void collapseOneLevel ();
30 void showSelection ();
32 private:
33 VymModel *model;
34 TreeEditor *treeEditor;
35 QItemSelectionModel *proxySelModel;
36 QItemSelectionModel *selModel;
37 MapEditor *mapEditor;
38 };
41 #endif