]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_panel.h
Two configuration fixes. Bugfree configure is coming soon (do you really believe...
[lyx.git] / src / mathed / math_panel.h
index c2a5456457490ab70addf0413ad032f39b5eb403..4d33d0aba7c1b7d4da2b4885c1e44697d47c7d77 100644 (file)
@@ -33,21 +33,17 @@ enum  {
 };
 
 ///
-typedef FL_OBJECT* FL_OBJECTP;
-
-extern "C" {
-   int peek_event(FL_FORM *, void *);
-}
+typedef FL_OBJECT * FL_OBJECTP;
 
 /// Class to manage bitmap menu bars
 class BitmapMenu {
   ///
-   static BitmapMenu *active;
+   static BitmapMenu * active;
    ///
    friend int peek_event(FL_FORM *, void *);
- protected:
+protected:
    ///
-   BitmapMenu *next, *prev;
+   BitmapMenu * next, * prev;
    ///
    int nb;             // Number of bitmaps
                            ///
@@ -57,20 +53,20 @@ class BitmapMenu {
                            ///
    int x, y, w, h;
    ///
-   FL_FORM *form;
+   FL_FORM * form;
    ///
-   FL_OBJECTP *bitmap;
+   FL_OBJECTP * bitmap;
    ///
-   FL_OBJECT *button;
+   FL_OBJECT * button;
  public:
    ///
-   BitmapMenu(int n, FL_OBJECT* bt, BitmapMenu* prevx=0);
+   BitmapMenu(int n, FL_OBJECT * bt, BitmapMenu * prevx= 0);
    ///
    ~BitmapMenu();
    ///
-   FL_OBJECT* AddBitmap(int id,
+   FL_OBJECT * AddBitmap(int id,
                        int nx, int ny, int bw, int bh,
-                       char* data, Bool vert=True); // Why Bool?
+                       unsigned char * data, Bool vert= True); // Why Bool?
    ///
    void Create();
    ///
@@ -82,9 +78,12 @@ class BitmapMenu {
    ///
    void Next();
    ///
-   int  GetIndex(FL_OBJECT* ob);
+   int  GetIndex(FL_OBJECT * ob);
 };
 
+// This is just a wrapper around peek_event()
+extern "C" int C_peek_event(FL_FORM * form, void * ptr);
+
 
 inline
 void BitmapMenu::Prev()  {