Skip to content

Commit 6ccc83d

Browse files
author
delphidabbler
committed
Merge branch 'feature/remove-proxysvr' into develop
2 parents c4488fe + f3d5478 commit 6ccc83d

22 files changed

+47
-797
lines changed

Docs/Design/FileFormats/config.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,6 @@ <h4>
12991299
</dl>
13001300

13011301
<div class="del">
1302-
13031302
<h4>
13041303
[Prefs:Updating] section
13051304
</h4>
@@ -1331,9 +1330,9 @@ <h4>
13311330
check for database updates automatically.
13321331
</dd>
13331332
</dl>
1334-
13351333
</div>
13361334

1335+
<div class="del">
13371336
<h4>
13381337
[ProxyServer] section
13391338
</h4>
@@ -1382,6 +1381,7 @@ <h4>
13821381
the encrypted password.
13831382
</dd>
13841383
</dl>
1384+
</div>
13851385

13861386
<div class="del">
13871387
<h4>

Docs/Privacy.txt

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,10 @@ folder for the standard edition or in the AppData sub folder of the install
3333
directory for the portable edition.
3434

3535
The file stores several user-specific application data settings such as your
36-
preferences. The only personal information is as follows:
37-
38-
* Any user name or email address you provided if you ever entered the
39-
information in a dialogue box. This is used simply to automatically enter
40-
the data in dialogue boxes where needed, to save you re-typing it.
41-
42-
* Your user name and password if you configured CodeSnip to access the
43-
internet using a proxy server. The information is used only to access the
44-
proxy. Passwords are encrypted.
36+
preferences. The only personal information is any user name or email address you
37+
provided if you ever entered such information in a dialogue box. This is used
38+
only to automatically enter the data in dialogue boxes where needed, to save you
39+
re-typing it.
4540

4641

4742
Spyware
@@ -69,19 +64,4 @@ default web browser. The author takes no responsibility for any data collected b
6964
your web browser or the individual web sites.
7065

7166

72-
Accessing the internet using a proxy server
73-
--------------------------------------------------------------------------------
74-
75-
CodeSnip can be configured to use a proxy server to access the internet. In this
76-
case the program sends the appropriate user name and password to the proxy
77-
server if required.
78-
79-
DelphiDabbler has no control over the proxy server and you should satisfy
80-
yourself that the proxy you use is trustworthy. You use this feature at your own
81-
risk.
82-
83-
84-
================================================================================
85-
$Rev$
86-
$Date$
8767
================================================================================

Docs/ReadMe.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,6 @@ Known Installation and Upgrading Issues
273273
the Preferences dialogue box displayed from the "Tools | Preferences" menu
274274
option.
275275

276-
+ If you are updating from v3.6.0 or earlier and have set up a password
277-
protected proxy server for internet access your password will have been lost.
278-
This is because the format for storing passwords changed at v3.6.1.
279-
280-
To re-enter your proxy password use the Proxy Server Configuration dialogue
281-
box displayed from the "Tools | Proxy Server" menu option.
282-
283276
+ Your source code formatting preferences will have been lost if you are
284277
updating from v1.7.4 or earlier.
285278

Src/CodeSnip.dpr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ uses
122122
FmPreferencesDlg in 'FmPreferencesDlg.pas' {PreferencesDlg},
123123
FmPreviewDlg in 'FmPreviewDlg.pas' {PreviewDlg},
124124
FmPrintDlg in 'FmPrintDlg.pas' {PrintDlg},
125-
FmProxyServerDlg in 'FmProxyServerDlg.pas' {ProxyServerDlg},
126125
FmRenameCategoryDlg in 'FmRenameCategoryDlg.pas' {RenameCategoryDlg},
127126
FmSelectionSearchDlg in 'FmSelectionSearchDlg.pas' {SelectionSearchDlg},
128127
FmSnippetsEditorDlg in 'FmSnippetsEditorDlg.pas' {SnippetsEditorDlg},

Src/CodeSnip.dproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@
205205
<DCCReference Include="FmPrintDlg.pas">
206206
<Form>PrintDlg</Form>
207207
</DCCReference>
208-
<DCCReference Include="FmProxyServerDlg.pas">
209-
<Form>ProxyServerDlg</Form>
210-
</DCCReference>
211208
<DCCReference Include="FmRenameCategoryDlg.pas">
212209
<Form>RenameCategoryDlg</Form>
213210
</DCCReference>

