2 * FormCopyright Interface Class Implementation
7 #include FORMS_H_LOCATION
10 #pragma implementation
15 #include "form_copyright.h"
16 #include "FormCopyright.h"
17 #include "xform_helpers.h"
19 FormCopyright::FormCopyright( LyXView * lv, Dialogs * d )
20 : FormBaseBI(lv, d, _("Copyright and Warranty"),
21 new OkApplyCancelPolicy),
24 // let the dialog be shown
25 // This is a permanent connection so we won't bother
26 // storing a copy because we won't be disconnecting.
27 d->showCopyright.connect(slot(this, &FormCopyright::show));
31 FormCopyright::~FormCopyright()
37 FL_FORM * FormCopyright::form() const
39 if (dialog_ ) return dialog_->form;
44 void FormCopyright::build()
46 dialog_ = build_copyright();
48 // Workaround dumb xforms sizing bug
52 string str = N_("LyX is Copyright (C) 1995 by Matthias Ettrich, 1995-2000 LyX Team");
53 str = formatted(str, dialog_->text_copyright->w-10,
54 FL_NORMAL_SIZE, FL_NORMAL_STYLE);
55 fl_set_object_label(dialog_->text_copyright, str.c_str());
57 str = N_("This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.");
58 str = formatted(str, dialog_->text_licence->w-10,
59 FL_NORMAL_SIZE, FL_NORMAL_STYLE);
60 fl_set_object_label(dialog_->text_licence, str.c_str());
62 str = N_("LyX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.");
63 str = formatted(str, dialog_->text_disclaimer->w-10,
64 FL_NORMAL_SIZE, FL_NORMAL_STYLE);
65 fl_set_object_label(dialog_->text_disclaimer, str.c_str());
67 // Manage the cancel/close button
68 bc_.setCancel(dialog_->button_cancel);