]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_bibitem.C
e656e0d58f70f6cfc3c9a4e993c5c195d71cb87d
[lyx.git] / src / frontends / xforms / form_bibitem.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_bibitem.h"
11 #include "FormBibitem.h"
12
13 FD_form_bibitem::~FD_form_bibitem()
14 {
15   if ( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_bibitem * FormBibitem::build_bibitem()
21 {
22   FL_OBJECT *obj;
23   FD_form_bibitem *fdui = new FD_form_bibitem;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 220, 130);
26   fdui->form->u_vdata = this;
27   obj = fl_add_box(FL_UP_BOX, 0, 0, 220, 130, "");
28   {
29     char const * const dummy = N_("Key:|#K");
30     fdui->input_key = obj = fl_add_input(FL_NORMAL_INPUT, 80, 10, 130, 30, idex(_(dummy)));
31     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
32   }
33     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
34     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
35   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 20, 90, 90, 30, _("OK"));
36     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
37     fl_set_object_callback(obj, C_FormBaseOKCB, 3);
38   {
39     char const * const dummy = N_("Cancel|^[");
40     fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 120, 90, 90, 30, idex(_(dummy)));
41     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
42   }
43     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
44     fl_set_object_callback(obj, C_FormBaseCancelCB, 2);
45   {
46     char const * const dummy = N_("Label:|#L");
47     fdui->input_label = obj = fl_add_input(FL_NORMAL_INPUT, 80, 50, 130, 30, idex(_(dummy)));
48     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
49   }
50     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
51     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
52   fl_end_form();
53
54   fdui->form->fdui = fdui;
55
56   return fdui;
57 }
58 /*---------------------------------------*/
59