Skip to content

Commit 6c1d42f

Browse files
committed
Merge branch 'feature/swag-api-changes' into develop
2 parents 64830b6 + f6773c1 commit 6c1d42f

14 files changed

+901
-611
lines changed

Src/CodeSnip.dpr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ uses
179179
SWAG.UCommon in 'SWAG.UCommon.pas',
180180
SWAG.UImporter in 'SWAG.UImporter.pas',
181181
SWAG.UReader in 'SWAG.UReader.pas',
182-
SWAG.USnippetCache in 'SWAG.USnippetCache.pas',
182+
SWAG.UPacketCache in 'SWAG.UPacketCache.pas',
183+
SWAG.UVersion in 'SWAG.UVersion.pas',
183184
SWAG.UXMLProcessor in 'SWAG.UXMLProcessor.pas',
184185
UActionFactory in 'UActionFactory.pas',
185186
UAnchors in 'UAnchors.pas',

Src/CodeSnip.dproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@
376376
<DCCReference Include="SWAG.UCommon.pas"/>
377377
<DCCReference Include="SWAG.UImporter.pas"/>
378378
<DCCReference Include="SWAG.UReader.pas"/>
379-
<DCCReference Include="SWAG.USnippetCache.pas"/>
379+
<DCCReference Include="SWAG.UPacketCache.pas"/>
380+
<DCCReference Include="SWAG.UVersion.pas"/>
380381
<DCCReference Include="SWAG.UXMLProcessor.pas"/>
381382
<DCCReference Include="UActionFactory.pas"/>
382383
<DCCReference Include="UAnchors.pas"/>
@@ -565,6 +566,7 @@
565566
<DCCReference Include="UXMLDocConsts.pas"/>
566567
<DCCReference Include="UXMLDocHelper.pas"/>
567568
<DCCReference Include="UXMLDocumentEx.pas"/>
569+
<DCCReference Include="SWAG.UVersion.pas"/>
568570
<None Include="CodeSnip.todo"/>
569571
<BuildConfiguration Include="Base">
570572
<Key>Base</Key>

Src/FmSWAGImportDlg.dfm

