]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_citation.C
major GUII cleanup + Baruchs patch + Angus's patch + removed a couple of generated...
[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::~FD_form_citation()
14 {
15   if( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_citation * FormCitation::build_citation()
21 {
22   FL_OBJECT *obj;
23   FD_form_citation *fdui = new FD_form_citation;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 435, 665);
26   fdui->form->u_vdata = this;
27   fdui->box = obj = fl_add_box(FL_UP_BOX, 0, 0, 435, 665, "");
28     fl_set_object_resize(obj, FL_RESIZE_X);
29   fdui->citeBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 30, 180, 300, _("Inset keys"));
30     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
31     fl_set_object_resize(obj, FL_RESIZE_X);
32     fl_set_object_callback(obj, C_FormCommandInputCB, CITEBRSR);
33   fdui->bibBrsr = obj = fl_add_browser(FL_HOLD_BROWSER, 240, 30, 180, 300, _("Bibliography keys"));
34     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
35     fl_set_object_resize(obj, FL_RESIZE_X);
36     fl_set_object_callback(obj, C_FormCommandInputCB, BIBBRSR);
37   fdui->addBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 30, 30, 30, _("@4->"));
38     fl_set_object_resize(obj, FL_RESIZE_NONE);
39     fl_set_object_callback(obj, C_FormCommandInputCB, ADD);
40   fdui->delBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 65, 30, 30, _("@9+"));
41     fl_set_object_resize(obj, FL_RESIZE_NONE);
42     fl_set_object_callback(obj, C_FormCommandInputCB, DELETE);
43   fdui->upBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 100, 30, 30, _("@8->"));
44     fl_set_object_resize(obj, FL_RESIZE_NONE);
45     fl_set_object_callback(obj, C_FormCommandInputCB, UP);
46   fdui->downBtn = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 135, 30, 30, _("@2->"));
47     fl_set_object_resize(obj, FL_RESIZE_NONE);
48     fl_set_object_callback(obj, C_FormCommandInputCB, DOWN);
49   fdui->infoBrsr = obj = fl_add_browser(FL_NORMAL_BROWSER, 10, 360, 410, 80, _("Info"));
50     fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
51     fl_set_object_resize(obj, FL_RESIZE_X);
52   fdui->style = obj = fl_add_choice(FL_NORMAL_CHOICE, 160, 470, 130, 30, _("Citation style"));
53     fl_set_object_boxtype(obj, FL_DOWN_BOX);
54     fl_set_object_resize(obj, FL_RESIZE_X);
55   fdui->textBefore = obj = fl_add_input(FL_NORMAL_INPUT, 100, 520, 250, 30, _("Text before"));
56     fl_set_object_resize(obj, FL_RESIZE_X);
57   fdui->textAftr = obj = fl_add_input(FL_NORMAL_INPUT, 100, 570, 250, 30, _("Text after"));
58     fl_set_object_resize(obj, FL_RESIZE_X);
59   fdui->ok = obj = fl_add_button(FL_RETURN_BUTTON, 230, 630, 90, 30, _("OK"));
60     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
61     fl_set_object_callback(obj, C_FormCommandOKCB, 0);
62   fdui->cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 330, 630, 90, 30, _("Cancel"));
63     fl_set_button_shortcut(obj, _("^["), 1);
64     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
65     fl_set_object_callback(obj, C_FormCommandCancelCB, 0);
66   fl_end_form();
67
68   fdui->form->fdui = fdui;
69
70   return fdui;
71 }
72 /*---------------------------------------*/
73