2 #include <score/plugins/InterfaceList.hpp>
3 #include <score/plugins/ProjectSettings/ProjectSettingsModel.hpp>
4 #include <score/plugins/documentdelegate/plugin/DocumentPluginCreator.hpp>
5 #include <score/plugins/documentdelegate/plugin/SerializableDocumentPlugin.hpp>
7 #include <score_lib_base_export.h>
11 template <
class Model>
12 class SettingsDelegatePresenter;
13 template <
class Model>
14 class SettingsDelegateView;
16 class ProjectSettingsModel;
18 using ProjectSettingsPresenter = SettingsDelegatePresenter<ProjectSettingsModel>;
19 using ProjectSettingsView = SettingsDelegateView<ProjectSettingsModel>;
44 template <
typename Model_T,
typename Presenter_T,
typename View_T>
50 return deserialize_dyn(var, [&](
auto&& deserializer) {
51 return new Model_T{doc, deserializer, parent};
58 return new Model_T(ctx, parent);
65 QObject* parent)
override
67 return new Presenter_T{safe_cast<Model_T&>(m), safe_cast<View_T&>(v), parent};
72 #define SCORE_DECLARE_PROJECTSETTINGS_FACTORY(Factory, Model, Presenter, View, Uuid) \
74 : public score::ProjectSettingsDelegateFactory_T<Model, Presenter, View> \
76 SCORE_CONCRETE(Uuid) \
Reimplement to instantiate document plug-ins.
Definition: DocumentPluginCreator.hpp:25
Definition: ProjectSettingsFactory.hpp:46
The ProjectSettingsFactory class.
Definition: ProjectSettingsFactory.hpp:27
Definition: ProjectSettingsModel.hpp:9
Definition: SettingsDelegatePresenter.hpp:17
Definition: SettingsDelegateView.hpp:18
Base toolkit upon which the software is built.
Definition: Application.cpp:90
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18