author | insilmaril |
Thu Sep 17 09:41:09 2009 +0000 (2009-09-17) | |
changeset 795 | 6b0a5f4923d3 |
parent 772 | e3f722759c7e |
child 801 | 16a8ef1d82b2 |
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();
23 QItemSelectionModel* selectionModel();
25 public slots:
26 void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
27 void expandAll ();
28 void showSelection ();
30 private:
31 VymModel *model;
32 TreeEditor *treeEditor;
33 QTreeView *tv; //FIXME-3 testing only
34 QItemSelectionModel *selModel;
35 MapEditor *mapEditor;
36 };
39 #endif