vymview.h
author insilmaril
Fri, 19 Feb 2010 13:47:03 +0000
changeset 823 0bba81dde1bc
parent 812 62d4137bfb90
child 829 832e96c9abb6
permissions -rw-r--r--
More fixes
     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 class FindWidget;
    11 
    12 class QTreeView;
    13 
    14 class VymView:public QWidget
    15 {
    16 	Q_OBJECT
    17 public:
    18 	VymView(VymModel *model);
    19 	~VymView();
    20 	VymModel* getModel();
    21 	MapEditor* getMapEditor();
    22 	void initFocus();
    23 
    24 public slots:
    25 	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
    26 	void changeProxySelection (const QItemSelection &newSel, const QItemSelection &delSel);
    27 	void expandAll ();
    28 	void expandOneLevel ();
    29 	void collapseOneLevel ();
    30 	void showSelection ();
    31 	void showFindWidget();
    32 	void hideFindWidget();
    33 	void findNext (QString s);
    34 	void findReset();
    35 	void toggleTreeEditor();
    36 
    37 private:
    38 	VymModel *model;
    39 	TreeEditor *treeEditor;
    40 	QItemSelectionModel *proxySelModel;
    41 	QItemSelectionModel *selModel;
    42 	MapEditor *mapEditor;
    43 	FindWidget *findWidget;
    44 };
    45 
    46 
    47 #endif
    48