4 * Purpose: Mathed GUI for lyx
5 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6 * Created: March 28, 1996
8 * Dependencies: Xlib, Xpm, XForms, Lyx
10 * Copyright: 1996, Alejandro Aguilar Sierra
12 * You are free to use and modify it under the terms of
13 * the GNU General Public Licence version 2 or later.
16 #ifndef FD_math_panel_h_
17 #define FD_math_panel_h_
69 /// Class to manage bitmap menu bars
72 static BitmapMenu * active;
74 friend int peek_event(FL_FORM *, void *);
76 typedef std::vector<FL_OBJECT *> bitmaps_type;
78 typedef bitmaps_type::size_type size_type;
80 BitmapMenu * next, * prev;
90 bitmaps_type bitmaps_;
95 BitmapMenu(int n, FL_OBJECT * bt, BitmapMenu * prevx= 0);
99 FL_OBJECT * AddBitmap(int id,
100 int nx, int ny, int bw, int bh,
101 unsigned char const * data,
102 Bool vert= True); // Why Bool?
114 int GetIndex(FL_OBJECT * ob);
117 /// This is just a wrapper around peek_event()
118 extern "C" int C_peek_event(FL_FORM * form, void * ptr);
122 void BitmapMenu::Prev() {
129 void BitmapMenu::Next() {
135 #include "math_forms.h"
138 extern FD_panel * create_math_panel(void);
140 #endif /* FD_math_panel_h_ */