]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_index.C
Better parbox use in tabulars, add of scrolling of inset and automatic
[lyx.git] / src / frontends / xforms / form_index.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_index.h"
11 #include "FormIndex.h" 
12
13 FD_form_index * FormIndex::build_index()
14 {
15   FL_OBJECT *obj;
16   FD_form_index *fdui = new FD_form_index;
17
18   fdui->form_index = fl_bgn_form(FL_NO_BOX, 520, 100);
19   fdui->form_index->u_vdata = this;
20   obj = fl_add_box(FL_UP_BOX, 0, 0, 520, 100, "");
21   fdui->key = obj = fl_add_input(FL_NORMAL_INPUT, 90, 10, 420, 30, _("Keyword"));
22     fl_set_input_shortcut(obj, scex(_("Keyword|#K#k")), 1);
23     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
24     fl_set_object_resize(obj, FL_RESIZE_X);
25   fdui->cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 410, 60, 100, 30, _("Cancel"));
26     fl_set_button_shortcut(obj, _("^["), 1);
27     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
28     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
29     fl_set_object_callback(obj, C_FormCommandCancelCB, 0);
30   fdui->ok = obj = fl_add_button(FL_RETURN_BUTTON, 300, 60, 100, 30, _("OK"));
31     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
32     fl_set_object_callback(obj, C_FormCommandOKCB, 0);
33   fl_end_form();
34
35   fdui->form_index->fdui = fdui;
36
37   return fdui;
38 }
39 /*---------------------------------------*/
40