2
// This unit is part of the GLScene Engine https://github.com/glscene
5
Register TGLXCollection property editor
8
20/05/10 - Yar - Fixes for Linux x64
9
11/11/09 - DaStr - Improved FPC compatibility
10
(thanks Predator) (BugtrackerID = 2893580)
11
03/07/04 - LR - Removed ..\ from the GLScene.inc
12
16/04/00 - Egg - Creation
15
unit RegisterXCollection;
22
Classes, GLXCollection,
23
componenteditors, propedits;
27
// TGLXCollectionProperty
29
TGLXCollectionProperty = class(TClassProperty)
32
function GetAttributes: TPropertyAttributes; override;
33
procedure Edit; override;
38
// ------------------------------------------------------------------
39
// ------------------------------------------------------------------
40
// ------------------------------------------------------------------
42
// ------------------------------------------------------------------
43
// ------------------------------------------------------------------
44
// ------------------------------------------------------------------
45
uses FXCollectionEditor;
50
RegisterPropertyEditor(TypeInfo(TGLXCollection), nil, '', TGLXCollectionProperty);
53
//----------------- TGLXCollectionProperty ------------------------------------
57
function TGLXCollectionProperty.GetAttributes: TPropertyAttributes;
64
procedure TGLXCollectionProperty.Edit;
66
with XCollectionEditor do begin
67
SetXCollection(TGLXCollection(GetObjectValue));
72
// ------------------------------------------------------------------
73
// ------------------------------------------------------------------
74
// ------------------------------------------------------------------
76
// ------------------------------------------------------------------
77
// ------------------------------------------------------------------
78
// ------------------------------------------------------------------
80
// class registrations