installer: sync with branch
[lyx.git] / src / lyxled / LayoutEditor.h
blob7e33ad88973222786c54f8b9a388556c1f585879
1 #ifndef LAYOUTEDITOR_H
2 #define LAYOUTEDITOR_H
4 #include <QMainWindow>
5 #include <QObject>
6 #include <QTreeView>
7 #include <QWidget>
9 class QStandardItem;
10 class QStandardItemModel;
12 namespace Ui { class MainWindow; }
14 namespace lyx {
16 class LayoutTree;
17 class LayoutEditor;
19 /////////////////////////////////////////////////////////////////////////
21 // LayoutTree
23 /////////////////////////////////////////////////////////////////////////
25 class LayoutTree : public QTreeView
27 Q_OBJECT
29 public:
30 LayoutTree(QWidget * parent);
34 /////////////////////////////////////////////////////////////////////////
36 // LayoutTree
38 /////////////////////////////////////////////////////////////////////////
40 class LayoutEditor : public QWidget
42 Q_OBJECT
44 public:
45 LayoutEditor(QWidget * parent);
49 /////////////////////////////////////////////////////////////////////////
51 // MainWindow
53 /////////////////////////////////////////////////////////////////////////
55 class MainWindow : public QMainWindow
57 Q_OBJECT
59 public:
60 MainWindow();
61 ~MainWindow();
63 void loadLayoutFile(QString const & file);
65 public:
66 void loadLayoutFile(QString const & file, QStandardItem * parent);
68 Ui::MainWindow * ui_;
69 LayoutTree * view_;
70 QStandardItemModel * model_;
73 } // namespace lyx
75 #endif // LAYOUTEDITOR_H
76 #ifndef LAYOUTEDITOR_H
77 #define LAYOUTEDITOR_H
79 #include <QMainWindow>
80 #include <QObject>
81 #include <QTreeView>
82 #include <QWidget>
84 class QStandardItem;
85 class QStandardItemModel;
87 namespace Ui { class MainWindow; }
89 namespace lyx {
91 class LayoutTree;
92 class LayoutEditor;
94 /////////////////////////////////////////////////////////////////////////
96 // LayoutTree
98 /////////////////////////////////////////////////////////////////////////
100 class LayoutTree : public QTreeView
102 Q_OBJECT
104 public:
105 LayoutTree(QWidget * parent);
109 /////////////////////////////////////////////////////////////////////////
111 // LayoutTree
113 /////////////////////////////////////////////////////////////////////////
115 class LayoutEditor : public QWidget
117 Q_OBJECT
119 public:
120 LayoutEditor(QWidget * parent);
124 /////////////////////////////////////////////////////////////////////////
126 // MainWindow
128 /////////////////////////////////////////////////////////////////////////
130 class MainWindow : public QMainWindow
132 Q_OBJECT
134 public:
135 MainWindow();
136 ~MainWindow();
138 void loadLayoutFile(QString const & file);
140 public:
141 void loadLayoutFile(QString const & file, QStandardItem * parent);
143 Ui::MainWindow * ui_;
144 LayoutTree * view_;
145 QStandardItemModel * model_;
148 } // namespace lyx
150 #endif // LAYOUTEDITOR_H