|
Last change
on this file was 507, checked in by chronos, 8 years ago |
- Modified: Update Common package.
- Added: Support for color theme.
|
|
File size:
790 bytes
|
| Line | |
|---|
| 1 | unit UProject;
|
|---|
| 2 |
|
|---|
| 3 | {$mode delphi}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, UDataFile;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 11 |
|
|---|
| 12 | { TProject }
|
|---|
| 13 |
|
|---|
| 14 | TProject = class(TDataFile)
|
|---|
| 15 | private
|
|---|
| 16 | public
|
|---|
| 17 | constructor Create; override;
|
|---|
| 18 | function GetFileExt: string; override;
|
|---|
| 19 | function GetFileDialogFilter: string; override;
|
|---|
| 20 | end;
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | implementation
|
|---|
| 24 |
|
|---|
| 25 | resourcestring
|
|---|
| 26 | SProjectName = 'New project';
|
|---|
| 27 | SProjectFiles = 'Project files';
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | { TProject }
|
|---|
| 31 |
|
|---|
| 32 | constructor TProject.Create;
|
|---|
| 33 | begin
|
|---|
| 34 | inherited Create;
|
|---|
| 35 | FileName := SProjectName + GetFileExt;
|
|---|
| 36 | end;
|
|---|
| 37 |
|
|---|
| 38 | function TProject.GetFileExt: string;
|
|---|
| 39 | begin
|
|---|
| 40 | Result := '.prj';
|
|---|
| 41 | end;
|
|---|
| 42 |
|
|---|
| 43 | function TProject.GetFileDialogFilter: string;
|
|---|
| 44 | begin
|
|---|
| 45 | Result := SProjectFiles + ' (' + GetFileExt + ')|*' + GetFileExt + '|' +
|
|---|
| 46 | SAllFiles + '|*.*';
|
|---|
| 47 | end;
|
|---|
| 48 |
|
|---|
| 49 | end.
|
|---|
| 50 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.