]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_citation.C
regenerated form_xxx files; got the bastard compiling; TOC dialog crashes lyx
[lyx.git] / src / frontends / xforms / form_citation.C
1 // File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
2 #include <config.h>
3 #include "lyx_gui_misc.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_citation.h"
11 #include "FormCitation.h" 
12
13 FD_form_citation * FormCitation::build_citation()
14 {
15   FL_OBJECT *obj;
16   FD_form_citation *fdui = new FD_form_citation;
17
18   fdui->form_citation = fl_bgn_form(FL_NO_BOX, 430, 770);
19   fdui->form_citation->u_vdata = this;
20   fdui->box = obj = fl_add_box(FL_UP_BOX, 0, 0, 430, 770, "");
21     fl_set_object_resize(obj, FL_RESIZE_X);
22   fdui->citeBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 30, 180, 370, _("Inset keys"));
23     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
24     fl_set_object_resize(obj, FL_RESIZE_X);
25     fl_set_object_callback(obj, C_FormCommandInputCB, CITEBRSR);
26   fdui->bibBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 240, 30, 180, 370, _("Bibliography keys"));
27     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
28     fl_set_object_resize(obj, FL_RESIZE_X);
29     fl_set_object_callback(obj, C_FormCommandInputCB, BIBBRSR);
30   fdui->addBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 30, 30, 30, _("@4->"));
31     fl_set_object_resize(obj, FL_RESIZE_NONE);
32     fl_set_object_callback(obj, C_FormCommandInputCB, ADD);
33   fdui->delBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 65, 30, 30, _("@9+"));
34     fl_set_object_resize(obj, FL_RESIZE_NONE);
35     fl_set_object_callback(obj, C_FormCommandInputCB, DELETE);
36   fdui->upBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 100, 30, 30, _("@8->"));
37     fl_set_object_resize(obj, FL_RESIZE_NONE);
38     fl_set_object_callback(obj, C_FormCommandInputCB, UP);
39   fdui->downBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 135, 30, 30, _("@2->"));
40     fl_set_object_resize(obj, FL_RESIZE_NONE);
41     fl_set_object_callback(obj, C_FormCommandInputCB, DOWN);
42   fdui->infoBrsr = obj = fl_add_browser(FL_NORMAL_BROWSER, 10, 440, 410, 110, _("Info"));
43     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
44     fl_set_object_resize(obj, FL_RESIZE_X);
45   fdui->style = obj = fl_add_choice(FL_NORMAL_CHOICE, 160, 570, 130, 30, _("Citation style"));
46     fl_set_object_boxtype(obj, FL_DOWN_BOX);
47     fl_set_object_resize(obj, FL_RESIZE_X);
48   fdui->textBefore = obj = fl_add_input(FL_NORMAL_INPUT, 100, 620, 250, 30, _("Text before"));
49     fl_set_object_resize(obj, FL_RESIZE_X);
50   fdui->textAftr = obj = fl_add_input(FL_NORMAL_INPUT, 100, 660, 250, 30, _("Text after"));
51     fl_set_object_resize(obj, FL_RESIZE_X);
52   fdui->ok = obj = fl_add_button(FL_RETURN_BUTTON, 230, 730, 90, 30, _("OK"));
53     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
54     fl_set_object_callback(obj, C_FormCommandOKCB, 0);
55   fdui->cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 730, 90, 30, _("Cancel"));
56     fl_set_button_shortcut(obj, _("^["), 1);
57     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
58     fl_set_object_callback(obj, C_FormCommandCancelCB, 0);
59   fl_end_form();
60
61   fdui->form_citation->fdui = fdui;
62
63   return fdui;
64 }
65 /*---------------------------------------*/
66