]> git.lyx.org Git - lyx.git/blob - src/lyxled/LayoutEditor.h
Comment
[lyx.git] / src / lyxled / LayoutEditor.h
1 #ifndef LAYOUTEDITOR_H
2 #define LAYOUTEDITOR_H
3
4 #include <QMainWindow>
5 #include <QObject>
6 #include <QTreeView>
7 #include <QWidget>
8
9 class QStandardItem;
10 class QStandardItemModel;
11
12 namespace Ui { class MainWindow; }
13
14 namespace lyx {
15
16 class LayoutTree;
17 class LayoutEditor;
18
19 /////////////////////////////////////////////////////////////////////////
20 //
21 // LayoutTree
22 //
23 /////////////////////////////////////////////////////////////////////////
24
25 class LayoutTree : public QTreeView
26 {
27         Q_OBJECT
28
29 public:
30         LayoutTree(QWidget * parent);
31 };
32
33
34 /////////////////////////////////////////////////////////////////////////
35 //
36 // LayoutTree
37 //
38 /////////////////////////////////////////////////////////////////////////
39
40 class LayoutEditor : public QWidget
41 {
42         Q_OBJECT
43
44 public:
45         LayoutEditor(QWidget * parent);
46 };
47
48
49 /////////////////////////////////////////////////////////////////////////
50 //
51 // MainWindow
52 //
53 /////////////////////////////////////////////////////////////////////////
54
55 class MainWindow : public QMainWindow
56 {
57         Q_OBJECT
58
59 public:
60         MainWindow();
61         ~MainWindow();
62
63         void loadLayoutFile(QString const & file);
64
65 public:
66         void loadLayoutFile(QString const & file, QStandardItem * parent);
67
68         Ui::MainWindow * ui_;
69         LayoutTree * view_;
70         QStandardItemModel * model_;
71 };
72
73 } // namespace lyx
74
75 #endif // LAYOUTEDITOR_H
76 #ifndef LAYOUTEDITOR_H
77 #define LAYOUTEDITOR_H
78
79 #include <QMainWindow>
80 #include <QObject>
81 #include <QTreeView>
82 #include <QWidget>
83
84 class QStandardItem;
85 class QStandardItemModel;
86
87 namespace Ui { class MainWindow; }
88
89 namespace lyx {
90
91 class LayoutTree;
92 class LayoutEditor;
93
94 /////////////////////////////////////////////////////////////////////////
95 //
96 // LayoutTree
97 //
98 /////////////////////////////////////////////////////////////////////////
99
100 class LayoutTree : public QTreeView
101 {
102         Q_OBJECT
103
104 public:
105         LayoutTree(QWidget * parent);
106 };
107
108
109 /////////////////////////////////////////////////////////////////////////
110 //
111 // LayoutTree
112 //
113 /////////////////////////////////////////////////////////////////////////
114
115 class LayoutEditor : public QWidget
116 {
117         Q_OBJECT
118
119 public:
120         LayoutEditor(QWidget * parent);
121 };
122
123
124 /////////////////////////////////////////////////////////////////////////
125 //
126 // MainWindow
127 //
128 /////////////////////////////////////////////////////////////////////////
129
130 class MainWindow : public QMainWindow
131 {
132         Q_OBJECT
133
134 public:
135         MainWindow();
136         ~MainWindow();
137
138         void loadLayoutFile(QString const & file);
139
140 public:
141         void loadLayoutFile(QString const & file, QStandardItem * parent);
142
143         Ui::MainWindow * ui_;
144         LayoutTree * view_;
145         QStandardItemModel * model_;
146 };
147
148 } // namespace lyx
149
150 #endif // LAYOUTEDITOR_H