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: (c) 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_
27 MM_GREEK, MM_ARROW, MM_BOP, MM_BRELATS, MM_VARSIZE, MM_MISC,
28 MM_FRAC, MM_SQRT, MM_DELIM, MM_MATRIX, MM_EQU,
29 MM_DECO, MM_SPACE, MM_DOTS, MM_FUNC,
36 typedef FL_OBJECT* FL_OBJECTP;
38 /// Class to manage bitmap menu bars
41 static BitmapMenu *active;
43 friend int peek_event(FL_FORM *, void *);
46 BitmapMenu *next, *prev;
48 int nb; // Number of bitmaps
50 int i; // Current bitmap
52 int ww; // Border width
63 BitmapMenu(int n, FL_OBJECT* bt, BitmapMenu* prevx=0);
67 FL_OBJECT* AddBitmap(int id,
68 int nx, int ny, int bw, int bh,
69 char* data, Bool vert=True); // Why Bool?
81 int GetIndex(FL_OBJECT* ob);
84 // This is just a wrapper around peek_event()
85 extern "C" int C_peek_event(FL_FORM *form, void *ptr);
89 void BitmapMenu::Prev() {
96 void BitmapMenu::Next() {
102 #include "math_forms.h"
104 extern FD_panel * create_math_panel(void);
106 #endif /* FD_math_panel_h_ */