-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lfm
More file actions
547 lines (547 loc) · 13 KB
/
main.lfm
File metadata and controls
547 lines (547 loc) · 13 KB
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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
object VectorEditor: TVectorEditor
Left = 589
Height = 675
Top = 141
Width = 986
Caption = 'VectorEditor'
ClientHeight = 655
ClientWidth = 986
Color = clWhite
KeyPreview = True
Menu = MainMenu
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
LCLVersion = '1.6.0.4'
object PaintBox: TPaintBox
AnchorSideLeft.Control = ToolPanel
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = ColorPanel
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = VerticalScrollBar
AnchorSideBottom.Control = DebugPanel
Left = 145
Height = 468
Top = 84
Width = 821
Align = alCustom
Anchors = [akTop, akLeft, akRight, akBottom]
ParentColor = False
OnMouseDown = PaintBoxMouseDown
OnMouseMove = PaintBoxMouseMove
OnMouseUp = PaintBoxMouseUp
OnMouseWheelDown = PaintBoxMouseWheelDown
OnMouseWheelUp = PaintBoxMouseWheelUp
OnPaint = PaintBoxPaint
OnResize = PaintBoxResize
end
object ToolPanel: TPanel
Left = 0
Height = 655
Top = 0
Width = 145
Align = alLeft
BevelOuter = bvNone
ClientHeight = 655
ClientWidth = 145
Color = 16119285
ParentColor = False
TabOrder = 0
object ScaleFloatSpinEdit: TFloatSpinEdit
AnchorSideTop.Control = ToolButtonPanel
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = ToolButtonPanel
AnchorSideRight.Side = asrBottom
Left = 72
Height = 28
Top = 0
Width = 73
Alignment = taRightJustify
Anchors = [akTop, akRight]
AutoSelect = False
Font.Height = -15
Increment = 10
MaxValue = 1600
MinValue = 6.25
OnChange = ScaleFloatSpinEditChange
ParentFont = False
TabStop = False
TabOrder = 0
Value = 100
end
object ScaleLabel: TLabel
AnchorSideTop.Control = ToolButtonPanel
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = ScaleFloatSpinEdit
Left = -8
Height = 20
Top = 3
Width = 72
Alignment = taRightJustify
AutoSize = False
BorderSpacing.Top = 3
Caption = 'Масштаб'
Font.Height = -15
ParentColor = False
ParentFont = False
end
object PercentLabel: TLabel
AnchorSideLeft.Control = ScaleFloatSpinEdit
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = ToolButtonPanel
AnchorSideTop.Side = asrBottom
Left = 146
Height = 16
Top = 3
Width = 18
AutoSize = False
BorderSpacing.Left = 1
BorderSpacing.Top = 3
Caption = '%'
Font.Height = -15
ParentColor = False
ParentFont = False
Visible = False
end
object ParamPanel: TPanel
AnchorSideLeft.Control = ToolPanel
AnchorSideTop.Control = ScaleFloatSpinEdit
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = ToolPanel
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = ToolPanel
AnchorSideBottom.Side = asrBottom
Left = 0
Height = 627
Top = 28
Width = 145
Anchors = [akTop, akLeft, akRight, akBottom]
BevelOuter = bvNone
Color = 16119285
ParentColor = False
TabOrder = 1
end
object ToolButtonPanel: TPanel
AnchorSideLeft.Control = ToolPanel
AnchorSideTop.Control = ToolPanel
AnchorSideRight.Control = ToolPanel
AnchorSideRight.Side = asrBottom
Left = 0
Height = 0
Top = 0
Width = 145
Anchors = [akTop, akLeft, akRight]
AutoSize = True
BevelOuter = bvNone
Color = 16119285
ParentColor = False
TabOrder = 2
end
end
object HorizontalScrollBar: TScrollBar
AnchorSideLeft.Control = ToolPanel
AnchorSideLeft.Side = asrBottom
AnchorSideRight.Control = VerticalScrollBar
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 145
Height = 20
Top = 635
Width = 821
Anchors = [akLeft, akRight, akBottom]
Max = 0
PageSize = 1
TabOrder = 1
TabStop = False
OnChange = HorizontalScrollBarChange
end
object VerticalScrollBar: TScrollBar
AnchorSideLeft.Control = HorizontalScrollBar
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = HorizontalScrollBar
Left = 966
Height = 635
Top = 0
Width = 20
Anchors = [akTop, akRight, akBottom]
Kind = sbVertical
Max = 0
PageSize = 1
TabOrder = 2
TabStop = False
OnChange = VerticalScrollBarChange
end
object DebugPanel: TPanel
AnchorSideLeft.Control = ToolPanel
AnchorSideLeft.Side = asrBottom
AnchorSideRight.Control = VerticalScrollBar
AnchorSideBottom.Control = HorizontalScrollBar
Left = 145
Height = 83
Top = 552
Width = 821
Anchors = [akLeft, akRight, akBottom]
ClientHeight = 83
ClientWidth = 821
ParentColor = False
TabOrder = 3
Visible = False
object OffsetXLabel: TLabel
Left = 8
Height = 15
Top = 16
Width = 67
Caption = 'OffsetXLabel'
ParentColor = False
end
object OffsetYLabel: TLabel
Left = 8
Height = 15
Top = 32
Width = 67
Caption = 'OffsetYLabel'
ParentColor = False
end
object OffsetLabel: TLabel
Left = 8
Height = 15
Top = 1
Width = 35
Caption = 'Offset:'
ParentColor = False
end
object MouseDspLabel: TLabel
Left = 328
Height = 15
Top = 1
Width = 59
Caption = 'MouseDsp:'
ParentColor = False
end
object MouseXDspLabel: TLabel
Left = 328
Height = 15
Top = 12
Width = 91
Caption = 'MouseXDspLabel'
ParentColor = False
end
object MouseYDspLabel: TLabel
Left = 328
Height = 15
Top = 25
Width = 91
Caption = 'MouseYDspLabel'
ParentColor = False
end
object MouseWrldLabel: TLabel
Left = 432
Height = 15
Top = 1
Width = 89
Caption = 'MouseWrldLabel'
ParentColor = False
end
object MouseXWrldLabel: TLabel
Left = 432
Height = 15
Top = 12
Width = 96
Caption = 'MouseXWrldLabel'
ParentColor = False
end
object MouseYWrldLabel: TLabel
Left = 432
Height = 15
Top = 25
Width = 96
Caption = 'MouseYWrldLabel'
ParentColor = False
end
object ImageBoundsLabel: TLabel
Left = -50
Height = 15
Top = 1
Width = 101
Anchors = [akTop]
Caption = 'ImageBoundsLabel'
ParentColor = False
end
object ImageBoundsX: TLabel
Left = 96
Height = 15
Top = 16
Width = 80
Caption = 'ImageBoundsX'
ParentColor = False
end
object ImageBoundsY: TLabel
Left = 97
Height = 15
Top = 32
Width = 80
Caption = 'ImageBoundsY'
ParentColor = False
end
object ScrollbarsLabel: TLabel
Left = 208
Height = 15
Top = 1
Width = 79
Caption = 'ScrollbarsLabel'
ParentColor = False
end
object ScrollbarMinLabel: TLabel
Left = 208
Height = 15
Top = 16
Width = 95
Caption = 'ScrollbarMinLabel'
ParentColor = False
end
object ScrollbarMaxLabel: TLabel
Left = 210
Height = 15
Top = 45
Width = 96
Caption = 'ScrollbarMaxLabel'
ParentColor = False
end
object ScrollbarPosLabel: TLabel
Left = 210
Height = 15
Top = 32
Width = 93
Caption = 'ScrollbarPosLabel'
ParentColor = False
end
object Buffercaption: TLabel
Left = 544
Height = 15
Top = 2
Width = 72
Caption = 'Buffercaption'
ParentColor = False
end
object BufferCurrent: TLabel
Left = 544
Height = 15
Top = 16
Width = 72
Caption = 'BufferCurrent'
ParentColor = False
end
object BufferStart: TLabel
Left = 545
Height = 15
Top = 32
Width = 56
Caption = 'BufferStart'
ParentColor = False
end
object BufferEnd: TLabel
Left = 544
Height = 15
Top = 42
Width = 52
Caption = 'BufferEnd'
ParentColor = False
end
object BufferSaved: TLabel
Left = 545
Height = 15
Top = 58
Width = 63
Caption = 'BufferSaved'
ParentColor = False
end
end
object ColorPanel: TPanel
AnchorSideLeft.Control = ToolPanel
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = Owner
AnchorSideRight.Control = VerticalScrollBar
Left = 145
Height = 84
Top = 0
Width = 821
Anchors = [akTop, akLeft, akRight]
ClientHeight = 84
ClientWidth = 821
ParentColor = False
TabOrder = 4
object PaletteGrid: TDrawGrid
Left = 80
Height = 84
Top = 0
Width = 210
AutoEdit = False
ColCount = 10
DefaultColWidth = 21
DefaultDrawing = False
DefaultRowHeight = 21
ExtendedSelect = False
FixedCols = 0
FixedRows = 0
Flat = True
ParentColor = True
RowCount = 4
ScrollBars = ssNone
TabAdvance = aaNone
TabOrder = 0
TabStop = False
OnDblClick = PaletteGridDblClick
OnDrawCell = PaletteGridDrawCell
OnMouseDown = PaletteGridMouseDown
end
object BrushColorPanel: TPanel
Left = 24
Height = 50
Top = 24
Width = 50
Color = clWhite
ParentColor = False
TabOrder = 1
end
object PenColorPanel: TPanel
Left = 5
Height = 50
Top = 5
Width = 50
Color = clBlack
ParentColor = False
TabOrder = 2
end
end
object MainMenu: TMainMenu
left = 776
top = 112
object FileMenuItem: TMenuItem
Caption = 'Файл'
object OpenFileMenuItem: TMenuItem
Action = OpenFileAction
Caption = 'Открыть'
end
object SaveFileMenuItem: TMenuItem
Action = SaveFileAction
Caption = 'Сохранить'
end
object SaveFileAsMenuItem: TMenuItem
Action = SaveFileAsAction
Caption = 'Сохранить как'
end
object ShowEverythingMenuItem: TMenuItem
Action = ShowEverythigAction
Caption = 'Показать всё'
end
object ClearMenuItem: TMenuItem
Action = ClearFigures
Caption = 'Очистить'
end
object FileDividerMenuItem: TMenuItem
Caption = '-'
end
object ExitMenuItem: TMenuItem
Caption = 'Выйти'
OnClick = ExitMenuItemClick
end
end
object EditMenuItem: TMenuItem
Caption = 'Правка'
OnClick = EditMenuItemClick
object UndoMenuItem: TMenuItem
Action = UndoAction
end
object RedoMenuItem: TMenuItem
Action = RedoAction
end
end
object HelpMenuItem: TMenuItem
Caption = 'Помощь'
object AboutMenuItem: TMenuItem
Caption = 'О программе'
OnClick = AboutMenuItemClick
end
end
end
object ColorDialog: TColorDialog
Color = clBlack
CustomColors.Strings = (
'ColorA=000000'
'ColorB=000080'
'ColorC=008000'
'ColorD=008080'
'ColorE=800000'
'ColorF=800080'
'ColorG=808000'
'ColorH=808080'
'ColorI=C0C0C0'
'ColorJ=0000FF'
'ColorK=00FF00'
'ColorL=00FFFF'
'ColorM=FF0000'
'ColorN=FF00FF'
'ColorO=FFFF00'
'ColorP=FFFFFF'
'ColorQ=C0DCC0'
'ColorR=F0CAA6'
'ColorS=F0FBFF'
'ColorT=A4A0A0'
)
left = 736
top = 112
end
object ActionList: TActionList
left = 320
top = 168
object SaveFileAction: TAction
Caption = 'SaveFileAction'
OnExecute = SaveFileActionExecute
ShortCut = 16467
end
object OpenFileAction: TAction
Caption = 'OpenFileAction'
OnExecute = OpenFileActionExecute
ShortCut = 16463
end
object SaveFileAsAction: TAction
Caption = 'SaveFileAsAction'
OnExecute = SaveFileAsActionExecute
end
object ClearFigures: TAction
Caption = 'ClearFigures'
OnExecute = ClearFiguresExecute
end
object UndoAction: TAction
Caption = 'Отмена'
OnExecute = UndoActionExecute
ShortCut = 16474
end
object RedoAction: TAction
Caption = 'Повтор'
OnExecute = RedoActionExecute
ShortCut = 16473
end
object ShowEverythigAction: TAction
Caption = 'ShowEverythigAction'
OnExecute = ShowEverythigActionExecute
end
end
object SaveFileDialog: TSaveDialog
DefaultExt = '.vgi'
Filter = 'Default|*.vgi'
InitialDir = 'C:\programming\Pascal\Alpha-Vector-Editor\'
Options = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
left = 192
top = 168
end
object OpenFileDialog: TOpenDialog
DefaultExt = '.vgi'
Filter = 'Default|*.vgi'
Options = [ofPathMustExist, ofFileMustExist, ofEnableSizing, ofViewDetail]
left = 248
top = 168
end
end