]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QMath.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / 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 #include "QMath.h"
14 #include "QMathDialog.h"
15 #include "QMathMatrixDialog.h"
16 #include "QDelimiterDialog.h"
17
18 #include "gettext.h"
19
20 namespace lyx {
21 namespace frontend {
22
23 typedef QController<ControlMath, QView<QMathDialog> > math_base;
24
25
26 QMath::QMath(Dialog & parent)
27         : math_base(parent, lyx::to_utf8(_("Math Panel")))
28 {}
29
30
31 void QMath::build_dialog()
32 {
33         dialog_.reset(new QMathDialog(this));
34 }
35
36
37 typedef QController<ControlMath, QView<QMathMatrixDialog> > matrix_base;
38
39
40 QMathMatrix::QMathMatrix(Dialog & parent)
41         : matrix_base(parent, lyx::to_utf8(_("Math Matrix")))
42 {}
43
44
45 void QMathMatrix::build_dialog()
46 {
47         dialog_.reset(new QMathMatrixDialog(this));
48 }
49
50
51 typedef QController<ControlMath, QView<QDelimiterDialog> > delimiter_base;
52
53
54 QMathDelimiter::QMathDelimiter(Dialog & parent)
55         : delimiter_base(parent, lyx::to_utf8(_("Math Delimiter")))
56 {}
57
58
59 void QMathDelimiter::build_dialog()
60 {
61         dialog_.reset(new QDelimiterDialog(this));
62 }
63
64 } // namespace frontend
65 } // namespace lyx