]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_copyright.C
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / form_copyright.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_copyright.h"
11 #include "FormCopyright.h"
12
13 FD_form_copyright::~FD_form_copyright()
14 {
15   if ( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_copyright * FormCopyright::build_copyright()
21 {
22   FL_OBJECT *obj;
23   FD_form_copyright *fdui = new FD_form_copyright;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 430);
26   fdui->form->u_vdata = this;
27   obj = fl_add_box(FL_UP_BOX, 0, 0, 450, 430, "");
28   fdui->text_copyright = obj = fl_add_text(FL_NORMAL_TEXT, 10, 10, 430, 50, "");
29     fl_set_object_boxtype(obj, FL_FRAME_BOX);
30     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
31     fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
32   fdui->text_licence = obj = fl_add_text(FL_NORMAL_TEXT, 10, 70, 430, 110, "");
33     fl_set_object_boxtype(obj, FL_FRAME_BOX);
34     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
35     fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
36   fdui->text_disclaimer = obj = fl_add_text(FL_NORMAL_TEXT, 10, 190, 430, 190, "");
37     fl_set_object_boxtype(obj, FL_FRAME_BOX);
38     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
39     fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
40   {
41     char const * const dummy = N_("Close|^[^M");
42     fdui->button_cancel = obj = fl_add_button(FL_RETURN_BUTTON, 160, 390, 140, 30, idex(_(dummy)));
43     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
44   }
45     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
46     fl_set_object_gravity(obj, FL_South, FL_South);
47     fl_set_object_resize(obj, FL_RESIZE_NONE);
48     fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
49   fl_end_form();
50
51   fdui->form->fdui = fdui;
52
53   return fdui;
54 }
55 /*---------------------------------------*/
56