Loading...
Searching...
No Matches
DocumentPresenter.hpp
1#pragma once
2
3#include <QObject>
4
5#include <score_lib_base_export.h>
6
7#include <verdigris>
8class Selection;
9namespace score
10{
11struct DocumentContext;
12class DocumentDelegateFactory;
13class DocumentDelegatePresenter;
14class DocumentModel;
15class DocumentView;
19class SCORE_LIB_BASE_EXPORT DocumentPresenter final : public QObject
20{
21 W_OBJECT(DocumentPresenter)
22public:
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