-
Notifications
You must be signed in to change notification settings - Fork 5
/
FrameD64ExplorerTask.pas
81 lines (53 loc) · 1.54 KB
/
FrameD64ExplorerTask.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
unit FrameD64ExplorerTask;
{$mode delphi}{$H+}
interface
uses
Generics.Collections, Classes, SysUtils, Forms, Controls, IniFiles,
D64ExplorerTypes;
type
{ TD64ExplorerTaskFrame }
TD64ExplorerTaskFrame = class(TFrame)
private
FPrepared: Boolean;
protected
FD64File: TD64File;
public
class function GetDescription: string; virtual; abstract;
procedure Prepare(const AD64File: TD64File); virtual;
procedure Unprepare; virtual;
procedure Initialise; virtual; abstract;
procedure LoadData(const AIniFile: TIniFile); virtual;
procedure SaveData(const AIniFile: TIniFile); virtual;
procedure UpdateDisplay; virtual;
function AcceptFile(const AFile: string): Boolean; virtual;
property D64File: TD64File read FD64File;
property Prepared: Boolean read FPrepared;
end;
TD64ExplorerTaskFrameClass = class of TD64ExplorerTaskFrame;
TTaskFramesList = TObjectList<TD64ExplorerTaskFrame>;
implementation
{$R *.lfm}
{ TD64ExplorerTaskFrame }
procedure TD64ExplorerTaskFrame.Prepare(const AD64File: TD64File);
begin
FPrepared:= True;
end;
procedure TD64ExplorerTaskFrame.Unprepare;
begin
FPrepared:= False;
end;
procedure TD64ExplorerTaskFrame.LoadData(const AIniFile: TIniFile);
begin
end;
procedure TD64ExplorerTaskFrame.SaveData(const AIniFile: TIniFile);
begin
end;
procedure TD64ExplorerTaskFrame.UpdateDisplay;
begin
Initialise;
end;
function TD64ExplorerTaskFrame.AcceptFile(const AFile: string): Boolean;
begin
Result:= False;
end;
end.