]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.C
Martin's changes to the Note inset.
[lyx.git] / src / frontends / qt2 / QMath.C
1 /**
2  * \file QMath.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "gettext.h"
15 #include "ControlMath.h"
16 #include "QMathDialog.h"
17 #include "QMathMatrixDialog.h"
18 #include "QDelimiterDialog.h"
19 #include "QMath.h"
20
21
22 typedef QController<ControlMath, QView<QMathDialog> > math_base;
23
24
25 QMath::QMath(Dialog & parent)
26         : math_base(parent, _("LyX: Math Panel"))
27 {}
28
29
30 void QMath::build_dialog()
31 {
32         dialog_.reset(new QMathDialog(this));
33 }
34
35
36 typedef QController<ControlMath, QView<QMathMatrixDialog> > matrix_base;
37
38
39 QMathMatrix::QMathMatrix(Dialog & parent)
40         : matrix_base(parent, _("LyX: Insert Matrix"))
41 {}
42
43
44 void QMathMatrix::build_dialog()
45 {
46         dialog_.reset(new QMathMatrixDialog(this));
47 }
48
49
50 typedef QController<ControlMath, QView<QDelimiterDialog> > delimiter_base;
51
52
53 QMathDelimiter::QMathDelimiter(Dialog & parent)
54         : delimiter_base(parent, _("LyX: Insert Delimiter"))
55 {}
56
57
58 void QMathDelimiter::build_dialog()
59 {
60         dialog_.reset(new QDelimiterDialog(this));
61 }