Skip to content

Commit aa00299

Browse files
author
delphidabbler
committed
Removed menu option and code that displayed Proxy Server dialogue box.
1 parent c4488fe commit aa00299

File tree

3 files changed

+27
-38
lines changed

3 files changed

+27
-38
lines changed

Src/FmMain.dfm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -745,14 +745,6 @@ inherited MainForm: TMainForm
745745
OnExecute = actCopySourceExecute
746746
OnUpdate = actCopySourceUpdate
747747
end
748-
object actProxyServer: TAction
749-
Category = 'Tools'
750-
Caption = 'Proxy Server...'
751-
Hint =
752-
'Configure proxy server|Configure any proxy server to be used by ' +
753-
'CodeSnip when accessing web services'
754-
OnExecute = actProxyServerExecute
755-
end
756748
object actAddCategory: TAction
757749
Category = 'Categories'
758750
Caption = 'New Category...'
@@ -1142,9 +1134,6 @@ inherited MainForm: TMainForm
11421134
object miCompilers: TMenuItem
11431135
Action = actCompilers
11441136
end
1145-
object miProxyServer: TMenuItem
1146-
Action = actProxyServer
1147-
end
11481137
object miSpacer18: TMenuItem
11491138
Caption = '-'
11501139
end

Src/FmMain.pas

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,34 @@ interface
1818

1919
uses
2020
// Delphi
21-
SysUtils, Menus, ExtActns, StdActns, Classes, ActnList, ImgList, Controls,
22-
Forms, ExtCtrls, ComCtrls, ToolWin, Messages, AppEvnts,
21+
SysUtils,
22+
Menus,
23+
ExtActns,
24+
StdActns,
25+
Classes,
26+
ActnList,
27+
ImgList,
28+
Controls,
29+
Forms,
30+
ExtCtrls,
31+
ComCtrls,
32+
ToolWin,
33+
Messages,
34+
AppEvnts,
2335
// Project
24-
Favourites.UManager, FmHelpAware, FrDetail, FrOverview, FrTitled,
25-
IntfNotifier, UCompileMgr, UDialogMgr, UHistory, UMainDisplayMgr, USearch,
26-
UStatusBarMgr, UWindowSettings;
36+
Favourites.UManager,
37+
FmHelpAware,
38+
FrDetail,
39+
FrOverview,
40+
FrTitled,
41+
IntfNotifier,
42+
UCompileMgr,
43+
UDialogMgr,
44+
UHistory,
45+
UMainDisplayMgr,
46+
USearch,
47+
UStatusBarMgr,
48+
UWindowSettings;
2749

2850

2951
type
@@ -75,7 +97,6 @@ TMainForm = class(THelpAwareForm)
7597
actPreviousTab: TAction;
7698
actPrint: TAction;
7799
actPrivacy: TAction;
78-
actProxyServer: TAction;
79100
actRenameCategory: TAction;
80101
actRestoreDatabase: TAction;
81102
actSaveDatabase: TAction;
@@ -147,7 +168,6 @@ TMainForm = class(THelpAwareForm)
147168
miPreferences: TMenuItem;
148169
miPrint: TMenuItem;
149170
miPrivacy: TMenuItem;
150-
miProxyServer: TMenuItem;
151171
miRenameCategory: TMenuItem;
152172
miReportBug: TMenuItem;
153173
miRestoreDatabase: TMenuItem;
@@ -367,9 +387,6 @@ TMainForm = class(THelpAwareForm)
367387
procedure actPrintUpdate(Sender: TObject);
368388
/// <summary>Displays the Privacy Statement help topic.</summary>
369389
procedure actPrivacyExecute(Sender: TObject);
370-
/// <summary>Displays the Proxy Server Configuration dialogue box that can
371-
/// be used to specify a proxy server to use for internet access.</summary>
372-
procedure actProxyServerExecute(Sender: TObject);
373390
/// <summary>Displays a dialogue box that can be used to rename a user
374391
/// defined category.</summary>
375392
procedure actRenameCategoryExecute(Sender: TObject);
@@ -952,11 +969,6 @@ procedure TMainForm.actPrivacyExecute(Sender: TObject);
952969
DisplayHelp('PrivacyStatement');
953970
end;
954971

955-
procedure TMainForm.actProxyServerExecute(Sender: TObject);
956-
begin
957-
fDialogMgr.ExecProxyServerDlg;
958-
end;
959-
960972
procedure TMainForm.actRenameCategoryExecute(Sender: TObject);
961973
begin
962974
TUserDBMgr.RenameACategory;

Src/UDialogMgr.pas

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,6 @@ TDialogMgr = class(TComponent)
125125
function ShowDependenciesDlg(const Snippet: TSnippet;
126126
const HelpKeyword: string): ISearch;
127127

128-
/// <summary>Displays the Proxy Server configuration dialogue box.
129-
/// </summary>
130-
/// <returns>Boolean. True if user OKd dialogue or False if user cancelled.
131-
/// </returns>
132-
function ExecProxyServerDlg: Boolean;
133-
134128
/// <summary>Displays the Test Compile dialogue box.</summary>
135129
/// <param name="CompileMgr">TCompileMgr [in] Object used to manage test
136130
/// compilation and to retain results.</param>
@@ -153,7 +147,6 @@ implementation
153147
// Project
154148
FmAboutDlg, FmDBUpdateDlg, FmDependenciesDlg, FmFindCompilerDlg,
155149
FmFindTextDlg, FmFindXRefsDlg, FmPreferencesDlg, FmPrintDlg,
156-
FmProxyServerDlg,
157150
FmSelectionSearchDlg, FmSWAGImportDlg, FmTestCompileDlg, FmUserBugReportDlg,
158151
UTestUnitDlgMgr;
159152

@@ -199,11 +192,6 @@ function TDialogMgr.ExecPrintDlg: Boolean;
199192
Result := TPrintDlg.Execute(Owner);
200193
end;
201194

202-
function TDialogMgr.ExecProxyServerDlg: Boolean;
203-
begin
204-
Result := TProxyServerDlg.Execute(Owner);
205-
end;
206-
207195
function TDialogMgr.ExecSelectionSearchDlg(
208196
const SelectedSnippets: TSnippetList; out ASearch: ISearch): Boolean;
209197
begin

0 commit comments

Comments
 (0)