treeeditor.h
author insilmaril
Fri, 13 Nov 2009 08:32:03 +0000
changeset 804 14f2b1b15242
parent 801 16a8ef1d82b2
permissions -rw-r--r--
Several fixes, see tex/vym.changelog for details
     1 #ifndef TREEEDITOR_H
     2 #define TREEEDITOR_H
     3 
     4 #include <QTreeView>
     5 #include "mysortfilterproxymodel.h"
     6 
     7 class VymModel;
     8 
     9 /*! \brief TreeView widget in vym to display and edit a map, based on
    10  * QTreeView */
    11 
    12 
    13 class TreeEditor : public QTreeView {	
    14     Q_OBJECT
    15 
    16 public:
    17     TreeEditor(VymModel *m);
    18 	~TreeEditor();
    19 	MySortFilterProxyModel *getProxyModel();
    20 	QModelIndex getSelectedIndex();
    21 
    22 public slots:
    23 	void setSortFilter (QString f);
    24 
    25 private slots:
    26 	void cursorUp();
    27 	void cursorDown();
    28 
    29 private:
    30 	VymModel *model;
    31 	MySortFilterProxyModel *proxyModel;
    32 };
    33 
    34 #endif
    35