vymview.h
author convert-repo
Fri, 23 Jul 2010 16:43:49 +0000
changeset 849 988f1908a7c4
parent 842 bec082472471
permissions -rw-r--r--
update tags
     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 	TreeEditor* getTreeEditor();
    22 	void initFocus();
    23 
    24 public slots:
    25 	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
    26 	void expandAll ();
    27 	void expandOneLevel ();
    28 	void collapseOneLevel ();
    29 	void showSelection ();
    30 	void toggleTreeEditor();
    31 
    32 private:
    33 	VymModel *model;
    34 	TreeEditor *treeEditor;
    35 	QItemSelectionModel *selModel;
    36 	MapEditor *mapEditor;
    37 };
    38 
    39 
    40 #endif
    41