]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_tabular_create.C
More pref work from Angus
[lyx.git] / src / frontends / xforms / form_tabular_create.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_tabular_create.h"
11 #include "FormTabularCreate.h"
12
13 FD_form_tabular_create::~FD_form_tabular_create()
14 {
15   if( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_tabular_create * FormTabularCreate::build_tabular_create()
21 {
22   FL_OBJECT *obj;
23   FD_form_tabular_create *fdui = new FD_form_tabular_create;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 310, 130);
26   fdui->form->u_vdata = this;
27   obj = fl_add_box(FL_UP_BOX, 0, 0, 310, 130, "");
28   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 10, 90, 90, 30, _("OK"));
29     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
30     fl_set_object_callback(obj, C_FormBaseOKCB, 0);
31   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 110, 90, 90, 30, idex(_("Apply|#A")));
32     fl_set_button_shortcut(obj, scex(_("Apply|#A")), 1);
33     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
34     fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
35   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 210, 90, 90, 30, idex(_("Cancel|#C^[")));
36     fl_set_button_shortcut(obj, scex(_("Cancel|#C^[")), 1);
37     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
38     fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
39   fdui->slider_columns = obj = fl_add_valslider(FL_HOR_SLIDER, 80, 50, 220, 30, _("Columns"));
40     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
41     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
42     fl_set_object_resize(obj, FL_RESIZE_X);
43   fdui->slider_rows = obj = fl_add_valslider(FL_HOR_SLIDER, 80, 10, 220, 30, _("Rows"));
44     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
45     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
46     fl_set_object_resize(obj, FL_RESIZE_X);
47   fl_end_form();
48
49   fdui->form->fdui = fdui;
50
51   return fdui;
52 }
53 /*---------------------------------------*/
54