forked from bergsteiger/mindstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msRegisteredShapes.pas
44 lines (32 loc) · 1004 Bytes
/
msRegisteredShapes.pas
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
unit msRegisteredShapes;
interface
uses
{$Include msShapeClassListSingleton.mixin.pas}
;
type
{$Include msShapeClassListSingleton.mixin.pas}
TmsRegisteredShapes = class(TmsShapeClassListSingleton)
// [Inversion of control (øàáëîí ïðîåêòèðîâàíèÿ)|https://bitbucket.org/ingword/mindstream/src/5d11d8d3b3047a8200e02ca2d562679f425b5afd/msRegisteredShapes.pas?at=B57]
public
class function Instance: TmsRegisteredShapes;
procedure RegisterMC(const aValue: MCmsShape); override;
end;//TmsRegisteredShapes
implementation
uses
{$Include msShapeClassListSingleton.mixin.pas}
,
msShapesForToolbar,
msUtilityShapes
;
{$Include msShapeClassListSingleton.mixin.pas}
class function TmsRegisteredShapes.Instance: TmsRegisteredShapes;
begin
Result := inherited Instance As TmsRegisteredShapes;
end;
procedure TmsRegisteredShapes.RegisterMC(const aValue: MCmsShape);
begin
inherited;
TmsShapesForToolbar.Instance.RegisterMC(aValue);
TmsUtilityShapes.Instance.RegisterMC(aValue);
end;
end.