]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_maths_space.C
Martin's changes to the space and style dialogs of the math panel.
[lyx.git] / src / frontends / xforms / form_maths_space.C
1 // File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
2 #include <config.h>
3 #include "xforms_helpers.h"
4 #include "gettext.h"
5
6 /* Form definition file generated with fdesign. */
7
8 #include FORMS_H_LOCATION
9 #include <stdlib.h>
10 #include "form_maths_space.h"
11 #include "FormMathsSpace.h"
12
13 FD_form_maths_space::~FD_form_maths_space()
14 {
15   if ( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_maths_space * FormMathsSpace::build_maths_space()
21 {
22   FL_OBJECT *obj;
23   FD_form_maths_space *fdui = new FD_form_maths_space;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 259, 149);
26   fdui->form->u_vdata = this;
27   obj = fl_add_box(FL_UP_BOX, 0, 0, 259, 149, "");
28
29   fdui->spaces = fl_bgn_group();
30   {
31     char const * const dummy = N_("Thin|#T");
32     fdui->button_thin = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 10, 120, 30, idex(_(dummy)));
33     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
34   }
35     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
36     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 1);
37   {
38     char const * const dummy = N_("Medium|#M");
39     fdui->button_medium = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 40, 120, 30, idex(_(dummy)));
40     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
41   }
42     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
43     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 2);
44   {
45     char const * const dummy = N_("Thick|#H");
46     fdui->button_thick = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 70, 120, 30, idex(_(dummy)));
47     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
48   }
49     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
50     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 3);
51   {
52     char const * const dummy = N_("Negative|#N");
53     fdui->button_negative = obj = fl_add_button(FL_NORMAL_BUTTON, 130, 10, 120, 30, idex(_(dummy)));
54     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
55   }
56     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
57     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
58   {
59     char const * const dummy = N_("Quadratin|#Q");
60     fdui->button_quadratin = obj = fl_add_button(FL_NORMAL_BUTTON, 130, 40, 120, 30, idex(_(dummy)));
61     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
62   }
63     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
64     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 4);
65   {
66     char const * const dummy = N_("2Quadratin|#2");
67     fdui->button_twoquadratin = obj = fl_add_button(FL_NORMAL_BUTTON, 130, 70, 120, 30, idex(_(dummy)));
68     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
69   }
70     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
71     fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 5);
72   fl_end_group();
73
74   fdui->button_cancel = obj = fl_add_button(FL_RETURN_BUTTON, 92, 110, 80, 30, _("Close"));
75     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
76     fl_set_object_callback(obj, C_FormBaseDeprecatedCancelCB, 0);
77   fl_end_form();
78
79   fdui->form->fdui = fdui;
80
81   return fdui;
82 }
83 /*---------------------------------------*/
84