vymview.h
author insilmaril
Fri, 27 Nov 2009 13:31:21 +0000
changeset 811 c79486b7cb4b
parent 808 b163492fda17
child 812 62d4137bfb90
permissions -rw-r--r--
Fixed regression in Undo
     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 findNext (QString s);
    33 	void findReset();
    34 
    35 private:
    36 	VymModel *model;
    37 	TreeEditor *treeEditor;
    38 	QItemSelectionModel *proxySelModel;
    39 	QItemSelectionModel *selModel;
    40 	MapEditor *mapEditor;
    41 	FindWidget *findWidget;
    42 };
    43 
    44 
    45 #endif
    46