vymview.h
author insilmaril
Wed, 25 Nov 2009 10:58:21 +0000
changeset 807 f9f7922989d8
parent 804 14f2b1b15242
child 808 b163492fda17
permissions -rw-r--r--
Added demos/vym-contribute.vym, fixes for selecting items
     1 #ifndef VYMVIEW_H 
     2 #define VYMVIEW_H
     3 
     4 #include <QItemSelectionModel>
     5 #include <QSplitter>
     6 
     7 
     8 class VymModel;
     9 class MapEditor;
    10 class TreeEditor;
    11 
    12 class QTreeView;
    13 
    14 class VymView : public QSplitter 
    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 
    32 private:
    33 	VymModel *model;
    34 	TreeEditor *treeEditor;
    35 	QItemSelectionModel *proxySelModel;
    36 	QItemSelectionModel *selModel;
    37 	MapEditor *mapEditor;
    38 };
    39 
    40 
    41 #endif
    42