{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% osCommerce Product Manager for Windows (oscpmwin). Copyright ©2003,2004,2005 by Mario A. Valdez-Ramirez. You can contact Mario A. Valdez-Ramirez by email at mario@mariovaldez.org or paper mail at Olmos 809, San Nicolas, NL. 66495, Mexico. 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. This program 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} unit license; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons; type Topm_Form_License = class(TForm) opm_Memo_License: TMemo; opm_BitBtn_LicenseOk: TBitBtn; procedure FormCreate(Sender: TObject); procedure FormShow(Sender: TObject); private { Private declarations } public end; var opm_Form_License: Topm_Form_License; implementation uses gnugettext, main, oscpmdata, balloons, dataman; {$R *.dfm} {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% The following conditional is needed because of licensing issues when compiling with JclDebug or MadExcept library. The resulting executable cannot be released under the GPL license. As a result, we compile and include a freeware testing license when using any of them. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} {$IFDEF OSCPMDEBUG} {$R license_debug.RES} {$ELSE} {$R license_text.RES} {$ENDIF} {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} procedure Topm_Form_License.FormCreate(Sender: TObject); begin opm_Form_License.Caption := _('License of ') + opmC_AppShortName; opm_Memo_License.Lines.Text := FNopm_StringFromResource ('license_body'); TranslateComponent (self); end; {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%} procedure Topm_Form_License.FormShow(Sender: TObject); begin opm_Form_License.Caption := _('License of ') + opmC_AppShortName; end; end.