DocumentView.hpp
1 #pragma once
2 
3 #include <score_lib_base_export.h>
4 
5 #include <verdigris>
6 namespace score
7 {
8 class Document;
9 class DocumentDelegateFactory;
10 class DocumentDelegateView;
11 
18 class SCORE_LIB_BASE_EXPORT DocumentView final : public QObject
19 {
20  W_OBJECT(DocumentView)
21 public:
23  DocumentDelegateFactory& viewDelegate, const Document& doc, QObject* parent);
24 
25  DocumentDelegateView& viewDelegate() const { return *m_view; }
26 
27  const Document& document() const { return m_document; }
28 
29 private:
30  const Document& m_document;
31  DocumentDelegateView* m_view{};
32 };
33 }
34 
35 W_REGISTER_ARGTYPE(score::DocumentView*)
Used to provide custom document types.
Definition: DocumentDelegateFactory.hpp:26
Definition: DocumentDelegateView.hpp:10
The Document class is the central part of the software.
Definition: Document.hpp:51
The DocumentView class shows a document.
Definition: DocumentView.hpp:19
Base toolkit upon which the software is built.
Definition: Application.cpp:90