Debian Codegraph @

tools/castle-editor/components/castleeditorpropedits.pas

raw
1 {
2 Copyright 2010-2023 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Property and component editors using LCL and internal to CGE editor. }
17 unit CastleEditorPropEdits;
18
19 {$I castleconf.inc}
20
21 interface
22
23 uses Classes, PropEdits, Forms, CastleColors, CastleTransform, CastlePropEdits;
24
25 {$define read_interface}
26 {$I castleeditorpropedits_color.inc}
27 {$I castleeditorpropedits_physics_layer.inc}
28 {$undef read_interface}
29
30 procedure Register;
31
32 implementation
33
34 uses // FPC and LCL units
35 SysUtils, TypInfo, Controls,
36 // Lazarus design-time (IDE) units
37 ComponentEditors,
38 // CGE units
39 FormCastleColorPicker, FormLayerCollisionsPropertyEditor,
40 FormPhysicsLayerNamesPropertyEditor, CastleStringUtils;
41
42 {$define read_implementation}
43 {$I castleeditorpropedits_color.inc}
44 {$I castleeditorpropedits_physics_layer.inc}
45
46 procedure Register;
47 begin
48 RegisterPropertyEditor(TypeInfo(TCastleColorPersistent), nil, '',
49 TCastleColorPropertyEditor);
50 RegisterPropertyEditor(TypeInfo(TCastleColorRGBPersistent), nil, '',
51 TCastleColorRGBPropertyEditor);
52
53 RegisterPropertyEditor(TypeInfo(TPhysicsLayer), nil, '',
54 TPhysicsLayerPropertyEditor);
55 RegisterPropertyEditor(TypeInfo(TCastleLayerCollisions), nil, '',
56 TPhysicsLayerCollisionsPropertyEditor);
57 RegisterPropertyEditor(TypeInfo(TCastleLayerNames), nil, '',
58 TPhysicsLayerNamesPropertyEditor);
59 end;
60
61 end.