]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / QMath.h
1 // -*- C++ -*-
2 /**
3  * \file QMath.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QMATH_H
13 #define QMATH_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "LString.h"
20
21 class QMathDialog;
22
23 class QMath
24 {
25 public:
26         friend class QMathDialog;
27
28         QMath();
29
30         /// temporary
31         void do_show();
32
33         /// build the dialog (should be private)
34         virtual void build_dialog();
35
36         /// insert a math symbol into the doc
37         void insert(string const & name);
38
39         /// insert a cube root
40         void insertCubeRoot();
41
42         /// insert a matrix
43         void insertMatrix();
44
45         /// insert delim
46         void insertDelim(string const & str);
47
48         /// add a subscript
49         void subscript();
50
51         /// add a superscript
52         void superscript();
53
54         /// switch between display and inline
55         void toggleDisplay();
56
57 private:
58         /// Apply changes
59         virtual void apply() {}
60         /// update
61         virtual void update_contents() {}
62
63         // FIXME: temp
64         QMathDialog * dialog_;
65 };
66
67 #endif // QMATH_H