ScenarioDocumentFactory.hpp
1 #pragma once
2 #include <score/application/ApplicationContext.hpp>
3 #include <score/plugins/documentdelegate/DocumentDelegateFactory.hpp>
4 #include <score/plugins/documentdelegate/DocumentDelegateModel.hpp>
5 #include <score/plugins/documentdelegate/DocumentDelegatePresenter.hpp>
6 #include <score/plugins/documentdelegate/DocumentDelegateView.hpp>
7 
8 #include <score_plugin_scenario_export.h>
9 
10 namespace score
11 {
12 class DocumentModel;
13 class DocumentPresenter;
14 class DocumentView;
15 } // namespace score
16 struct VisitorVariant;
17 
18 namespace Scenario
19 {
20 class SCORE_PLUGIN_SCENARIO_EXPORT ScenarioDocumentFactory final
22 {
23  SCORE_CONCRETE("2bca3373-d858-4288-b054-5960d3e5902c")
24 
26  makeView(const score::DocumentContext& ctx, QObject* parent) override;
27 
28  score::DocumentDelegatePresenter* makePresenter(
29  const score::DocumentContext& ctx, score::DocumentPresenter* parent_presenter,
30  const score::DocumentDelegateModel& model,
31  score::DocumentDelegateView& view) override;
32 
33  void make(
35  score::DocumentModel* parent) override;
36 
37  void load(
38  const VisitorVariant&, const score::DocumentContext& ctx,
39  score::DocumentDelegateModel*& ptr, score::DocumentModel* parent) override;
40 };
41 }
Definition: ScenarioDocumentFactory.hpp:22
Used to provide custom document types.
Definition: DocumentDelegateFactory.hpp:26
Definition: DocumentDelegateModel.hpp:11
Definition: DocumentDelegatePresenter.hpp:16
Definition: DocumentDelegateView.hpp:10
Model part of a document.
Definition: DocumentModel.hpp:29
Interface between the DocumentModel and the DocumentView.
Definition: DocumentPresenter.hpp:20
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18