Loading...
Searching...
No Matches
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
10namespace score
11{
12class DocumentModel;
13class DocumentPresenter;
14class DocumentView;
15} // namespace score
16struct VisitorVariant;
17
18namespace Scenario
19{
20class 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
29 const score::DocumentContext& ctx, score::DocumentPresenter* parent_presenter,
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,
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:13
Base toolkit upon which the software is built.
Definition Application.cpp:90
The VisitorVariant struct.
Definition VisitorInterface.hpp:26
Definition DocumentContext.hpp:18