vymview.h
author insilmaril
Fri, 11 Sep 2009 12:56:15 +0000
changeset 794 d922fb6ea482
parent 788 78ba80b54bc4
child 801 16a8ef1d82b2
permissions -rw-r--r--
more fixes for collisions
     1 #ifndef VYMVIEW_H 
     2 #define VYMVIEW_H
     3 
     4 #include <QItemSelectionModel>
     5 #include <QSplitter>
     6 
     7 
     8 class VymModel;
     9 class MapEditor;
    10 class TreeEditor;
    11 
    12 class QTreeView;
    13 
    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();
    24 
    25 public slots:
    26 	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
    27 	void expandAll ();
    28 	void showSelection ();
    29 
    30 private:
    31 	VymModel *model;
    32 	TreeEditor *treeEditor;
    33 	QTreeView *tv;	//FIXME-3 testing only
    34 	QItemSelectionModel *selModel;
    35 	MapEditor *mapEditor;
    36 };
    37 
    38 
    39 #endif
    40