]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GMathsMatrix.h
Add mathsmatrix dialog.
[lyx.git] / src / frontends / gtk / GMathsMatrix.h
1 // -*- C++ -*-
2 /**
3  * \file GMathsMatrix.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 Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GMATHSMATRIX_H
13 #define GMATHSMATRIX_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlMath;
21
22 /**
23  * This class provides an GTK implementation of the maths matrix dialog.
24  */
25 class GMathsMatrix
26         : public GViewCB<ControlMath, GViewGladeB> {
27 public:
28         GMathsMatrix(Dialog &);
29         int AlignFilter(char const *, int);
30 private:
31         virtual void apply();
32         virtual void doBuild();
33         virtual void update();
34
35         void updateHorzAlignEntry();
36         int countbars(Glib::ustring str);
37
38         Gtk::RadioButton * topradio_;
39         Gtk::RadioButton * bottomradio_;
40         Gtk::RadioButton * centerradio_;
41         Gtk::SpinButton * rowsspin_;
42         Gtk::SpinButton * columnsspin_;
43         Gtk::Entry * horzalignentry_;
44         bool ignoreHorzAlign_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif //  GMATHSMATRIX_H
51