]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.C
Joao latest bits
[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 "QMathDialog.h"
16 #include "QMathMatrixDialog.h"
17 #include "QDelimiterDialog.h"
18 #include "QMath.h"
19
20
21 typedef QController<ControlMath, QView<QMathDialog> > math_base;
22
23
24 QMath::QMath(Dialog & parent)
25         : math_base(parent, _("LyX: Math Panel"))
26 {}
27
28
29 void QMath::build_dialog()
30 {
31         dialog_.reset(new QMathDialog(this));
32 }
33
34
35 typedef QController<ControlMath, QView<QMathMatrixDialog> > matrix_base;
36
37
38 QMathMatrix::QMathMatrix(Dialog & parent)
39         : matrix_base(parent, _("LyX: Insert Matrix"))
40 {}
41
42
43 void QMathMatrix::build_dialog()
44 {
45         dialog_.reset(new QMathMatrixDialog(this));
46 }
47
48
49 typedef QController<ControlMath, QView<QDelimiterDialog> > delimiter_base;
50
51
52 QMathDelimiter::QMathDelimiter(Dialog & parent)
53         : delimiter_base(parent, _("LyX: Insert Delimiter"))
54 {}
55
56
57 void QMathDelimiter::build_dialog()
58 {
59         dialog_.reset(new QDelimiterDialog(this));
60 }