]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
some math dialog non-improvements
[lyx.git] / src / frontends / qt2 / QMath.h
1 // -*- C++ -*-
2 /**
3  * \file QMath.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef QMATH_H
11 #define QMATH_H
12
13 #include <config.h>
14
15 #include "LString.h"
16  
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 class QMath
22 {
23 public:
24         friend class QMathDialog;
25
26         QMath();
27
28         /// temporary
29         void do_show();
30  
31         /// build the dialog (should be private)
32         virtual void build_dialog();
33
34         /// insert a math symbol into the doc
35         void insert_symbol(string const & name);
36  
37         /// add a subscript
38         void subscript();
39
40         /// add a superscript
41         void superscript();
42  
43 private:
44         /// Apply changes
45         virtual void apply() {};
46         /// update
47         virtual void update_contents() {};
48
49         // FIXME: temp 
50         QMathDialog * dialog_; 
51 };
52
53 #endif // QMATH_H