10 #ifndef MESSAGECONTROL_H
11 #define MESSAGECONTROL_H
20 #include "../util/ComposerCoreControl_global.h"
22 #include "../extensions/IDocumentParser.h"
23 using namespace composer::extension;
25 #include "../model/Entity.h"
26 #include "../model/Project.h"
27 using namespace composer::core::model;
29 #include "../extensions/IPlugin.h"
30 using namespace composer::extension;
45 QMap <QString, QStringList> listenEntities;
46 QUndoStack *qUndoStack;
65 void sendEntityAddedMessageToPlugins( QString pluginInstanceId,
70 void sendEntityChangedMessageToPlugins( QString pluginInstanceId,
75 void sendEntityRemovedMessageToPlugins( QString pluginInstanceId,
93 void onAddEntity( QString type,
94 QString parentEntityId,
95 QMap<QString,QString>& atts,
104 void onEditEntity(
Entity *entity, QMap<QString,QString> atts,
bool force);
111 void onRemoveEntity(
Entity *,
bool force);
115 void setListenFilter(QStringList list);
120 void setPluginData(QByteArray data);
125 void setCurrentProjectAsDirty();
132 void anonymousAddEntity(QString type,
133 QString parentEntityId,
134 QMap<QString,QString>& atts,
136 bool notifyPlugins =
true);
142 void anonymousAddEntity(
Entity *entity,
143 QString parentEntityId,
145 bool notifyPlugins =
true);
152 void anonymousRemoveEntity( QString entityUniqueId,
154 bool notifyPlugins =
true);
160 void anonymousUpdateFromModel();
167 void anonymousChangeEntity( QString entityId,
168 QMap<QString,QString>& atts,
170 bool notifyPlugins =
true);
176 void entityAdded(QString,
Entity*);
180 #endif // MESSAGECONTROL_H