Game Develop Core: ChangesNotifier.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
ChangesNotifier.h
Go to the documentation of this file.
1
5 #ifndef GDCORE_CHANGESNOTIFIER_H
6 #define GDCORE_CHANGESNOTIFIER_H
7 #include <string>
8 #include <vector>
9 #include <iostream>
10 namespace gd { class Project; }
11 namespace gd { class Layout; }
12 namespace gd { class ExternalLayout; }
13 namespace gd { class Object; }
14 namespace gd { class Automatism; }
15 namespace gd { class ExternalEvents; }
16
17 namespace gd
18 {
19
27 class ChangesNotifier
28 {
29 public:
30 ChangesNotifier() {};
31 virtual ~ChangesNotifier() {};
32
36
43 virtual void OnLayoutAdded(gd::Project & project, gd::Layout & layout) const {};
44
51 virtual void OnLayoutRenamed(gd::Project & project, gd::Layout & layout, const std::string & oldName) const {};
52
58 virtual void OnLayoutDeleted(gd::Project & project, const std::string deletedLayout) const {};
59
65 virtual void OnVariablesModified(gd::Project & project, gd::Layout * layout = NULL) const {};
66
68
72
79 virtual void OnExternalLayoutAdded(gd::Project & project, gd::ExternalLayout & layout) const {};
80
87 virtual void OnExternalLayoutRenamed(gd::Project & project, gd::ExternalLayout & layout, const std::string & oldName) const {};
88
94 virtual void OnExternalLayoutDeleted(gd::Project & project, const std::string deletedLayout) const {};
95
97
101
108 virtual void OnExternalEventsAdded(gd::Project & project, gd::ExternalEvents & events) const {};
109
116 virtual void OnExternalEventsRenamed(gd::Project & project, gd::ExternalEvents & events, const std::string & oldName) const {};
117
123 virtual void OnExternalEventsDeleted(gd::Project & project, const std::string deletedLayout) const {};
124
126
130
139 virtual void OnEventsModified(gd::Project & project, gd::Layout & layout, bool indirectChange = false, std::string sourceOfTheIndirectChange = "") const {};
140
148 virtual void OnEventsModified(gd::Project & project, gd::ExternalEvents & events, bool indirectChange = false, std::string sourceOfTheIndirectChange = "") const {};
150
154
162 virtual void OnObjectEdited(gd::Project & project, gd::Layout * layout, gd::Object & object) const {};
163
170 virtual void OnObjectAdded(gd::Project & project, gd::Layout * layout, gd::Object & object) const {};
171
179 virtual void OnObjectRenamed(gd::Project & project, gd::Layout * layout, gd::Object & object, const std::string & oldName) const {};
180
187 virtual void OnObjectsDeleted(gd::Project & project, gd::Layout * layout, const std::vector<std::string> & deletedObjects) const {};
188
195 virtual void OnObjectVariablesChanged(gd::Project & project, gd::Layout * layout, gd::Object & object) const {};
196
204 virtual void OnAutomatismEdited(gd::Project & project, gd::Layout * layout, gd::Object & object, gd::Automatism & automatism) const {};
205
213 virtual void OnAutomatismAdded(gd::Project & project, gd::Layout * layout, gd::Object & object, gd::Automatism & automatism) const {};
214
223 virtual void OnAutomatismRenamed(gd::Project & project, gd::Layout * layout, gd::Object & object, gd::Automatism & automatism, const std::string & oldName) const {};
224
232 virtual void OnAutomatismDeleted(gd::Project & project, gd::Layout * layout, gd::Object & object, const std::string & automatismName) const {};
233
240 virtual void OnObjectGroupAdded(gd::Project & project, gd::Layout * layout, const std::string & groupName) const {};
241
248 virtual void OnObjectGroupEdited(gd::Project & project, gd::Layout * layout, const std::string & groupName) const {};
249
257 virtual void OnObjectGroupRenamed(gd::Project & project, gd::Layout * layout, const std::string & groupName, const std::string & oldName) const {};
258
265 virtual void OnObjectGroupDeleted(gd::Project & project, gd::Layout * layout, const std::string & groupName) const {};
266
272 virtual void OnResourceModified(gd::Project & project, const std::string & resourceName) const {};
273
275 };
276
277 }
278
279 #endif // GDCORE_CHANGESNOTIFIER_H