DocumentPresenter.hpp
1 #pragma once
2 
3 #include <QObject>
4 
5 #include <score_lib_base_export.h>
6 
7 #include <verdigris>
8 class Selection;
9 namespace score
10 {
11 struct DocumentContext;
12 class DocumentDelegateFactory;
13 class DocumentDelegatePresenter;
14 class DocumentModel;
15 class DocumentView;
19 class SCORE_LIB_BASE_EXPORT DocumentPresenter final : public QObject
20 {
21  W_OBJECT(DocumentPresenter)
22 public:
25  DocumentView&, QObject* parent);
26 
27  DocumentDelegatePresenter* presenterDelegate() const { return m_presenter; }
28 
29  void setNewSelection(const Selection& old, const Selection& s);
30 
31  DocumentView& m_view;
32  const DocumentModel& m_model;
33  DocumentDelegatePresenter* m_presenter{};
34 };
35 }
Definition: Selection.hpp:12
Used to provide custom document types.
Definition: DocumentDelegateFactory.hpp:26
Definition: DocumentDelegatePresenter.hpp:16
Model part of a document.
Definition: DocumentModel.hpp:29
Interface between the DocumentModel and the DocumentView.
Definition: DocumentPresenter.hpp:20
The DocumentView class shows a document.
Definition: DocumentView.hpp:19
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DocumentContext.hpp:18