GfxApplicationPlugin.hpp
1 #pragma once
2 #include <Gfx/GfxContext.hpp>
3 #include <Gfx/GfxExecNode.hpp>
4 
5 #include <score/plugins/application/GUIApplicationPlugin.hpp>
6 #include <score/plugins/documentdelegate/plugin/DocumentPlugin.hpp>
7 
8 #include <score_plugin_gfx_export.h>
9 
10 namespace Gfx
11 {
12 class SCORE_PLUGIN_GFX_EXPORT DocumentPlugin final : public score::DocumentPlugin
13 {
14 public:
15  DocumentPlugin(const score::DocumentContext& doc, QObject* parent);
16  ~DocumentPlugin() override;
17 
18  GfxContext context;
19  GfxExecutionAction exec{context};
20 };
21 
23 {
24 public:
26 
27 protected:
28  void on_createdDocument(score::Document& doc) override;
29 };
30 }
Definition: GfxApplicationPlugin.hpp:23
void on_createdDocument(score::Document &doc) override
on_createdDocument Will be called after either on_newDocument or on_loadedDocument was called on ever...
Definition: GfxApplicationPlugin.cpp:26
Definition: GfxApplicationPlugin.hpp:13
Definition: GfxContext.hpp:32
Definition: GfxExecContext.hpp:16
The Document class is the central part of the software.
Definition: Document.hpp:51
Extend a document with custom data and systems.
Definition: DocumentPluginBase.hpp:24
Used to extend the software with application-wide data.
Definition: GUIApplicationPlugin.hpp:89
Binds the rendering pipeline to ossia processes.
Definition: CameraDevice.cpp:28
Definition: DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15