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 | |
---|
1 | unit UApplicationInfo;
|
---|
2 |
|
---|
3 | {$MODE Delphi}
|
---|
4 |
|
---|
5 | // Date: 2010-06-16
|
---|
6 |
|
---|
7 | interface
|
---|
8 |
|
---|
9 | uses
|
---|
10 | SysUtils;
|
---|
11 |
|
---|
12 | type
|
---|
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 |
|
---|
34 | var
|
---|
35 | ApplicationInfo: TApplicationInfo;
|
---|
36 |
|
---|
37 | implementation
|
---|
38 |
|
---|
39 | { TApplicationInfo }
|
---|
40 |
|
---|
41 | function TApplicationInfo.GetVersion:string;
|
---|
42 | begin
|
---|
43 | Result := IntToStr(MajorVersion) + '.' + IntToStr(MinorVersion) +
|
---|
44 | '.' + IntToStr(BugFixVersion);
|
---|
45 | end;
|
---|
46 |
|
---|
47 | initialization
|
---|
48 |
|
---|
49 | ApplicationInfo := TApplicationInfo.Create;
|
---|
50 |
|
---|
51 | with 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 := '';
|
---|
63 | end;
|
---|
64 |
|
---|
65 | finalization
|
---|
66 |
|
---|
67 | ApplicationInfo.Free;
|
---|
68 |
|
---|
69 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.