-
Notifications
You must be signed in to change notification settings - Fork 0
/
DPM.Creator.FakeIDEOptions.pas
164 lines (128 loc) · 3.59 KB
/
DPM.Creator.FakeIDEOptions.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
unit DPM.Creator.FakeIDEOptions;
interface
uses
System.Classes,
DPM.Core.Types,
DPM.IDE.Options
;
type
TFakeIDE = class(TInterfacedObject, IDPMIDEOptions)
private
FVerbosity: TVerbosity;
Ffilename : string;
FHeight: Integer;
FWidth: Integer;
FShowLogForInstall: Boolean;
FShowLogForRestore: Boolean;
FShowLogForUnInstall: Boolean;
FAutoCloseLogOnSuccess: Boolean;
FAddDPMToProjectTree: Boolean;
FAutoCloseLogDelaySeconds : Integer;
public
function LoadFromFile(const fileName : string = '') : boolean;
function SaveToFile(const fileName : string = '') : boolean;
function GetOptionsFileName : string;
function GetLogVerbosity : TVerbosity;
procedure SetLogVebosity(const value : TVerbosity);
function GetShowLogForRestore : boolean;
procedure SetShowLogForRestore(const value : boolean);
function GetShowLogForInstall : boolean;
procedure SetShowLogForInstall(const value : boolean);
function GetShowLogForUnInstall : boolean;
procedure SetShowLogForUnInstall(const value : boolean);
function GetAutoCloseLogOnSuccess : boolean;
procedure SetAutoCloseLogOnSuccess(const value : boolean);
function GetAutoCloseLogDelaySeconds : integer;
procedure SetAutoCloseLogDelaySelcond(const value : integer);
function GetAddDPMToProjectTree : boolean;
procedure SetAddDPMToProjectTree(const value : boolean);
function GetLogWindowWidth : integer;
procedure SetLogWindowWidth(const value : integer);
function GetLogWindowHeight : integer;
procedure SetLogWindowHeight(const value : integer);
end;
implementation
{ TFakeIDE }
function TFakeIDE.GetAddDPMToProjectTree: boolean;
begin
Result := FAddDPMToProjectTree;
end;
function TFakeIDE.GetAutoCloseLogDelaySeconds: integer;
begin
Result := FAutoCloseLogDelaySeconds;
end;
function TFakeIDE.GetAutoCloseLogOnSuccess: boolean;
begin
Result := FAutoCloseLogOnSuccess;
end;
function TFakeIDE.GetLogVerbosity: TVerbosity;
begin
Result := FVerbosity;
end;
function TFakeIDE.GetLogWindowHeight: integer;
begin
Result := FHeight;
end;
function TFakeIDE.GetLogWindowWidth: integer;
begin
Result := FWidth;
end;
function TFakeIDE.GetOptionsFileName: string;
begin
Result := Ffilename;
end;
function TFakeIDE.GetShowLogForInstall: boolean;
begin
Result := FShowLogForInstall;
end;
function TFakeIDE.GetShowLogForRestore: boolean;
begin
Result := FShowLogForRestore;
end;
function TFakeIDE.GetShowLogForUnInstall: boolean;
begin
Result := FShowLogForUnInstall;
end;
function TFakeIDE.LoadFromFile(const fileName: string): boolean;
begin
end;
function TFakeIDE.SaveToFile(const fileName: string): boolean;
begin
end;
procedure TFakeIDE.SetAddDPMToProjectTree(const value: boolean);
begin
FAddDPMToProjectTree := value;
end;
procedure TFakeIDE.SetAutoCloseLogDelaySelcond(const value: integer);
begin
FAutoCloseLogDelaySeconds := value;
end;
procedure TFakeIDE.SetAutoCloseLogOnSuccess(const value: boolean);
begin
FAutoCloseLogOnSuccess := value;
end;
procedure TFakeIDE.SetLogVebosity(const value: TVerbosity);
begin
FVerbosity := value;
end;
procedure TFakeIDE.SetLogWindowHeight(const value: integer);
begin
FHeight := value;
end;
procedure TFakeIDE.SetLogWindowWidth(const value: integer);
begin
FWidth := value;
end;
procedure TFakeIDE.SetShowLogForInstall(const value: boolean);
begin
FShowLogForInstall := value;
end;
procedure TFakeIDE.SetShowLogForRestore(const value: boolean);
begin
FShowLogForRestore := value;
end;
procedure TFakeIDE.SetShowLogForUnInstall(const value: boolean);
begin
FShowLogForUnInstall := value;
end;
end.