-
Notifications
You must be signed in to change notification settings - Fork 0
/
ufmmain.lfm
executable file
·464 lines (464 loc) · 9.85 KB
/
ufmmain.lfm
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
object fmMain: TfmMain
Left = 445
Height = 517
Top = 143
Width = 830
Caption = 'Оцифровка линий от сканированного изображения'
ClientHeight = 517
ClientWidth = 830
OnCreate = FormCreate
OnDestroy = FormDestroy
LCLVersion = '2.0.8.0'
object GroupBox1: TGroupBox
Left = 80
Height = 35
Top = 24
Width = 273
Caption = 'Координаты курсора в пикселах изображения'
ClientHeight = 17
ClientWidth = 269
TabOrder = 1
object Label1: TLabel
Left = 16
Height = 13
Top = 0
Width = 10
Caption = 'X:'
ParentColor = False
end
object edX: TEdit
Left = 32
Height = 21
Top = -4
Width = 80
TabOrder = 0
end
object Label2: TLabel
Left = 128
Height = 13
Top = 0
Width = 10
Caption = 'Y:'
ParentColor = False
end
object edY: TEdit
Left = 160
Height = 21
Top = -4
Width = 80
TabOrder = 1
end
end
object bnChangeImage: TBitBtn
Left = 734
Height = 30
Top = 13
Width = 75
Action = aiNewImage
Anchors = [akTop, akRight]
OnClick = aiChangeImageClick
TabOrder = 0
end
object Label3: TLabel
Left = 757
Height = 26
Top = 52
Width = 61
Anchors = [akTop, akRight]
Caption = 'Разрешение'#13#10' DPI'
ParentColor = False
end
object edDPI: TEdit
Left = 742
Height = 21
Top = 80
Width = 80
Anchors = [akTop, akRight]
TabOrder = 2
Text = '600'
end
object GroupBox2: TGroupBox
Left = 24
Height = 78
Top = 413
Width = 196
Anchors = [akLeft, akBottom]
Caption = 'Параметры оси X'
ClientHeight = 60
ClientWidth = 192
TabOrder = 3
object Label4: TLabel
Left = 22
Height = 13
Top = 3
Width = 37
Anchors = [akLeft, akBottom]
Caption = 'Начало'
ParentColor = False
end
object Label5: TLabel
Left = 136
Height = 13
Top = 3
Width = 31
Anchors = [akLeft, akBottom]
Caption = 'Конец'
ParentColor = False
end
object edStartX: TEdit
Left = 22
Height = 21
Top = 19
Width = 80
Anchors = [akLeft, akBottom]
Enabled = False
ReadOnly = True
TabOrder = 0
end
object Label6: TLabel
Left = 8
Height = 13
Top = 19
Width = 10
Anchors = [akLeft, akBottom]
Caption = 'X:'
ParentColor = False
end
object Label7: TLabel
Left = 8
Height = 13
Top = 40
Width = 10
Anchors = [akLeft, akBottom]
Caption = 'Y:'
ParentColor = False
end
object edStartY: TEdit
Left = 23
Height = 21
Top = 40
Width = 79
Anchors = [akLeft, akBottom]
Enabled = False
ReadOnly = True
TabOrder = 1
end
object edAxisY2: TEdit
Left = 111
Height = 21
Top = 21
Width = 79
TabOrder = 2
end
object edEndX: TEdit
Left = 110
Height = 21
Top = 19
Width = 80
Anchors = [akLeft, akBottom]
Enabled = False
ReadOnly = True
TabOrder = 3
end
object edEndY: TEdit
Left = 110
Height = 21
Top = 41
Width = 79
Anchors = [akLeft, akBottom]
Enabled = False
ReadOnly = True
TabOrder = 4
end
object bnSetXaxis: TButton
Left = 66
Height = 23
Top = -6
Width = 59
Anchors = [akLeft, akBottom]
Caption = 'Set'
Enabled = False
OnClick = aiSetXaxisClick
TabOrder = 5
end
end
object UnitsGroup: TRadioGroup
Left = 741
Height = 72
Top = 111
Width = 78
Anchors = [akTop, akRight]
AutoFill = True
Caption = 'Единицы'
ChildSizing.LeftRightSpacing = 6
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1
ClientHeight = 54
ClientWidth = 74
ItemIndex = 0
Items.Strings = (
'pixels'
'mm'
)
OnClick = UnitsGroupClick
TabOrder = 4
end
object GroupBox3: TGroupBox
Left = 360
Height = 51
Top = 429
Width = 217
Anchors = [akLeft, akBottom]
Caption = 'Координаты цифруемой точки'
ClientHeight = 33
ClientWidth = 213
TabOrder = 5
object Label8: TLabel
Left = 11
Height = 13
Top = 9
Width = 10
Anchors = [akLeft, akBottom]
Caption = 'X:'
ParentColor = False
end
object edXpoint: TEdit
Left = 28
Height = 21
Top = 6
Width = 80
Anchors = [akLeft, akBottom]
ReadOnly = True
TabOrder = 0
end
object Label9: TLabel
Left = 112
Height = 13
Top = 10
Width = 10
Anchors = [akLeft, akBottom]
Caption = 'Y:'
ParentColor = False
end
object edYpoint: TEdit
Left = 129
Height = 21
Top = 6
Width = 80
Anchors = [akLeft, akBottom]
ReadOnly = True
TabOrder = 1
end
end
object bnSaveToClipboard: TButton
Left = 623
Height = 25
Top = 406
Width = 115
Action = aiSaveToClipboard
Anchors = [akLeft, akBottom]
OnClick = aiSaveToClipboardClick
TabOrder = 6
end
object bnNewLine: TButton
Left = 624
Height = 25
Top = 438
Width = 75
Action = aiNewLine
Anchors = [akLeft, akBottom]
OnClick = aiNewLineClick
TabOrder = 7
end
object bnDeleteLastPoint: TButton
Left = 625
Height = 25
Top = 466
Width = 99
Action = aiDeleteLastPoint
Anchors = [akLeft, akBottom]
OnClick = aiDeleteLastPointClick
TabOrder = 8
end
object bnUpdateImage: TButton
Left = 561
Height = 25
Top = 26
Width = 127
Caption = 'Update Image'
OnClick = bnUpdateImageClick
TabOrder = 9
Visible = False
end
object sbImage: TScrollBox
Left = 36
Height = 336
Top = 65
Width = 668
HorzScrollBar.Page = 90
VertScrollBar.Page = 90
Anchors = [akTop, akLeft, akRight, akBottom]
ClientHeight = 332
ClientWidth = 664
TabOrder = 10
object Image1: TImage
Cursor = crCross
Left = 0
Height = 90
Top = 0
Width = 90
OnClick = Image1Click
OnMouseMove = Image1MouseMove
PopupMenu = PopupMenu1
Proportional = True
end
end
object Label10: TLabel
Left = 740
Height = 13
Top = 191
Width = 25
Caption = 'Scale'
ParentColor = False
end
object sedScale: TSpinEdit
Left = 732
Height = 21
Top = 213
Width = 60
MaxValue = 4
MinValue = 1
TabOrder = 11
Value = 1
end
object bnChangeScale: TButton
Left = 731
Height = 25
Top = 243
Width = 75
Action = aiNewScale
OnClick = aiChangeScaleClick
TabOrder = 12
end
object Label11: TLabel
Left = 54
Height = 13
Top = 4
Width = 54
Caption = 'Имя файла'
ParentColor = False
end
object edFileName: TEdit
Left = 119
Height = 21
Top = 4
Width = 299
ReadOnly = True
TabStop = False
TabOrder = 13
end
object edTest: TEdit
Left = 368
Height = 21
Top = 32
Width = 80
TabOrder = 14
Text = 'edTest'
end
object StatusBar: TStatusBar
Left = 0
Height = 23
Top = 494
Width = 830
Panels = <
item
Width = 50
end
item
Text = 'start'
Width = 100
end
item
Width = 50
end>
SimplePanel = False
end
object bnSaveOx: TBitBtn
Left = 240
Height = 25
Top = 416
Width = 64
Caption = 'Save Ox'
OnClick = bnSaveOxClick
TabOrder = 16
end
object bnClearOx: TBitBtn
Left = 240
Height = 25
Top = 448
Width = 64
Caption = 'Clear Ox'
OnClick = bnClearOxClick
TabOrder = 17
end
object OpenDlg: TOpenDialog
left = 456
top = 8
end
object ActionList1: TActionList
left = 228
top = 157
object aiNewImage: TAction
Category = 'FileAction'
Caption = 'New Image'
OnExecute = aiChangeImageClick
end
object aiNewScale: TAction
Category = 'ScaleAction'
Caption = 'Change Scale'
OnExecute = aiChangeScaleClick
end
object aiSetX: TAction
Category = 'ScaleAction'
Caption = 'Set X'
OnExecute = aiSetXaxisClick
end
object aiNewLine: TAction
Category = 'PointsAction'
Caption = 'New Line'
OnExecute = aiNewLineClick
ShortCut = 16462
end
object aiDeleteLastPoint: TAction
Category = 'PointsAction'
Caption = 'Delete Last Point'
OnExecute = aiDeleteLastPointClick
end
object aiSaveToClipboard: TAction
Category = 'PointsAction'
Caption = 'Save To Clipboard'
OnExecute = aiSaveToClipboardClick
ShortCut = 16467
end
end
object PopupMenu1: TPopupMenu
left = 376
top = 150
object MenuItem1: TMenuItem
Action = aiDeleteLastPoint
end
object MenuItem2: TMenuItem
Action = aiNewLine
end
object MenuItem4: TMenuItem
Action = aiSaveToClipboard
end
object MenuItem5: TMenuItem
Action = aiNewScale
end
end
end