Src/FirstRun.FmV4ConfigDlg.pas

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ function TV4ConfigDlg.HeadingText(const PageIdx: Integer): string;
339339
procedure TV4ConfigDlg.ListChanges;
340340
resourcestring
341341
sHiliter = 'Syntax highlighter customisations have been lost.';
342-
sProxyPwd = 'Your proxy server password needs to be re-entered.';
343342
sSourceFormat = 'Source code formatting preferences may have been lost.';
344343
var
345344
Changes: IStringList;
@@ -351,8 +350,6 @@ procedure TV4ConfigDlg.ListChanges;
351350
Changes := TIStringList.Create;
352351
if frcHiliter in fCfgChanges then
353352
Changes.Add(sHiliter);
354-
if frcProxyPwd in fCfgChanges then
355-
Changes.Add(sProxyPwd);
356353
if frcSourceFormat in fCfgChanges then
357354
Changes.Add(sSourceFormat);
358355
CreateBulletPage(

Src/FirstRun.UConfigFile.pas

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,15 @@ TUserConfigFileUpdater = class(TConfigFileUpdater)
8585
procedure UpdateFromOriginal;
8686
/// <summary>Deletes any highlighter preferences.</summary>
8787
procedure DeleteHighligherPrefs;
88-
/// <summary>Checks a proxy password is present in file.</summary>
89-
function HasProxyPassword: Boolean;
90-
/// <summary>Deletes proxy password entry.</summary>
91-
procedure DeleteProxyPassword;
9288
/// <summary>Updates Prefs:CodeGen section from format prior to version 9
9389
/// to version 9 and later format.</summary>
9490
procedure UpdateCodeGenEntries;
9591
/// <summary>Deletes unused key that determines detail pane index.
9692
/// </summary>
9793
procedure DeleteDetailsPaneIndex;
9894
{$ENDIF}
95+
/// <summary>Deletes proxy server section.</summary>
96+
procedure DeleteProxyServerSection;
9997
/// <summary>Deletes unused Prefs:News section.</summary>
10098
procedure DeleteNewsPrefs;
10199
/// <summary>Effectively renames MainWindow section used prior to version
@@ -294,27 +292,18 @@ procedure TUserConfigFileUpdater.DeleteNewsPrefs;
294292
DeleteIniSection('Prefs:News', CfgFileName);
295293
end;
296294

297-
{$IFNDEF PORTABLE}
298-
procedure TUserConfigFileUpdater.DeleteProxyPassword;
295+
procedure TUserConfigFileUpdater.DeleteProxyServerSection;
299296
begin
300297
if not TFile.Exists(CfgFileName, False) then
301298
CreateNewFile;
302-
SetIniString('ProxyServer', 'Password', '', CfgFileName);
299+
DeleteIniSection('ProxyServer', CfgFileName);
303300
end;
304-
{$ENDIF}
305301

306302
class function TUserConfigFileUpdater.GetFileVersion: Integer;
307303
begin
308304
Result := FileVersion;
309305
end;
310306

311-
{$IFNDEF PORTABLE}
312-
function TUserConfigFileUpdater.HasProxyPassword: Boolean;
313-
begin
314-
Result := GetIniString('ProxyServer', 'Password', '', CfgFileName) <> '';
315-
end;
316-
{$ENDIF}
317-
318307
procedure TUserConfigFileUpdater.RenameMainWindowSection;
319308
begin
320309
if not TFile.Exists(CfgFileName, False) then

Src/FirstRun.UMain.pas

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ interface
2727
/// config files that result in data loss.</summary>
2828
TFirstRunCfgChanges = (
2929
frcHiliter, // syntax highlighter customisation lost
30-
frcProxyPwd, // internet proxy password lost
3130
frcSourceFormat // source code output formatting lost
3231
);
3332

@@ -56,11 +55,6 @@ TFirstRun = class(TObject)
5655
/// <summary>Object used to copy forward older versions of user database.
5756
/// </summary>
5857
fDatabase: TUserDatabaseUpdater;
59-
{$IFNDEF PORTABLE}
60-
/// <summary>Checks if config file uses earlier format for storing proxy
61-
/// server passwords.</summary>
62-
function HasOldStyleProxyPwd: Boolean;
63-
{}{$ENDIF}
6458
public
6559
/// <summary>Constructs object and owned object.</summary>
6660
constructor Create;
@@ -183,13 +177,6 @@ destructor TFirstRun.Destroy;
183177
inherited;
184178
end;
185179

186-
{$IFNDEF PORTABLE}
187-
function TFirstRun.HasOldStyleProxyPwd: Boolean;
188-
begin
189-
Result := (fUserConfigFile.FileVer <= 6) and fUserConfigFile.HasProxyPassword;
190-
end;
191-
{$ENDIF}
192-
193180
function TFirstRun.HaveOldUserCfgFile: Boolean;
194181
begin
195182
Result := TFile.Exists(fInstallInfo.PreviousUserConfigFileName, False);
@@ -222,14 +209,7 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
222209
fUserConfigFile.DeleteHighligherPrefs;
223210
Include(Changes, frcHiliter);
224211
end;
225-
piV3:
226-
begin
227-
if HasOldStyleProxyPwd then
228-
begin
229-
fUserConfigFile.DeleteProxyPassword;
230-
Include(Changes, frcProxyPwd);
231-
end;
232-
end;
212+
piV3: ; // do nothing
233213
end;
234214
{$ENDIF}
235215

@@ -259,7 +239,10 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
259239

260240

261241
if fUserConfigFile.FileVer < 16 then
242+
begin
262243
fUserConfigFile.DeleteNewsPrefs;
244+
fUserConfigFile.DeleteProxyServerSection;
245+
end;
263246

264247
if fCommonConfigFile.FileVer < 7 then
265248
fCommonConfigFile.DeleteRegistrationInfo;

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;

0 commit comments

Comments
 (0)