]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QMath.h
Add basic bits of Qt's math panel. Hacked together (no MVC yet) but
[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 private:
38         /// Apply changes
39         virtual void apply() {};
40         /// update
41         virtual void update_contents() {};
42
43         // FIXME: temp 
44         QMathDialog * dialog_; 
45 };
46
47 #endif // QMATH_H