Debian Codegraph @

tools/castle-editor/components/formcastlecolorpicker.lfm

raw
1 object CastleColorPickerForm: TCastleColorPickerForm
2 Left = 760
3 Height = 579
4 Top = 264
5 Width = 346
6 Caption = 'Choose Color'
7 ClientHeight = 579
8 ClientWidth = 346
9 DesignTimePPI = 115
10 OnCreate = FormCreate
11 OnDestroy = FormDestroy
12 Position = poOwnerFormCenter
13 LCLVersion = '2.2.2.0'
14 object PanelCirclePicker: TPanel
15 AnchorSideLeft.Control = Owner
16 AnchorSideLeft.Side = asrCenter
17 AnchorSideTop.Control = Owner
18 Left = 16
19 Height = 267
20 Top = 10
21 Width = 314
22 BorderSpacing.Left = 10
23 BorderSpacing.Top = 10
24 BevelOuter = bvNone
25 ClientHeight = 267
26 ClientWidth = 314
27 TabOrder = 0
28 object HSPanelCirclePicker: THSCirclePicker
29 AnchorSideLeft.Control = PanelCirclePicker
30 AnchorSideTop.Control = PanelCirclePicker
31 AnchorSideBottom.Control = PanelCirclePicker
32 AnchorSideBottom.Side = asrCenter
33 Left = 0
34 Height = 265
35 Top = 0
36 Width = 256
37 SelectedColor = 66047
38 HintFormat = 'Hex #%hex'#10#13'RGB[%r, %g, %b]'#10#13'HSL[%hslH, %hslS, %hslL]'#10#13'HSV[%hsvH, %hsvS, %hsvV]'#10#13'CMYK[%c, %m, %y, %k]'#10#13'L*a*b*[%cieL, %cieA, %cieB]'#10#13'XYZ[%cieX, %cieY, %cieZ]'
39 Anchors = [akTop, akLeft, akBottom]
40 BorderSpacing.Right = 10
41 TabOrder = 0
42 Luminance = 128
43 Saturation = 254
44 OnChange = HSPanelCirclePickerChange
45 end
46 object VPanelColorPicker: TLVColorPicker
47 AnchorSideLeft.Control = HSPanelCirclePicker
48 AnchorSideLeft.Side = asrBottom
49 AnchorSideTop.Control = PanelCirclePicker
50 AnchorSideRight.Side = asrBottom
51 AnchorSideBottom.Control = PanelCirclePicker
52 AnchorSideBottom.Side = asrBottom
53 Left = 285
54 Height = 267
55 Top = 0
56 Width = 37
57 Layout = lyVertical
58 SelectionIndicator = siRect
59 Anchors = [akTop, akLeft, akBottom]
60 BorderSpacing.Left = 29
61 TabOrder = 1
62 OnChange = VPanelColorPickerChange
63 BrightnessMode = bmValue
64 LHintFormat = 'Luminance: %lum (selected)'
65 VHintFormat = 'Value: %value (selected)'
66 end
67 end
68 object PageControlColorModel: TPageControl
69 AnchorSideLeft.Control = Owner
70 AnchorSideTop.Side = asrBottom
71 AnchorSideRight.Control = Owner
72 AnchorSideRight.Side = asrBottom
73 AnchorSideBottom.Control = PanelAlpha
74 Left = 4
75 Height = 181
76 Top = 292
77 Width = 338
78 ActivePage = TabSheetRgb
79 Anchors = [akLeft, akRight, akBottom]
80 BorderSpacing.Left = 4
81 BorderSpacing.Top = 4
82 BorderSpacing.Right = 4
83 TabIndex = 0
84 TabOrder = 1
85 OnChange = PageControlColorModelChange
86 object TabSheetRgb: TTabSheet
87 Caption = 'RGB'
88 ClientHeight = 146
89 ClientWidth = 328
90 object RTabColorPickerRgb: TRColorPicker
91 AnchorSideLeft.Control = GLabelTitleRgb
92 AnchorSideLeft.Side = asrBottom
93 AnchorSideTop.Control = RSpinEditRgb
94 AnchorSideTop.Side = asrCenter
95 Left = 57
96 Height = 27
97 Top = 16
98 Width = 178
99 Layout = lyHorizontal
100 SelectionIndicator = siRect
101 Anchors = [akTop, akLeft, akRight]
102 BorderSpacing.Left = 4
103 BorderSpacing.Right = 4
104 TabOrder = 0
105 OnChange = RTabColorPickerRgbChange
106 Green = 0
107 Blue = 0
108 HintFormat = 'Red: %value (selected)'
109 end
110 object GTabColorPickerRgb: TGColorPicker
111 AnchorSideLeft.Control = GLabelTitleRgb
112 AnchorSideLeft.Side = asrBottom
113 AnchorSideTop.Control = GSpinEditRgb
114 AnchorSideTop.Side = asrCenter
115 Left = 57
116 Height = 27
117 Top = 59
118 Width = 178
119 SelectedColor = 8454016
120 Layout = lyHorizontal
121 SelectionIndicator = siRect
122 Anchors = [akTop, akLeft, akRight]
123 BorderSpacing.Left = 4
124 BorderSpacing.Right = 4
125 TabOrder = 2
126 OnChange = GTabColorPickerRgbChange
127 HintFormat = 'Green: %value (selected)'
128 end
129 object BTabColorPickerRgb: TBColorPicker
130 AnchorSideLeft.Control = GLabelTitleRgb
131 AnchorSideLeft.Side = asrBottom
132 AnchorSideTop.Control = BSpinEditRgb
133 AnchorSideTop.Side = asrCenter
134 Left = 57
135 Height = 27
136 Top = 102
137 Width = 178
138 SelectedColor = 16744576
139 Layout = lyHorizontal
140 SelectionIndicator = siRect
141 Anchors = [akTop, akLeft, akRight]
142 BorderSpacing.Left = 4
143 BorderSpacing.Right = 4
144 TabOrder = 4
145 OnChange = BTabColorPickerRgbChange
146 HintFormat = 'Blue: %value (selected)'
147 end
148 object RLabelTitleRgb: TLabel
149 AnchorSideLeft.Control = TabSheetRgb
150 AnchorSideTop.Control = RSpinEditRgb
151 AnchorSideTop.Side = asrCenter
152 Left = 4
153 Height = 21
154 Top = 19
155 Width = 31
156 BorderSpacing.Left = 4
157 BorderSpacing.Top = 10
158 Caption = 'Red'
159 ParentColor = False
160 end
161 object GLabelTitleRgb: TLabel
162 AnchorSideLeft.Control = TabSheetRgb
163 AnchorSideTop.Control = GSpinEditRgb
164 AnchorSideTop.Side = asrCenter
165 Left = 4
166 Height = 21
167 Top = 62
168 Width = 49
169 BorderSpacing.Left = 4
170 Caption = 'Green'
171 ParentColor = False
172 end
173 object BLabelTitleRgb: TLabel
174 AnchorSideLeft.Control = TabSheetRgb
175 AnchorSideTop.Control = BSpinEditRgb
176 AnchorSideTop.Side = asrCenter
177 Left = 4
178 Height = 21
179 Top = 105
180 Width = 36
181 BorderSpacing.Left = 4
182 Caption = 'Blue'
183 ParentColor = False
184 end
185 object RSpinEditRgb: TFloatSpinEdit
186 AnchorSideTop.Control = TabSheetRgb
187 AnchorSideRight.Control = TabSheetRgb
188 AnchorSideRight.Side = asrBottom
189 Left = 239
190 Height = 38
191 Top = 10
192 Width = 89
193 Anchors = [akTop, akRight]
194 BorderSpacing.Top = 10
195 Constraints.MinWidth = 89
196 DecimalPlaces = 3
197 Increment = 0.1
198 MaxValue = 1
199 OnChange = RSpinEditRgbChange
200 TabOrder = 1
201 end
202 object GSpinEditRgb: TFloatSpinEdit
203 AnchorSideTop.Control = RSpinEditRgb
204 AnchorSideTop.Side = asrBottom
205 AnchorSideRight.Control = TabSheetRgb
206 AnchorSideRight.Side = asrBottom
207 Left = 239
208 Height = 38
209 Top = 53
210 Width = 89
211 Anchors = [akTop, akRight]
212 BorderSpacing.Top = 5
213 Constraints.MinWidth = 89
214 DecimalPlaces = 3
215 Increment = 0.1
216 MaxValue = 1
217 OnChange = GSpinEditRgbChange
218 TabOrder = 3
219 end
220 object BSpinEditRgb: TFloatSpinEdit
221 AnchorSideTop.Control = GSpinEditRgb
222 AnchorSideTop.Side = asrBottom
223 AnchorSideRight.Control = TabSheetRgb
224 AnchorSideRight.Side = asrBottom
225 Left = 239
226 Height = 38
227 Top = 96
228 Width = 89
229 Anchors = [akTop, akRight]
230 BorderSpacing.Top = 5
231 Constraints.MinWidth = 89
232 DecimalPlaces = 3
233 Increment = 0.1
234 MaxValue = 1
235 OnChange = BSpinEditRgbChange
236 TabOrder = 5
237 end
238 end
239 object TabSheetHsv: TTabSheet
240 Caption = 'HSV'
241 ClientHeight = 146
242 ClientWidth = 328
243 object LabelTabHsvTitleH: TLabel
244 AnchorSideLeft.Control = TabSheetHsv
245 AnchorSideTop.Control = HSpinEditHsv
246 AnchorSideTop.Side = asrCenter
247 Left = 4
248 Height = 21
249 Top = 19
250 Width = 32
251 BorderSpacing.Left = 4
252 Caption = 'Hue'
253 ParentColor = False
254 end
255 object HTabColorPickerHsv: THColorPicker
256 AnchorSideLeft.Control = LabelTabHsvTitleS
257 AnchorSideLeft.Side = asrBottom
258 AnchorSideTop.Control = HSpinEditHsv
259 AnchorSideTop.Side = asrCenter
260 AnchorSideRight.Control = HSpinEditHsv
261 Left = 90
262 Height = 27
263 Top = 16
264 Width = 144
265 SelectedColor = 66047
266 SelectionIndicator = siRect
267 Anchors = [akTop, akLeft, akRight]
268 BorderSpacing.Left = 4
269 BorderSpacing.Right = 4
270 TabOrder = 0
271 OnChange = HTabColorPickerHsvChange
272 Luminance = 128
273 HintFormat = 'Hue: %value (selected)'
274 end
275 object STabColorPickerHsv: TSColorPicker
276 AnchorSideLeft.Control = LabelTabHsvTitleS
277 AnchorSideLeft.Side = asrBottom
278 AnchorSideTop.Control = SSpinEditHsv
279 AnchorSideTop.Side = asrCenter
280 AnchorSideRight.Control = SSpinEditHsv
281 Left = 90
282 Height = 27
283 Top = 59
284 Width = 145
285 SelectedColor = 66047
286 SelectionIndicator = siRect
287 Anchors = [akTop, akLeft, akRight]
288 BorderSpacing.Left = 4
289 BorderSpacing.Right = 4
290 TabOrder = 2
291 OnChange = STabColorPickerHsvChange
292 Luminance = 128
293 HintFormat = 'Saturation: %value (selected)'
294 end
295 object LabelTabHsvTitleS: TLabel
296 AnchorSideLeft.Control = LabelTabHsvTitleH
297 AnchorSideTop.Control = SSpinEditHsv
298 AnchorSideTop.Side = asrCenter
299 Left = 4
300 Height = 21
301 Top = 62
302 Width = 82
303 Caption = 'Saturation'
304 ParentColor = False
305 end
306 object LabelTabHsvTitleV: TLabel
307 AnchorSideLeft.Control = LabelTabHsvTitleH
308 AnchorSideTop.Control = VSpinEditHsv
309 AnchorSideTop.Side = asrCenter
310 Left = 4
311 Height = 21
312 Top = 105
313 Width = 45
314 Caption = 'Value'
315 ParentColor = False
316 end
317 object VTabColorPickerHsv: TLVColorPicker
318 AnchorSideLeft.Control = LabelTabHsvTitleS
319 AnchorSideLeft.Side = asrBottom
320 AnchorSideTop.Control = VSpinEditHsv
321 AnchorSideTop.Side = asrCenter
322 AnchorSideRight.Control = VSpinEditHsv
323 Left = 90
324 Height = 27
325 Top = 102
326 Width = 145
327 SelectionIndicator = siRect
328 Anchors = [akTop, akLeft, akRight]
329 BorderSpacing.Left = 4
330 BorderSpacing.Right = 4
331 TabOrder = 4
332 OnChange = VTabColorPickerHsvChange
333 BrightnessMode = bmValue
334 LHintFormat = 'Luminance: %lum (selected)'
335 VHintFormat = 'Value: %value (selected)'
336 end
337 object HSpinEditHsv: TFloatSpinEdit
338 AnchorSideTop.Control = TabSheetHsv
339 AnchorSideRight.Control = TabSheetHsv
340 AnchorSideRight.Side = asrBottom
341 Left = 238
342 Height = 38
343 Top = 10
344 Width = 90
345 Anchors = [akTop, akRight]
346 BorderSpacing.Top = 10
347 Constraints.MinWidth = 89
348 DecimalPlaces = 3
349 Increment = 0.5
350 MaxValue = 6
351 OnChange = HSpinEditHsvChange
352 TabOrder = 1
353 end
354 object SSpinEditHsv: TFloatSpinEdit
355 AnchorSideTop.Control = HSpinEditHsv
356 AnchorSideTop.Side = asrBottom
357 AnchorSideRight.Control = TabSheetHsv
358 AnchorSideRight.Side = asrBottom
359 Left = 239
360 Height = 38
361 Top = 53
362 Width = 89
363 Anchors = [akTop, akRight]
364 BorderSpacing.Top = 5
365 Constraints.MinWidth = 89
366 DecimalPlaces = 3
367 Increment = 0.1
368 MaxValue = 1
369 OnChange = SSpinEditHsvChange
370 TabOrder = 3
371 end
372 object VSpinEditHsv: TFloatSpinEdit
373 AnchorSideTop.Control = SSpinEditHsv
374 AnchorSideTop.Side = asrBottom
375 AnchorSideRight.Control = TabSheetHsv
376 AnchorSideRight.Side = asrBottom
377 Left = 239
378 Height = 38
379 Top = 96
380 Width = 89
381 Anchors = [akTop, akRight]
382 BorderSpacing.Top = 5
383 Constraints.MinWidth = 89
384 DecimalPlaces = 3
385 Increment = 0.1
386 MaxValue = 1
387 OnChange = VSpinEditHsvChange
388 TabOrder = 5
389 end
390 end
391 object TabSheetHex: TTabSheet
392 Caption = 'Hex'
393 ClientHeight = 146
394 ClientWidth = 328
395 object LabelTabHexTitleHex: TLabel
396 AnchorSideLeft.Control = TabSheetHex
397 AnchorSideTop.Control = EditHex
398 AnchorSideTop.Side = asrCenter
399 Left = 4
400 Height = 21
401 Top = 19
402 Width = 31
403 BorderSpacing.Left = 4
404 Caption = 'Hex'
405 ParentColor = False
406 end
407 object EditHex: TEdit
408 AnchorSideLeft.Control = LabelTabHexTitleHex
409 AnchorSideLeft.Side = asrBottom
410 AnchorSideTop.Control = TabSheetHex
411 AnchorSideRight.Control = ButtonCopy
412 Left = 45
413 Height = 38
414 Top = 10
415 Width = 213
416 Anchors = [akTop, akLeft, akRight]
417 BorderSpacing.Left = 10
418 BorderSpacing.Top = 10
419 BorderSpacing.Right = 10
420 ReadOnly = True
421 TabOrder = 0
422 end
423 object ButtonCopy: TButton
424 AnchorSideTop.Control = EditHex
425 AnchorSideTop.Side = asrCenter
426 AnchorSideRight.Control = TabSheetHex
427 AnchorSideRight.Side = asrBottom
428 Left = 268
429 Height = 37
430 Top = 11
431 Width = 56
432 Anchors = [akTop, akRight]
433 AutoSize = True
434 BorderSpacing.Right = 4
435 Caption = 'Copy'
436 OnClick = ButtonCopyClick
437 TabOrder = 1
438 end
439 end
440 object TabSheetPascalCode: TTabSheet
441 Caption = 'Pascal'
442 ClientHeight = 146
443 ClientWidth = 328
444 object MemoPascalCode: TMemo
445 AnchorSideLeft.Control = TabSheetPascalCode
446 AnchorSideTop.Control = TabSheetPascalCode
447 AnchorSideRight.Control = TabSheetPascalCode
448 AnchorSideRight.Side = asrBottom
449 AnchorSideBottom.Control = TabSheetPascalCode
450 AnchorSideBottom.Side = asrBottom
451 Left = 4
452 Height = 138
453 Top = 4
454 Width = 320
455 Anchors = [akTop, akLeft, akRight, akBottom]
456 BorderSpacing.Left = 4
457 BorderSpacing.Top = 4
458 BorderSpacing.Right = 4
459 BorderSpacing.Bottom = 4
460 Font.Pitch = fpFixed
461 ParentFont = False
462 ReadOnly = True
463 ScrollBars = ssAutoBoth
464 TabOrder = 0
465 WordWrap = False
466 end
467 end
468 end
469 object PanelAlpha: TPanel
470 AnchorSideLeft.Control = Owner
471 AnchorSideRight.Control = Owner
472 AnchorSideRight.Side = asrBottom
473 AnchorSideBottom.Control = ButtonPanel1
474 Left = 10
475 Height = 55
476 Top = 473
477 Width = 332
478 Anchors = [akLeft, akRight, akBottom]
479 BorderSpacing.Left = 10
480 BorderSpacing.Right = 4
481 BevelOuter = bvNone
482 ClientHeight = 55
483 ClientWidth = 332
484 TabOrder = 2
485 object LabelTitleAlpha: TLabel
486 AnchorSideLeft.Control = PanelAlpha
487 AnchorSideTop.Control = AlphaSpinEdit
488 AnchorSideTop.Side = asrCenter
489 Left = 0
490 Height = 21
491 Hint = 'Opacity'
492 Top = 17
493 Width = 46
494 Caption = 'Alpha'
495 ParentColor = False
496 end
497 object AlphaColorPicker: TLVColorPicker
498 AnchorSideLeft.Control = LabelTitleAlpha
499 AnchorSideLeft.Side = asrBottom
500 AnchorSideTop.Control = AlphaSpinEdit
501 AnchorSideTop.Side = asrCenter
502 AnchorSideRight.Control = AlphaSpinEdit
503 Left = 50
504 Height = 27
505 Top = 14
506 Width = 185
507 SelectionIndicator = siRect
508 Anchors = [akTop, akLeft, akRight]
509 BorderSpacing.Left = 4
510 BorderSpacing.Right = 4
511 TabOrder = 0
512 OnChange = AlphaColorPickerChange
513 BrightnessMode = bmValue
514 LHintFormat = 'Alpha: %lum (selected)'
515 VHintFormat = 'Value: %value (selected)'
516 end
517 object AlphaSpinEdit: TFloatSpinEdit
518 AnchorSideTop.Control = PanelAlpha
519 AnchorSideTop.Side = asrCenter
520 AnchorSideRight.Control = PanelAlpha
521 AnchorSideRight.Side = asrBottom
522 Left = 239
523 Height = 38
524 Top = 8
525 Width = 89
526 Anchors = [akTop, akRight]
527 BorderSpacing.Right = 4
528 Constraints.MinWidth = 89
529 DecimalPlaces = 3
530 Increment = 0.1
531 MaxValue = 1
532 OnChange = AlphaSpinEditChange
533 TabOrder = 1
534 Value = 1
535 end
536 end
537 object ButtonPanel1: TButtonPanel
538 Left = 7
539 Height = 37
540 Top = 535
541 Width = 332
542 BorderSpacing.Around = 7
543 OKButton.Name = 'OKButton'
544 OKButton.DefaultCaption = True
545 HelpButton.Name = 'HelpButton'
546 HelpButton.DefaultCaption = True
547 CloseButton.Name = 'CloseButton'
548 CloseButton.DefaultCaption = True
549 CancelButton.Name = 'CancelButton'
550 CancelButton.DefaultCaption = True
551 TabOrder = 4
552 ShowButtons = [pbClose]
553 ShowBevel = False
554 end
555 object ButtonRevert: TButton
556 AnchorSideLeft.Side = asrBottom
557 AnchorSideRight.Side = asrBottom
558 AnchorSideBottom.Side = asrBottom
559 Left = 7
560 Height = 37
561 Top = 535
562 Width = 70
563 Anchors = [akLeft, akBottom]
564 AutoSize = True
565 BorderSpacing.Right = 10
566 Caption = 'Revert'
567 OnClick = ButtonRevertClick
568 TabOrder = 3
569 end
570 object TimerMousePos: TTimer
571 Enabled = False
572 Interval = 100
573 OnTimer = TimerMousePosTimer
574 Left = 22
575 Top = 208
576 end
577 end