author | insilmaril |
Fri Oct 02 13:24:55 2009 +0000 (2009-10-02) | |
changeset 802 | f076fdec767d |
parent 788 | 78ba80b54bc4 |
child 804 | 14f2b1b15242 |
permissions | -rw-r--r-- |
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 |