2 #include <score/plugins/InterfaceList.hpp>
3 #include <score/plugins/documentdelegate/plugin/DocumentPlugin.hpp>
4 #include <score/tools/IdentifierGeneration.hpp>
6 #include <core/document/Document.hpp>
7 #include <core/document/DocumentModel.hpp>
12 template <
typename DocPlugin>
15 auto& model = doc.model();
16 auto plug =
new DocPlugin{doc.context(), &model};
17 model.addPluginModel(plug);
51 return deserialize_dyn(var, [&](
auto&& deserializer) {
52 return new T{doc, deserializer, parent};
Definition: UuidKey.hpp:343
The Document class is the central part of the software.
Definition: Document.hpp:51
Definition: DocumentPluginCreator.hpp:46
Reimplement to instantiate document plug-ins.
Definition: DocumentPluginCreator.hpp:25
Definition: DocumentPluginCreator.hpp:36
Extend a document with custom data and systems.
Definition: DocumentPluginBase.hpp:24
Base class for plug-in interfaces.
Definition: Interface.hpp:52
InterfaceList Default implementation of InterfaceListBase.
Definition: InterfaceList.hpp:80
Base toolkit upon which the software is built.
Definition: Application.cpp:90
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18