source: branches/Transpascal/UApplicationInfo.pas@ 69

Last change on this file since 69 was 66, checked in by george, 15 years ago
  • Added: Storing application setting in system registry.
  • Added: Loading project files.
  • Added: Remembering last opened files.
File size: 1.2 KB
Line 
1unit UApplicationInfo;
2
3{$MODE Delphi}
4
5// Date: 2010-06-16
6
7interface
8
9uses
10 SysUtils;
11
12type
13
14 { TApplicationInfo }
15
16 TApplicationInfo = class
17 private
18 function GetVersion:string;
19 public
20 Name: string;
21 Identification: Byte;
22 MajorVersion: Byte;
23 MinorVersion: Byte;
24 BugFixVersion: Byte;
25 CompanyName: string;
26 CompanyHomePage: string;
27 HomePage: string;
28 AuthorName: string;
29 EmailContact: string;
30 ReleaseDate: string;
31 property Version: string read GetVersion;
32 end;
33
34var
35 ApplicationInfo: TApplicationInfo;
36
37implementation
38
39{ TApplicationInfo }
40
41function TApplicationInfo.GetVersion:string;
42begin
43 Result := IntToStr(MajorVersion) + '.' + IntToStr(MinorVersion) +
44 '.' + IntToStr(BugFixVersion);
45end;
46
47initialization
48
49ApplicationInfo := TApplicationInfo.Create;
50
51with ApplicationInfo do begin
52 Name := 'Transpascal';
53 Identification := 1;
54 ReleaseDate := '18.10.2010';
55 MajorVersion := 0;
56 MinorVersion := 1;
57 BugFixVersion := 0;
58 CompanyName := '';
59 CompanyHomepage := '';
60 HomePage := '';
61 AuthorName := 'Chronos';
62 EmailContact := '';
63end;
64
65finalization
66
67ApplicationInfo.Free;
68
69end.
Note: See TracBrowser for help on using the repository browser.