-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathfTLangTool.fmx
406 lines (406 loc) · 13.2 KB
/
fTLangTool.fmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
object FormTLangTool: TFormTLangTool
Left = 0
Top = 0
Caption = 'LangTool'
ClientHeight = 618
ClientWidth = 1083
FormFactor.Width = 1440
FormFactor.Height = 900
FormFactor.Devices = [Desktop]
OnCreate = FormCreate
DesignerMasterStyle = 0
object TopToolBar: TToolBar
Anchors = []
Size.Width = 1083.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
object ToolBarLabel: TLabel
Action = TitleAction
Align = Contents
Enabled = True
StyledSettings = [Family, Style]
Size.Width = 1083.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'toollabel'
TextSettings.Font.Size = 16.000000000000000000
TextSettings.FontColor = claBrown
TextSettings.HorzAlign = Center
Text = 'LangTool by oMAR'
end
object btnBack: TSpeedButton
Action = PreviousTabAction1
Align = MostLeft
Enabled = True
ImageIndex = -1
Size.Width = 65.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'backtoolbutton'
end
object btnNext: TSpeedButton
Action = NextTabAction1
Align = MostRight
Enabled = True
ImageIndex = -1
Position.X = 1039.000000000000000000
Size.Width = 44.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'nexttoolbutton'
end
end
object TabControl1: TTabControl
Align = Client
FullSize = True
Size.Width = 1083.000000000000000000
Size.Height = 530.000000000000000000
Size.PlatformDefault = False
TabHeight = 49.000000000000000000
TabIndex = 0
TabOrder = 1
TabPosition = None
Sizes = (
1083s
530s
1083s
530s)
object TabItem1: TTabItem
CustomIcon = <
item
end>
IsSelected = True
Size.Width = 8.000000000000000000
Size.Height = 8.000000000000000000
Size.PlatformDefault = False
StyleLookup = ''
TabOrder = 0
Text = 'Caption Tab Item #1'
ExplicitSize.cx = 8.000000000000000000
ExplicitSize.cy = 8.000000000000000000
object layoutTopLangPg1: TLayout
Align = Top
Size.Width = 1083.000000000000000000
Size.Height = 97.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
OnClick = btnClearAllClick
object btnLoadLngFile: TButton
Position.X = 135.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 7
Text = 'Load lng file'
OnClick = btnLoadLngFileClick
end
object Lang1: TLang
StoreInForm = False
Lang = 'pt'
Left = 216
Top = 152
end
object btnPasteLanguage: TButton
Position.X = 527.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 120.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 8
Text = 'Paste transl. strings'
OnClick = btnPasteLanguageClick
end
object btnSaveFileAs: TButton
Position.X = 263.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
Text = 'Save lng file'
OnClick = btnSaveFileAsClick
end
object btnClearAll: TButton
Position.X = 7.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 6
Text = 'Clear All'
OnClick = btnClearAllClick
end
object btnAddLanguage: TButton
Position.X = 7.000000000000000000
Position.Y = 37.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 5
Text = 'Add Language..'
OnClick = btnAddLanguageClick
end
object btnCopyTextsToClipboard: TButton
Position.X = 399.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 120.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 1
Text = 'Copy original texts'
OnClick = btnCopyTextsToClipboardClick
end
object btnDelLanguage: TButton
Position.X = 135.000000000000000000
Position.Y = 37.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 4
Text = 'Delete column'
OnClick = btnDelLanguageClick
end
object labHeaderLangTool: TLabel
Position.X = 328.000000000000000000
Position.Y = 66.000000000000000000
Size.Width = 361.000000000000000000
Size.Height = 25.000000000000000000
Size.PlatformDefault = False
Text = '...'
TabOrder = 9
end
object btnTestTrans: TButton
Position.X = 8.000000000000000000
Position.Y = 68.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 3
Text = 'test translation'
OnClick = btnTestTransClick
end
object btnOpenOldEditor: TButton
Position.X = 263.000000000000000000
Position.Y = 37.000000000000000000
Size.Width = 114.000000000000000000
Size.Height = 23.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
Text = 'Open IDE editor'
Visible = False
OnClick = btnOpenOldEditorClick
end
object edTranslationTest: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
TabOrder = 10
Text = 'Yes'
Position.X = 128.000000000000000000
Position.Y = 68.000000000000000000
Size.Width = 177.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
end
end
object TransGrid: TStringGrid
Align = Client
CanFocus = True
ClipChildren = True
Size.Width = 1083.000000000000000000
Size.Height = 433.000000000000000000
Size.PlatformDefault = False
TabOrder = 1
RowCount = 1000
Viewport.Width = 1063.000000000000000000
Viewport.Height = 392.000000000000000000
object StringColumn1: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn2: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn3: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn4: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn5: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn6: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn7: TStringColumn
Size.Width = 150.000000000000000000
end
object StringColumn8: TStringColumn
end
object StringColumn9: TStringColumn
end
object StringColumn10: TStringColumn
end
object StringColumn11: TStringColumn
end
object StringColumn12: TStringColumn
end
object StringColumn13: TStringColumn
end
object StringColumn14: TStringColumn
end
object StringColumn15: TStringColumn
end
end
end
object TabItem2: TTabItem
CustomIcon = <
item
end>
IsSelected = False
Size.Width = 8.000000000000000000
Size.Height = 8.000000000000000000
Size.PlatformDefault = False
StyleLookup = ''
TabOrder = 0
Text = 'Caption Tab Item #2'
ExplicitSize.cx = 8.000000000000000000
ExplicitSize.cy = 8.000000000000000000
object rectAboutLangTool: TRectangle
Anchors = []
Fill.Color = claBlack
Position.X = 379.538269042968800000
Position.Y = 34.710617065429690000
Size.Width = 313.000000000000000000
Size.Height = 281.000000000000000000
Size.PlatformDefault = False
XRadius = 15.000000000000000000
YRadius = 15.000000000000000000
object labVersion: TLabel
StyledSettings = [Family, Style]
Position.X = 32.000000000000000000
Position.Y = 48.000000000000000000
Size.Width = 257.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
TextSettings.FontColor = claWhite
TextSettings.HorzAlign = Center
Text = 'LangTool ver 1.0'
TabOrder = 0
end
object Label1: TLabel
StyledSettings = [Family, Style]
Position.X = 32.000000000000000000
Position.Y = 80.000000000000000000
Size.Width = 257.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
TextSettings.FontColor = claWhite
TextSettings.HorzAlign = Center
Text = 'by oMAR'
TabOrder = 1
end
object linkGit: TLabel
StyledSettings = [Family, Style]
Position.X = -16.000000000000000000
Position.Y = 128.000000000000000000
Size.Width = 345.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
TextSettings.FontColor = claWhite
TextSettings.HorzAlign = Center
Text = 'www.github.com/omarreis/LangTool'
TabOrder = 2
end
object Label2: TLabel
StyledSettings = [Family, Style]
Position.X = 32.000000000000000000
Position.Y = 152.000000000000000000
Size.Width = 249.000000000000000000
Size.Height = 89.000000000000000000
Size.PlatformDefault = False
TextSettings.FontColor = claWhite
TextSettings.HorzAlign = Center
Text = 'Delphi TLang *.lng file editor for software localizaton'
TabOrder = 3
end
end
end
end
object BottomToolBar: TToolBar
Align = Bottom
Anchors = [akLeft]
Position.Y = 574.000000000000000000
Size.Width = 1083.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'bottomtoolbar'
TabOrder = 2
object Label3: TLabel
StyledSettings = [Family, Size]
Position.X = 16.000000000000000000
Position.Y = 16.000000000000000000
Size.Width = 529.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.StyleExt = {04070000000000000004000000}
TextSettings.FontColor = claBlue
Text = 'check https://github.com/omarreis/LangTool'
TabOrder = 1
end
object btnOk: TButton
Anchors = [akTop, akRight]
ModalResult = 1
Position.X = 988.000000000000000000
Position.Y = 8.000000000000000000
TabOrder = 4
Text = 'Ok'
end
object btnCancel: TButton
Anchors = [akTop, akRight]
ModalResult = 2
Position.X = 900.000000000000000000
Position.Y = 8.000000000000000000
TabOrder = 3
Text = 'Cancel'
end
object labVersion2: TLabel
Position.X = 384.000000000000000000
Position.Y = 16.000000000000000000
Text = 'v 1.1'
end
end
object SaveDialog1: TSaveDialog
DefaultExt = 'LNG'
Filter = 'TLang LNG format|*.lng'
Left = 216
Top = 216
end
object OpenDialog1: TOpenDialog
DefaultExt = 'LNG'
Filter = 'TLang LNG format|*.lng'
Left = 216
Top = 272
end
object ActionList1: TActionList
Left = 472
Top = 208
object TitleAction: TControlAction
Category = 'Tab'
Text = 'TitleAction'
OnUpdate = TitleActionUpdate
end
object PreviousTabAction1: TPreviousTabAction
Category = 'Tab'
TabControl = TabControl1
ShortCut = 137
end
object NextTabAction1: TNextTabAction
Category = 'Tab'
TabControl = TabControl1
end
end
end