vymview.h
author insilmaril
Mon, 15 Mar 2010 11:49:42 +0000
changeset 835 31841b366d5e
parent 829 832e96c9abb6
child 842 bec082472471
permissions -rw-r--r--
Fixes for autoLayout (later)
     1 #ifndef VYMVIEW_H 
     2 #define VYMVIEW_H
     3 
     4 #include <QItemSelectionModel>
     5 #include <QWidget>
     6 
     7 class VymModel;
     8 class MapEditor;
     9 class TreeEditor;
    10 
    11 class QTreeView;
    12 
    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();
    22 
    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();
    30 
    31 private:
    32 	VymModel *model;
    33 	TreeEditor *treeEditor;
    34 	QItemSelectionModel *selModel;
    35 	MapEditor *mapEditor;
    36 };
    37 
    38 
    39 #endif
    40