File tree Expand file tree Collapse file tree 12 files changed +99
-429
lines changed Expand file tree Collapse file tree 12 files changed +99
-429
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,10 @@ portable edition.
16
16
Common.config
17
17
--------------------------------------------------------------------------------
18
18
19
- Common.config is located in the %ProgramData%\DelphiDabbler\CodeSnip.4 folder
20
- for the standard edition or in the AppData sub folder of the install directory
21
- for the portable edition.
19
+ Common.config is located in the in the %ProgramData%\DelphiDabbler\CodeSnip.4
20
+ folder for the standard edition. It is not used by the portable edition.
22
21
23
- The data that is stored in Common.config includes a unique 32 digit hexadecimal
24
- key based on attributes of your computer. The data that is used to create the
25
- hexadecimal key cannot be recovered from the key.
22
+ Only version information is stored in <code>Common.config</code>.
26
23
27
24
28
25
User.config
@@ -33,10 +30,7 @@ folder for the standard edition or in the AppData sub folder of the install
33
30
directory for the portable edition.
34
31
35
32
The file stores several user-specific application data settings such as your
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.
33
+ preferences. None of this information is personally identifiable.
40
34
41
35
42
36
Spyware
Original file line number Diff line number Diff line change 354
354
UUserDBBackup in ' UUserDBBackup.pas' ,
355
355
UUserDBMgr in ' UUserDBMgr.pas' ,
356
356
UUserDBMove in ' UUserDBMove.pas' ,
357
- UUserDetails in ' UUserDetails.pas' ,
358
357
UUtils in ' UUtils.pas' ,
359
358
UVersionInfo in ' UVersionInfo.pas' ,
360
359
UView in ' UView.pas' ,
Original file line number Diff line number Diff line change 551
551
<DCCReference Include="UUserDBBackup.pas"/>
552
552
<DCCReference Include="UUserDBMgr.pas"/>
553
553
<DCCReference Include="UUserDBMove.pas"/>
554
- <DCCReference Include="UUserDetails.pas"/>
555
554
<DCCReference Include="UUtils.pas"/>
556
555
<DCCReference Include="UVersionInfo.pas"/>
557
556
<DCCReference Include="UView.pas"/>
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ TUserConfigFileUpdater = class(TConfigFileUpdater)
102
102
procedure DeleteUpdatingPrefs ;
103
103
// / <summary>Deletes unused UpdateChecks section.</summary>
104
104
procedure DeleteUpdateChecks ;
105
+ // / <summary>Deletes unused UserInfo section.</summary>
106
+ procedure DeleteUserInfo ;
105
107
// / <summary>Effectively renames MainWindow section used prior to version
106
108
// / 11 as WindowState:MainForm.</summary>
107
109
procedure RenameMainWindowSection ;
@@ -330,6 +332,13 @@ procedure TUserConfigFileUpdater.DeleteUpdatingPrefs;
330
332
DeleteIniSection(' Prefs:Updating' , CfgFileName);
331
333
end ;
332
334
335
+ procedure TUserConfigFileUpdater.DeleteUserInfo ;
336
+ begin
337
+ if not TFile.Exists(CfgFileName, False) then
338
+ CreateNewFile;
339
+ DeleteIniSection(' UserInfo' , CfgFileName);
340
+ end ;
341
+
333
342
class function TUserConfigFileUpdater.GetFileVersion : Integer;
334
343
begin
335
344
Result := FileVersion;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ procedure TFirstRun.UpdateUserCfgFile(out Changes: TFirstRunCfgChangeSet);
242
242
fUserConfigFile.DeleteProxyServerSection;
243
243
fUserConfigFile.DeleteUpdatingPrefs;
244
244
fUserConfigFile.DeleteUpdateChecks;
245
+ fUserConfigFile.DeleteUserInfo;
245
246
end ;
246
247
247
248
{ $IFNDEF PORTABLE}
Original file line number Diff line number Diff line change @@ -230,9 +230,7 @@ procedure TCodeExportDlg.WriteOutputFile;
230
230
var
231
231
OutData: TEncodedData; // receives export file content
232
232
begin
233
- OutData := TCodeExporter.ExportSnippets(
234
- TUserInfo.CreateNul, frmSnippets.SelectedSnippets
235
- );
233
+ OutData := TCodeExporter.ExportSnippets(frmSnippets.SelectedSnippets);
236
234
TFileIO.WriteAllBytes(StrTrim(edFile.Text), OutData.Data);
237
235
end ;
238
236
Original file line number Diff line number Diff line change 1
1
inherited CodeImportDlg: TCodeImportDlg
2
2
Caption = ' Import Wizard'
3
3
ExplicitWidth = 565
4
- ExplicitHeight = 433
4
+ ExplicitHeight = 436
5
5
PixelsPerInch = 96
6
6
TextHeight = 13
7
7
inherited pnlBody: TPanel
8
8
Height = 321
9
9
ExplicitHeight = 321
10
10
inherited pcWizard: TPageControl
11
11
Height = 288
12
- ActivePage = tsUpdate
12
+ ActivePage = tsFile
13
13
ExplicitHeight = 288
14
14
object tsInfo: TTabSheet
15
15
Caption = ' tsInfo'
16
16
TabVisible = False
17
+ ExplicitLeft = 0
18
+ ExplicitTop = 0
19
+ ExplicitWidth = 0
20
+ ExplicitHeight = 0
17
21
object lblIntro: TLabel
18
22
Left = 0
19
23
Top = 8
@@ -33,15 +37,15 @@ inherited CodeImportDlg: TCodeImportDlg
33
37
object lblFile: TLabel
34
38
Left = 0
35
39
Top = 8
36
- Width = 220
40
+ Width = 230
37
41
Height = 13
38
42
Caption = ' Open import &file: (click button to browse for file)'
39
43
FocusControl = edFile
40
44
end
41
45
object lblLoadFile: TLabel
42
46
Left = 0
43
47
Top = 72
44
- Width = 172
48
+ Width = 179
45
49
Height = 13
46
50
Caption = ' Click the Next button to read the file.'
47
51
end
@@ -67,76 +71,22 @@ inherited CodeImportDlg: TCodeImportDlg
67
71
TabOrder = 1
68
72
end
69
73
end
70
- object tsUserInfo: TTabSheet
71
- Caption = ' tsUserInfo'
72
- ImageIndex = 2
73
- TabVisible = False
74
- object lblName: TLabel
75
- Left = 0
76
- Top = 8
77
- Width = 31
78
- Height = 13
79
- Caption = ' Name:'
80
- end
81
- object lblEmail: TLabel
82
- Left = 0
83
- Top = 45
84
- Width = 28
85
- Height = 13
86
- Caption = ' Email:'
87
- end
88
- object lblComments: TLabel
89
- Left = 0
90
- Top = 85
91
- Width = 52
92
- Height = 13
93
- Caption = ' Comments:'
94
- end
95
- object edComments: TMemo
96
- Left = 72
97
- Top = 82
98
- Width = 297
99
- Height = 154
100
- ParentColor = True
101
- ReadOnly = True
102
- ScrollBars = ssVertical
103
- TabOrder = 2
104
- end
105
- object edName: TEdit
106
- Left = 72
107
- Top = 3
108
- Width = 297
109
- Height = 21
110
- ParentColor = True
111
- ReadOnly = True
112
- TabOrder = 0
113
- end
114
- object edEmail: TEdit
115
- Left = 72
116
- Top = 42
117
- Width = 297
118
- Height = 21
119
- ParentColor = True
120
- ReadOnly = True
121
- TabOrder = 1
122
- end
123
- end
124
74
object tsUpdate: TTabSheet
125
75
Caption = ' tsUpdate'
126
76
ImageIndex = 3
127
77
TabVisible = False
128
78
object lblImportList: TLabel
129
79
Left = 0
130
80
Top = 53
131
- Width = 86
81
+ Width = 91
132
82
Height = 13
133
83
Caption = ' Imported &snippets:'
134
84
FocusControl = lvImports
135
85
end
136
86
object lblSelectedSnippet: TLabel
137
87
Left = 0
138
88
Top = 217
139
- Width = 82
89
+ Width = 83
140
90
Height = 13
141
91
Caption = ' S&elected snippet:'
142
92
FocusControl = edRename
@@ -203,6 +153,10 @@ inherited CodeImportDlg: TCodeImportDlg
203
153
Caption = ' tsFinish'
204
154
ImageIndex = 5
205
155
TabVisible = False
156
+ ExplicitLeft = 0
157
+ ExplicitTop = 0
158
+ ExplicitWidth = 0
159
+ ExplicitHeight = 0
206
160
object lblFinish: TLabel
207
161
Left = 0
208
162
Top = 8
You can’t perform that action at this time.
0 commit comments