@@ -17,15 +17,14 @@ interface
17
17
the types and allows the use of the constructors e.g. ActionList()
18
18
}
19
19
TPyDelphiCustomActionList = class (TPyDelphiContainedActionList)
20
- private
21
- function GetDelphiObject : TCustomActionList;
22
- procedure SetDelphiObject (const Value : TCustomActionList);
23
- public
24
- class function DelphiObjectClass : TClass; override;
25
- property DelphiObject: TCustomActionList read GetDelphiObject
26
- write SetDelphiObject;
27
- end ;
28
-
20
+ private
21
+ function GetDelphiObject : TCustomActionList;
22
+ procedure SetDelphiObject (const Value : TCustomActionList);
23
+ public
24
+ class function DelphiObjectClass : TClass; override;
25
+ property DelphiObject: TCustomActionList read GetDelphiObject
26
+ write SetDelphiObject;
27
+ end ;
29
28
TPyDelphiActionList = class (TPyDelphiCustomActionList)
30
29
private
31
30
function GetDelphiObject : TActionList;
@@ -38,23 +37,22 @@ TPyDelphiActionList = class (TPyDelphiCustomActionList)
38
37
end ;
39
38
40
39
TPyDelphiCustomAction = class (TPyDelphiContainedAction)
41
- private
42
- function GetDelphiObject : TCustomAction;
43
- procedure SetDelphiObject (const Value : TCustomAction);
44
- public
45
- class function DelphiObjectClass : TClass; override;
46
- property DelphiObject: TCustomAction read GetDelphiObject
47
- write SetDelphiObject;
48
- end ;
49
-
50
- TPyDelphiAction = class (TPyDelphiContainedAction)
51
- private
52
- function GetDelphiObject : TAction;
53
- procedure SetDelphiObject (const Value : TAction);
54
- public
55
- class function DelphiObjectClass : TClass; override;
56
- property DelphiObject: TAction read GetDelphiObject write SetDelphiObject;
57
- end ;
40
+ private
41
+ function GetDelphiObject : TCustomAction;
42
+ procedure SetDelphiObject (const Value : TCustomAction);
43
+ public
44
+ class function DelphiObjectClass : TClass; override;
45
+ property DelphiObject: TCustomAction read GetDelphiObject
46
+ write SetDelphiObject;
47
+ end ;
48
+ TPyDelphiAction = class (TPyDelphiContainedAction)
49
+ private
50
+ function GetDelphiObject : TAction;
51
+ procedure SetDelphiObject (const Value : TAction);
52
+ public
53
+ class function DelphiObjectClass : TClass; override;
54
+ property DelphiObject: TAction read GetDelphiObject write SetDelphiObject;
55
+ end ;
58
56
59
57
implementation
60
58
@@ -79,26 +77,23 @@ procedure TActnListRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrap
79
77
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomActionList);
80
78
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiActionList);
81
79
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomAction);
82
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiAction);
80
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiAction);
83
81
end ;
84
82
85
83
{ TPyDelphiCustomActionList }
86
- class function TPyDelphiCustomActionList.DelphiObjectClass : TClass;
87
- begin
88
- Result := TCustomActionList;
89
- end ;
90
-
91
- function TPyDelphiCustomActionList.GetDelphiObject : TCustomActionList;
92
- begin
93
- Result := TCustomActionList(inherited DelphiObject);
94
- end ;
95
-
96
- procedure TPyDelphiCustomActionList.SetDelphiObject
97
- (const Value : TCustomActionList);
98
- begin
99
- inherited DelphiObject := Value ;
100
- end ;
101
-
84
+ class function TPyDelphiCustomActionList.DelphiObjectClass : TClass;
85
+ begin
86
+ Result := TCustomActionList;
87
+ end ;
88
+ function TPyDelphiCustomActionList.GetDelphiObject : TCustomActionList;
89
+ begin
90
+ Result := TCustomActionList(inherited DelphiObject);
91
+ end ;
92
+ procedure TPyDelphiCustomActionList.SetDelphiObject
93
+ (const Value : TCustomActionList);
94
+ begin
95
+ inherited DelphiObject := Value ;
96
+ end ;
102
97
{ TPyDelphiActionList }
103
98
104
99
class function TPyDelphiActionList.DelphiObjectClass : TClass;
@@ -118,39 +113,32 @@ procedure TPyDelphiActionList.SetDelphiObject(
118
113
end ;
119
114
120
115
{ TPyDelphiCustomAction }
121
-
122
- class function TPyDelphiCustomAction.DelphiObjectClass : TClass;
123
- begin
124
- Result := TCustomAction;
125
- end ;
126
-
127
- function TPyDelphiCustomAction.GetDelphiObject : TCustomAction;
128
- begin
129
- Result := TCustomAction(inherited DelphiObject);
130
- end ;
131
-
132
- procedure TPyDelphiCustomAction.SetDelphiObject (const Value : TCustomAction);
133
- begin
134
- inherited DelphiObject := Value ;
135
- end ;
136
-
137
- { TPyDelphiAction }
138
-
139
- class function TPyDelphiAction.DelphiObjectClass : TClass;
140
- begin
141
- Result := TAction;
142
- end ;
143
-
144
- function TPyDelphiAction.GetDelphiObject : TAction;
145
- begin
146
- Result := TAction(inherited DelphiObject);
147
- end ;
148
-
149
- procedure TPyDelphiAction.SetDelphiObject (const Value : TAction);
150
- begin
151
- inherited DelphiObject := Value ;
152
- end ;
153
-
116
+
117
+ class function TPyDelphiCustomAction.DelphiObjectClass : TClass;
118
+ begin
119
+ Result := TCustomAction;
120
+ end ;
121
+ function TPyDelphiCustomAction.GetDelphiObject : TCustomAction;
122
+ begin
123
+ Result := TCustomAction(inherited DelphiObject);
124
+ end ;
125
+ procedure TPyDelphiCustomAction.SetDelphiObject (const Value : TCustomAction);
126
+ begin
127
+ inherited DelphiObject := Value ;
128
+ end ;
129
+ { TPyDelphiAction }
130
+ class function TPyDelphiAction.DelphiObjectClass : TClass;
131
+ begin
132
+ Result := TAction;
133
+ end ;
134
+ function TPyDelphiAction.GetDelphiObject : TAction;
135
+ begin
136
+ Result := TAction(inherited DelphiObject);
137
+ end ;
138
+ procedure TPyDelphiAction.SetDelphiObject (const Value : TAction);
139
+ begin
140
+ inherited DelphiObject := Value ;
141
+ end ;
154
142
initialization
155
143
RegisteredUnits.Add(TActnListRegistration.Create);
156
144
end .
0 commit comments