author | insilmaril |
Mon Jul 27 12:53:17 2009 +0000 (2009-07-27) | |
changeset 783 | 85dec6a8c12c |
parent 769 | a6931cd6309a |
child 788 | 78ba80b54bc4 |
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@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@772 | 18 |
~VymView(); |
insilmaril@772 | 19 |
VymModel* getModel(); |
insilmaril@772 | 20 |
MapEditor* getMapEditor(); |
insilmaril@769 | 21 |
void initFocus(); |
insilmaril@726 | 22 |
QItemSelectionModel* selectionModel(); |
insilmaril@727 | 23 |
|
insilmaril@727 | 24 |
public slots: |
insilmaril@727 | 25 |
void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel); |
insilmaril@763 | 26 |
void expandAll (); |
insilmaril@763 | 27 |
void showSelection (); |
insilmaril@727 | 28 |
|
insilmaril@726 | 29 |
private: |
insilmaril@742 | 30 |
VymModel *model; |
insilmaril@769 | 31 |
TreeEditor *treeEditor; |
insilmaril@727 | 32 |
QItemSelectionModel *selModel; |
insilmaril@761 | 33 |
MapEditor *mapEditor; |
insilmaril@726 | 34 |
}; |
insilmaril@726 | 35 |
|
insilmaril@726 | 36 |
|
insilmaril@726 | 37 |
#endif |
insilmaril@726 | 38 |