score::SerializableDocumentPlugin Class Reference

Document plug-in with serializable data. More...

Inheritance diagram for score::SerializableDocumentPlugin:
score::DocumentPlugin score::SerializableInterface< DocumentPluginFactory > score::ProjectSettingsModel

Detailed Description

Document plug-in with serializable data.

A difference with other class is that this class has two points at which it can save and reload data :

  • The pre-document point : the object information, etc. Saved and loaded before the DocumentModel. Uses the default mechanism.
  • The post-document point. If there is information that needs to be reloaded after the DocumentModel was loaded. For instance components. This happens after the object has been constructed.

Protected Types

using ConcreteKey = UuidKey< DocumentPluginFactory >
 

Protected Member Functions

 DocumentPlugin (const score::DocumentContext &, const QString &name, QObject *parent)
 
template<typename Impl >
 DocumentPlugin (const score::DocumentContext &ctx, Impl &vis, QObject *parent)
 

Additional Inherited Members

- Public Types inherited from score::SerializableInterface< DocumentPluginFactory >
using key_type = UuidKey< DocumentPluginFactory >
 
using is_abstract_base_tag = std::integral_constant< bool, true >
 
- Public Member Functions inherited from score::DocumentPlugin
 DocumentPlugin (const score::DocumentContext &, const QString &name, QObject *parent)
 
const score::DocumentContextcontext () const
 
template<typename Impl >
 DocumentPlugin (const score::DocumentContext &ctx, Impl &vis, QObject *parent)
 
virtual void on_documentClosing ()
 
- Public Member Functions inherited from score::SerializableInterface< DocumentPluginFactory >
virtual UuidKey< DocumentPluginFactoryconcreteKey () const noexcept=0
 
virtual void serialize_impl (const VisitorVariant &vis) const
 
- Protected Attributes inherited from score::DocumentPlugin
const score::DocumentContextm_context
 

The documentation for this class was generated from the following files: