]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_tabular_create.C
use exclicit temp var
[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 "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_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   {
32     char const * const dummy = N_("Apply|#A");
33     fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 110, 90, 90, 30, idex(_(dummy)));
34     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
35   }
36     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
37     fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
38   {
39     char const * const dummy = N_("Cancel|^[");
40     fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 210, 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, 0);
45   fdui->slider_columns = obj = fl_add_valslider(FL_HOR_SLIDER, 80, 50, 220, 30, _("Columns"));
46     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
47     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
48     fl_set_object_resize(obj, FL_RESIZE_X);
49   fdui->slider_rows = obj = fl_add_valslider(FL_HOR_SLIDER, 80, 10, 220, 30, _("Rows"));
50     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
51     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
52     fl_set_object_resize(obj, FL_RESIZE_X);
53   fl_end_form();
54
55   fdui->form->fdui = fdui;
56
57   return fdui;
58 }
59 /*---------------------------------------*/
60