]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_copyright.C
More pref work from Angus
[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   obj = fl_add_text(FL_NORMAL_TEXT, 10, 10, 430, 50, _("LyX is Copyright (C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team"));
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     fl_set_object_gravity(obj, FL_NorthWest, FL_NorthEast);
33   obj = fl_add_text(FL_NORMAL_TEXT, 10, 70, 430, 110, _("This program is free software; you can redistribute it\nand/or modify it under the terms of the GNU General\nPublic License as published by the Free Software\nFoundation; either version 2 of the License, or\n(at your option) any later version."));
34     fl_set_object_boxtype(obj, FL_FRAME_BOX);
35     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
36     fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
37   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 160, 390, 140, 30, idex(_("Close|#C^[^M")));
38     fl_set_button_shortcut(obj, scex(_("Close|#C^[^M")), 1);
39     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
40     fl_set_object_gravity(obj, FL_South, FL_South);
41     fl_set_object_resize(obj, FL_RESIZE_NONE);
42     fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
43   obj = fl_add_text(FL_NORMAL_TEXT, 10, 190, 430, 190, _("LyX is distributed in the hope that it will\nbe useful, but WITHOUT ANY WARRANTY;\nwithout even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of\nthe GNU General Public License\nalong with this program; if not, write to\nthe Free Software Foundation, Inc., \n675 Mass Ave, Cambridge, MA 02139, USA."));
44     fl_set_object_boxtype(obj, FL_FRAME_BOX);
45     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
46     fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
47   fl_end_form();
48
49   fdui->form->fdui = fdui;
50
51   return fdui;
52 }
53 /*---------------------------------------*/
54