]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GMathPanel.h
Wrap most of the frontend code up inside namespace lyx::frontend.
[lyx.git] / src / frontends / gtk / GMathPanel.h
1 // -*- C++ -*-
2 /**
3  * \file GMathPanel.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GMATH_PANEL_H
13 #define GMATH_PANEL_H
14
15 #include "GViewBase.h"
16 #include "support/lstrings.h"
17 #include "GXpmBtnTbl.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlMath;
23
24 class GMathPanel : public GViewCB<ControlMath, GViewGladeB>
25 {
26 public:
27         GMathPanel(Dialog & parent);
28 private:
29         virtual void apply() {}
30         virtual void update() {}
31         virtual void doBuild();
32         void onShowDialog(char const * dialogName);
33         void onTableUpClicked(int row, int col);
34         void onTableDownClicked(int row, int col);
35         void onSuperClicked();
36         void onSubClicked();
37         void onEquationClicked();
38         void onInsert(char const * what);
39         void onFunctionSelected();
40         Gtk::TreeView * functions_;
41         Gtk::TreeModelColumn<Glib::ustring> listCol_;
42         Gtk::TreeModel::ColumnRecord listCols_;
43         Glib::RefPtr<Gtk::ListStore> listStore_;
44         Glib::RefPtr<Gtk::TreeSelection> listSel_;
45         GXpmBtnTbl tableUp_;
46         GXpmBtnTbl tableDown_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif