@@ -18,6 +18,7 @@ class GOControl;
18
18
class GOControlChangedHandler ;
19
19
class GOEventHandler ;
20
20
class GOMidiConfigurator ;
21
+ class GOReferencingObject ;
21
22
class GOSoundStateHandler ;
22
23
class GOSaveableObject ;
23
24
@@ -57,6 +58,7 @@ class GOEventHandlerList {
57
58
};
58
59
59
60
UPVector<GOCacheObject> m_CacheObjects;
61
+ UPVector<GOReferencingObject> m_ReferencingObjects;
60
62
UPVector<GOCombinationButtonSet> m_CombinationButtonSets;
61
63
UPVector<GOControlChangedHandler> m_ControlChangedHandlers;
62
64
UPVector<GOMidiConfigurator> m_MidiConfigurators;
@@ -68,6 +70,9 @@ class GOEventHandlerList {
68
70
const std::vector<GOCacheObject *> &GetCacheObjects () const {
69
71
return m_CacheObjects.AsVector ();
70
72
}
73
+ const std::vector<GOReferencingObject *> &GetReferencingObjects () const {
74
+ return m_ReferencingObjects.AsVector ();
75
+ }
71
76
const std::vector<GOCombinationButtonSet *> &GetCombinationButtonSets ()
72
77
const {
73
78
return m_CombinationButtonSets.AsVector ();
@@ -87,6 +92,14 @@ class GOEventHandlerList {
87
92
88
93
void RegisterCacheObject (GOCacheObject *obj) { m_CacheObjects.Add (obj); }
89
94
95
+ void RegisterReferencingObject (GOReferencingObject *pObj) {
96
+ m_ReferencingObjects.Add (pObj);
97
+ }
98
+
99
+ void UnRegisterReferencingObject (GOReferencingObject *pObj) {
100
+ m_ReferencingObjects.Remove (pObj);
101
+ }
102
+
90
103
void RegisterCombinationButtonSet (GOCombinationButtonSet *obj) {
91
104
m_CombinationButtonSets.Add (obj);
92
105
}
0 commit comments