@@ -64,9 +64,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
64
64
fNewsAction: TBasicAction;
65
65
// / <summary>Action that causes About box to be displayed.</summary>
66
66
fAboutBoxAction: TBasicAction;
67
- // / <summary>Action that displays a specified page in the preferences
68
- // / dialogue box.</summary>
69
- fShowPrefsPageAction: TBasicAction;
70
67
71
68
public
72
69
@@ -136,13 +133,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
136
133
// / <remarks>Methods of INotifier.</remarks>
137
134
procedure ShowAboutBox ;
138
135
139
- // / <summary>Displays the Preferences dialogue box containing the specified
140
- // / page.</summary>
141
- // / <param name="ClsName">string [in] Class name of the frame that
142
- // / implements the required preferences page.</param>
143
- // / <remarks>Method of INotifier.</remarks>
144
- procedure ShowPrefsPage (const ClsName: string);
145
-
146
136
// / <summary>Sets action used to request a database update.</summary>
147
137
// / <param name="Action">TBasicAction [in] Required action.</param>
148
138
// / <remarks>Methods of ISetActions.</remarks>
@@ -210,11 +200,6 @@ TNotifier = class(TInterfacedObject, INotifier, ISetActions)
210
200
// / <remarks>Methods of ISetActions.</remarks>
211
201
procedure SetAboutBoxAction (const Action: TBasicAction);
212
202
213
- // / <summary>Sets action used to display a given page of the Preferences
214
- // / dialogue box.</summary>
215
- // / <param name="Action">TBasicAction [in] Required action.</param>
216
- // / <remarks>Method of ISetActions.</remarks>
217
- procedure SetShowPrefsPageAction (const Action: TBasicAction);
218
203
end ;
219
204
220
205
@@ -225,8 +210,12 @@ implementation
225
210
// Delphi
226
211
SysUtils, StdActns,
227
212
// Project
228
- Compilers.UGlobals, UCategoryAction, UDetailTabAction, UEditSnippetAction,
229
- UShowPrefsPageAction, USnippetAction, UViewItemAction;
213
+ Compilers.UGlobals,
214
+ UCategoryAction,
215
+ UDetailTabAction,
216
+ UEditSnippetAction,
217
+ USnippetAction,
218
+ UViewItemAction;
230
219
231
220
232
221
{ TNotifier }
@@ -356,13 +345,6 @@ procedure TNotifier.SetOverviewStyleChangeActions(
356
345
fOverviewStyleChangeActions[Idx] := Actions[Idx];
357
346
end ;
358
347
359
- procedure TNotifier.SetShowPrefsPageAction (const Action: TBasicAction);
360
- begin
361
- Assert(Action is TShowPrefsPageAction, ClassName
362
- + ' .SetShowPreferencesAction: Action is not TShowPrefsPageAction' );
363
- fShowPrefsPageAction := Action;
364
- end ;
365
-
366
348
procedure TNotifier.SetShowViewItemAction (const Action: TBasicAction);
367
349
begin
368
350
fShowViewItemAction := Action;
@@ -386,15 +368,6 @@ procedure TNotifier.ShowNews;
386
368
fNewsAction.Execute;
387
369
end ;
388
370
389
- procedure TNotifier.ShowPrefsPage (const ClsName: string);
390
- begin
391
- if Assigned(fShowPrefsPageAction) then
392
- begin
393
- (fShowPrefsPageAction as TShowPrefsPageAction).FrameClassName := ClsName;
394
- fShowPrefsPageAction.Execute;
395
- end ;
396
- end ;
397
-
398
371
procedure TNotifier.ShowViewItem (ViewItem: IView; const NewTab: Boolean);
399
372
begin
400
373
if Assigned(fShowViewItemAction) then
0 commit comments