vymview.h
author insilmaril
Mon, 18 May 2009 11:22:41 +0000
changeset 771 01f2f6d6789d
parent 769 a6931cd6309a
child 772 e3f722759c7e
permissions -rw-r--r--
Fixed addBranchBefore
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@726
    12
insilmaril@726
    13
class VymView : public QSplitter 
insilmaril@726
    14
{
insilmaril@727
    15
	Q_OBJECT
insilmaril@726
    16
public:
insilmaril@726
    17
	VymView(VymModel *model);
insilmaril@769
    18
	void initFocus();
insilmaril@726
    19
	QItemSelectionModel* selectionModel();
insilmaril@727
    20
insilmaril@727
    21
public slots:
insilmaril@727
    22
	void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
insilmaril@763
    23
	void expandAll ();
insilmaril@763
    24
	void showSelection ();
insilmaril@727
    25
insilmaril@726
    26
private:
insilmaril@742
    27
	VymModel *model;
insilmaril@769
    28
	TreeEditor *treeEditor;
insilmaril@727
    29
	QItemSelectionModel *selModel;
insilmaril@761
    30
	MapEditor *mapEditor;
insilmaril@726
    31
};
insilmaril@726
    32
insilmaril@726
    33
insilmaril@726
    34
#endif
insilmaril@726
    35