unit Uabout;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, LtLabel, Uutils, JobCommon;
type
TAboutDialog = class(TForm)
Label1: TLabel;
LightLabel1: TLightLabel;
Label2: TLabel;
Label3: TLabel;
ListDEF: TListBox;
Label4: TLabel;
JobSeedList: TListBox;
procedure FormCreate(Sender: TObject);
private
procedure AddJobSeed(JobClass : TJobclass);
public
end;
var
AboutDialog: TAboutDialog;
implementation
Uses
Umain;
procedure TAboutDialog.AddJobSeed(JobClass: TJobclass);
var
TempSeedlist : TStringList;
begin
TempSeedlist := TStringList.Create;
try
JobSeedList.Items.Add('['+ JobClass.ClassName + ']');
TempSeedlist.Text := JobClass.GetCalcSeedList;
JobSeedList.Items.AddStrings(TempSeedlist);
JobSeedList.Items.Add('');
finally
TempSeedlist.Free;
end;
end;
procedure TAboutDialog.FormCreate(Sender: TObject);
Var
hFile : Integer;
Dos : Integer;
FileData : TDateTime;
Path: array[0..MAX_PATH *2] of Char;
begin
LightLabel1.Color := clBtnFace;
LightLabel1.ShowHint := True;
Label3.Caption := Label3.Caption + '(CompilerVersion' + FormatFloat('#,##0.00',CompilerVersion) + ')';
GetModuleFileName(0,Path,MAX_PATH);
hFile :=FileOpen(Path,0);
Dos :=FileGetDate(hFile);
FileClose(hFile);
FileData :=FileDateToDateTime(Dos);
AddJobSeed(MainForm.Novice);
AddJobSeed(MainForm.Warrior);
AddJobSeed(MainForm.Knight);
AddJobSeed(MainForm.Priest);
AddJobSeed(MainForm.Magician);
AddJobSeed(MainForm.Pierro);
MemoDEF.Items.Add('Release');
Label1.Caption := Label1.Caption + ':' + 'NightlyBuild';
ListDEF.Items.Add('NightlyBuild');
Label2.Caption := 'BuildDate:' + DateTostr(FileData);
ListDEF.Items.Add('MemCheckStackTrace');
ListDEF.Items.Add('LoadIniJobData');
ListDEF.Items.Add('DEBUG_AUTO');
ListDEF.Items.Add('DEBUG_ENABLE');
ListDEF.Items.Add('DEBUG_SILENT');
end;
end.