]> git.sven.stormbind.net Git - sven/vym.git/blob - vymview.h
Import Upstream version 2.6.11
[sven/vym.git] / vymview.h
1 #ifndef VYMVIEW_H 
2 #define VYMVIEW_H
3
4 #include <QItemSelectionModel>
5 #include <QMainWindow>
6 #include <QWidget>
7
8 class DockEditor;
9 class VymModel;
10 class MapEditor;
11 class SlideEditor;
12 class TreeEditor;
13 class QTreeView;
14
15 class VymView:public QMainWindow
16 {
17     Q_OBJECT
18 public:
19     VymView(VymModel *model);
20     ~VymView();
21     void readSettings();
22     VymModel* getModel();
23     MapEditor* getMapEditor();
24     bool treeEditorIsVisible();
25     bool slideEditorIsVisible();
26     void initFocus();
27     void nextSlide();
28     void previousSlide();
29
30 public slots:
31     void changeSelection (const QItemSelection &newSel, const QItemSelection &delSel);
32     void updateDockWidgetTitles();
33     void expandAll ();
34     void expandOneLevel ();
35     void collapseOneLevel ();
36     void collapseUnselected();
37     void showSelection ();
38     void toggleTreeEditor();
39     void toggleSlideEditor();
40     void setFocusMapEditor();
41
42 private:
43     VymModel *model;
44     TreeEditor *treeEditor;
45     DockEditor *treeEditorDE;
46     SlideEditor *slideEditor;
47     DockEditor  *slideEditorDE;
48
49     MapEditor *mapEditor;
50     //DockEditor *mapEditorDE;
51     QItemSelectionModel *selModel;
52 };
53
54
55 #endif
56