Loading...
Searching...
No Matches
DocumentView.hpp
1#pragma once
2
3#include <score_lib_base_export.h>
4
5#include <verdigris>
6namespace score
7{
8class Document;
9class DocumentDelegateFactory;
10class DocumentDelegateView;
11
18class SCORE_LIB_BASE_EXPORT DocumentView final : public QObject
19{
20 W_OBJECT(DocumentView)
21public:
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
29private:
30 const Document& m_document;
31 DocumentDelegateView* m_view{};
32};
33}
34
35W_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