]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_panel.h
make doc++ able to generate the source documentation for lyx
[features.git] / src / mathed / math_panel.h
index 14553ba560e5c73c524ba7239f577cd561f11c49..c84c5e3e76ee0ee7954e1d61942136412e3e8238 100644 (file)
@@ -7,7 +7,7 @@
  * 
  *  Dependencies: Xlib, Xpm, XForms, Lyx
  *
- *  Copyright: (c) 1996, Alejandro Aguilar Sierra 
+ *  Copyright: 1996, Alejandro Aguilar Sierra 
  *
  *   You are free to use and modify it under the terms of
  *   the GNU General Public Licence version 2 or later.
 #include "bmtable.h"                 
 
 ///
-enum  {
-   MM_GREEK, MM_ARROW, MM_BOP, MM_BRELATS, MM_VARSIZE, MM_MISC,
-   MM_FRAC, MM_SQRT, MM_DELIM, MM_MATRIX, MM_EQU,
-   MM_DECO, MM_SPACE, MM_DOTS, MM_FUNC,
-   MM_MAX,
-   MM_CLOSE = 1024,
-   MM_APPLY, MM_OK
+enum SomeMathValues {
+    ///
+    MM_GREEK,
+    ///
+    MM_ARROW,
+    ///
+    MM_BOP,
+    ///
+    MM_BRELATS,
+    ///
+    MM_VARSIZE,
+    ///
+    MM_MISC,
+    ///
+    MM_FRAC,
+    ///
+    MM_SQRT,
+    ///
+    MM_DELIM,
+    ///
+    MM_MATRIX,
+    ///
+    MM_EQU,
+    ///
+    MM_DECO,
+    ///
+    MM_SPACE,
+    ///
+    MM_DOTS,
+    ///
+    MM_FUNC,
+    ///
+    MM_MAX,
+    ///
+    MM_CLOSE = 1024,
+    ///
+    MM_APPLY,
+    ///
+    MM_OK
 };
 
 ///
-typedef FL_OBJECT* FL_OBJECTP;
+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:
    ///
-   BitmapMenu *next, *prev;
+   BitmapMenu * next, * prev;
+   /// Number of bitmaps
+   int nb;
+   /// Current bitmap
+   int i;
+   /// Border width
+   int ww;
    ///
-   int nb;             // Number of bitmaps
-                           ///
-   int i;              // Current bitmap
-                           ///
-   int ww;             // Border width
-                           ///
    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,
-                       int nx, int ny, int bw, int bh,
-                       unsigned char* data, Bool vert=True); // Why Bool?
+   FL_OBJECT * AddBitmap(int id,
+                        int nx, int ny, int bw, int bh,
+                        unsigned char const * data,
+                        Bool vert= True); // Why Bool?
    ///
    void Create();
    ///
@@ -78,11 +111,11 @@ protected:
    ///
    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);
+/// This is just a wrapper around peek_event()
+extern "C" int C_peek_event(FL_FORM * form, void * ptr);
 
 
 inline
@@ -101,6 +134,7 @@ void BitmapMenu::Next()  {
 
 #include "math_forms.h"
 
+///
 extern FD_panel * create_math_panel(void);
 
 #endif /* FD_math_panel_h_ */