Lines changed: 54 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inherited SWAGImportDlg: TSWAGImportDlg
1919
inherited pcWizard: TPageControl
2020
Width = 671
2121
Height = 456
22-
ActivePage = tsUpdate
22+
ActivePage = tsFinish
2323
ExplicitWidth = 671
2424
ExplicitHeight = 456
2525
object tsIntro: TTabSheet
@@ -58,30 +58,38 @@ inherited SWAGImportDlg: TSWAGImportDlg
5858
object lblFolder: TLabel
5959
Left = 0
6060
Top = 8
61-
Width = 393
61+
Width = 383
6262
Height = 13
6363
Caption =
64-
'Enter the SWAG database download &folder: (click the button to b' +
65-
'rowse for folder)'
64+
'Enter the SWAG database download &folder - you need the '#39'swag'#39' s' +
65+
'ub-directory:'
6666
FocusControl = edPath
6767
end
68-
object lblFolderPageInfo: TLabel
68+
object lblFolderPageInfo2: TLabel
6969
Left = 0
7070
Top = 72
71-
Width = 270
71+
Width = 267
7272
Height = 13
73-
Caption = 'Click the Next button to choose which snippets to import'
73+
Caption = 'Click the Next button to choose which packets to import'
7474
end
75-
object edPath: TEdit
75+
object lblFolderPageInfo1: TLabel
7676
Left = 0
77-
Top = 28
77+
Top = 26
78+
Width = 208
79+
Height = 13
80+
Caption = 'Click the ... button to browse for the folder'
81+
FocusControl = edPath
82+
end
83+
object edPath: TEdit
84+
Left = 3
85+
Top = 45
7886
Width = 484
7987
Height = 21
8088
TabOrder = 0
8189
end
8290
object btnBrowse: TButton
83-
Left = 490
84-
Top = 28
91+
Left = 493
92+
Top = 45
8593
Width = 27
8694
Height = 21
8795
Action = actBrowse
@@ -113,20 +121,26 @@ inherited SWAGImportDlg: TSWAGImportDlg
113121
Height = 36
114122
AutoSize = False
115123
Caption =
116-
'Select a category from the list on the left and click "Show Snip' +
117-
'pets In Category" (or double click the category) to display a li' +
118-
'st of its snippets in the right hand list. Tick the snippets you' +
119-
' want to import. Repeat with as many categories as you wish. Whe' +
120-
'n you are ready to import click "Next".'
124+
'Select a category from the list on the left and click "Show Pack' +
125+
'ets In Category" (or double click the category) to display a lis' +
126+
't of its packets in the right hand list. Tick the packet(s) you ' +
127+
'want to import. Repeat with as many categories as you wish. When' +
128+
' you are ready to import click "Next".'
121129
WordWrap = True
122130
end
123-
object lblSelectSnippets: TLabel
131+
object lblSelectPackets: TLabel
124132
Left = 256
125133
Top = 45
126-
Width = 119
134+
Width = 116
135+
Height = 13
136+
Caption = '&Select required packets:'
137+
FocusControl = clbSelectPackets
138+
end
139+
object lblVersionNumber: TLabel
140+
Left = 2
141+
Top = 427
142+
Width = 3
127143
Height = 13
128-
Caption = '&Select required snippets:'
129-
FocusControl = clbSelectSnippets
130144
end
131145
object lbCategories: TListBox
132146
Left = 0
@@ -138,16 +152,16 @@ inherited SWAGImportDlg: TSWAGImportDlg
138152
OnDblClick = lbCategoriesDblClick
139153
OnKeyDown = lbCategoriesKeyDown
140154
end
141-
object clbSelectSnippets: TCheckListBox
142-
Left = 256
155+
object clbSelectPackets: TCheckListBox
156+
Left = 240
143157
Top = 64
144158
Width = 404
145159
Height = 321
146-
OnClickCheck = clbSelectSnippetsClickCheck
160+
OnClickCheck = clbSelectPacketsClickCheck
147161
ItemHeight = 13
148162
TabOrder = 2
149-
OnDblClick = clbSelectSnippetsDblClick
150-
OnKeyDown = clbSelectSnippetsKeyDown
163+
OnDblClick = clbSelectPacketsDblClick
164+
OnKeyDown = clbSelectPacketsKeyDown
151165
end
152166
object btnDisplayCategory: TButton
153167
Left = 30
@@ -157,12 +171,12 @@ inherited SWAGImportDlg: TSWAGImportDlg
157171
Action = actDisplayCategory
158172
TabOrder = 1
159173
end
160-
object btnDisplaySnippet: TButton
174+
object btnDisplayPacket: TButton
161175
Left = 280
162176
Top = 391
163177
Width = 185
164178
Height = 25
165-
Action = actDisplaySnippet
179+
Action = actDisplayPacket
166180
TabOrder = 3
167181
end
168182
end
@@ -177,11 +191,12 @@ inherited SWAGImportDlg: TSWAGImportDlg
177191
Height = 36
178192
AutoSize = False
179193
Caption =
180-
'You have chosen to import the following SWAG snippets. They will' +
181-
' be imported with the given Display Names and Snippet IDs. You c' +
182-
'an change these if you wish using the Snippets Editor. To make c' +
183-
'hanges go back to the previous page. When you are ready to impor' +
184-
't the snippets click "Import". This step can'#39't be undone.'
194+
'You have chosen to import the following SWAG packets as CodeSnip' +
195+
' snippets. They will be imported with the given Display Names an' +
196+
'd Packet IDs. You can change these if you wish using the Snippet' +
197+
's Editor. To make changes go back to the previous page. When you' +
198+
' are ready to import the packets click "Import". This step can'#39't' +
199+
' be undone.'
185200
WordWrap = True
186201
end
187202
object lvImports: TListView
@@ -191,11 +206,11 @@ inherited SWAGImportDlg: TSWAGImportDlg
191206
Height = 317
192207
Columns = <
193208
item
194-
Caption = 'Snippet Title (Display Name)'
209+
Caption = 'Packet Title '#8594' Snippet Display Name'
195210
Width = 400
196211
end
197212
item
198-
Caption = 'Snippet ID (Name)'
213+
Caption = 'Snippet Name from SWAG ID'
199214
Width = 200
200215
end>
201216
ColumnClick = False
@@ -250,14 +265,14 @@ inherited SWAGImportDlg: TSWAGImportDlg
250265
Left = 336
251266
Top = 256
252267
object actDisplayCategory: TAction
253-
Caption = 'S&how Snippets In Category'
268+
Caption = 'S&how Packets In Category'
254269
OnExecute = actDisplayCategoryExecute
255270
OnUpdate = actDisplayCategoryUpdate
256271
end
257-
object actDisplaySnippet: TAction
258-
Caption = '&Preview Selected Snippet...'
259-
OnExecute = actDisplaySnippetExecute
260-
OnUpdate = actDisplaySnippetUpdate
272+
object actDisplayPacket: TAction
273+
Caption = '&Preview Selected Packet...'
274+
OnExecute = actDisplayPacketExecute
275+
OnUpdate = actDisplayPacketUpdate
261276
end
262277
object actBrowse: TAction
263278
Caption = '...'

0 commit comments

Comments
 (0)