vymview.h
author insilmaril
Wed, 20 May 2009 15:40:14 +0000
changeset 772 e3f722759c7e
parent 769 a6931cd6309a
child 788 78ba80b54bc4
permissions -rw-r--r--
Fixed segfault when closing a map
     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 
    13 class VymView : public QSplitter 
    14 {
    15 	Q_OBJECT
    16 public:
    17 	VymView(VymModel *model);
    18 	~VymView();
    19 	VymModel* getModel();
    20 	MapEditor* getMapEditor();
    21 	void initFocus();
    22 	QItemSelectionModel* selectionModel();
    23 
    24 public slots:
    25 	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
    26 	void expandAll ();
    27 	void showSelection ();
    28 
    29 private:
    30 	VymModel *model;
    31 	TreeEditor *treeEditor;
    32 	QItemSelectionModel *selModel;
    33 	MapEditor *mapEditor;
    34 };
    35 
    36 
    37 #endif
    38