vymview.h
author insilmaril
Mon, 08 Mar 2010 12:24:26 +0000
changeset 829 832e96c9abb6
parent 823 0bba81dde1bc
child 842 bec082472471
permissions -rw-r--r--
Introduce dockwidget to display all search results at once
     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