Loading...
Searching...
No Matches
DocumentBuilder.hpp
1#pragma once
2#include <score/model/Identifier.hpp>
3#include <score/serialization/VisitorInterface.hpp>
4
5#include <score_lib_base_export.h>
6
7class QWidget;
8namespace score
9{
10class Document;
11class DocumentBackupManager;
12class DocumentDelegateFactory;
13class DocumentModel;
14struct GUIApplicationContext;
15struct RestorableDocument;
16
26class SCORE_LIB_BASE_EXPORT DocumentBuilder
27{
28public:
29 explicit DocumentBuilder(QObject* parentPresenter, QWidget* parentView);
30
31 Document* newDocument(
34
41 Document* newDocumentFromTemplate(
43 const QString& templatePath, score::DocumentDelegateFactory& doctype);
44 Document* loadDocument(
45 const score::GUIApplicationContext& ctx, QString filename,
47 Document* loadDocument(
48 const score::GUIApplicationContext& ctx, QString filename, QByteArray data,
49 SerializationIdentifier format, score::DocumentDelegateFactory& doctype);
50 Document* restoreDocument(
53
54private:
55 void setBackupManager(Document* doc);
56
57 QObject* m_parentPresenter{};
58 QWidget* m_parentView{};
59};
60}
The id_base_t class.
Definition Identifier.hpp:59
Methods to set-up documents.
Definition DocumentBuilder.hpp:27
Used to provide custom document types.
Definition DocumentDelegateFactory.hpp:26
The Document class is the central part of the software.
Definition Document.hpp:51
Base toolkit upon which the software is built.
Definition Application.cpp:117
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15
Definition DocumentBackups.hpp:14