vymview.h
author insilmaril
Fri, 02 Oct 2009 14:31:03 +0000
changeset 803 338ebdc9b947
parent 801 16a8ef1d82b2
child 804 14f2b1b15242
permissions -rw-r--r--
Re-added support for Bugzilla URL and fixed missing autocolor of new branch
insilmaril@726
     1
#ifndef VYMVIEW_H 
insilmaril@726
     2
#define VYMVIEW_H
insilmaril@726
     3
insilmaril@726
     4
#include <QItemSelectionModel>
insilmaril@726
     5
#include <QSplitter>
insilmaril@769
     6
insilmaril@726
     7
insilmaril@726
     8
class VymModel;
insilmaril@761
     9
class MapEditor;
insilmaril@769
    10
class TreeEditor;
insilmaril@726
    11
insilmaril@788
    12
class QTreeView;
insilmaril@726
    13
insilmaril@726
    14
class VymView : public QSplitter 
insilmaril@726
    15
{
insilmaril@727
    16
	Q_OBJECT
insilmaril@726
    17
public:
insilmaril@726
    18
	VymView(VymModel *model);
insilmaril@772
    19
	~VymView();
insilmaril@772
    20
	VymModel* getModel();
insilmaril@772
    21
	MapEditor* getMapEditor();
insilmaril@769
    22
	void initFocus();
insilmaril@727
    23
insilmaril@727
    24
public slots:
insilmaril@727
    25
	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
insilmaril@801
    26
	void changeProxySelection (const QItemSelection &newSel, const QItemSelection &delSel);
insilmaril@763
    27
	void expandAll ();
insilmaril@763
    28
	void showSelection ();
insilmaril@727
    29
insilmaril@726
    30
private:
insilmaril@742
    31
	VymModel *model;
insilmaril@769
    32
	TreeEditor *treeEditor;
insilmaril@801
    33
	QItemSelectionModel *proxySelModel;
insilmaril@727
    34
	QItemSelectionModel *selModel;
insilmaril@761
    35
	MapEditor *mapEditor;
insilmaril@726
    36
};
insilmaril@726
    37
insilmaril@726
    38
insilmaril@726
    39
#endif
insilmaril@726
    40