DocumentDelegatePresenter.hpp
1 #pragma once
2 #include <QObject>
3 
4 #include <score_lib_base_export.h>
5 
6 #include <verdigris>
7 
8 class Selection;
9 namespace score
10 {
11 class DocumentDelegateModel;
12 class DocumentDelegateView;
13 class DocumentPresenter;
14 
15 class SCORE_LIB_BASE_EXPORT DocumentDelegatePresenter : public QObject
16 {
18 public:
20  DocumentPresenter* parent_presenter, const DocumentDelegateModel& model,
21  DocumentDelegateView& view);
22 
23  virtual ~DocumentDelegatePresenter();
24 
25 public:
26  virtual void setNewSelection(const Selection& old, const Selection& s) = 0;
27  W_SLOT(setNewSelection);
28 
29 protected:
30  const DocumentDelegateModel& m_model;
31  DocumentDelegateView& m_view;
32  DocumentPresenter* m_parentPresenter{};
33 };
34 }
Definition: Selection.hpp:12
Definition: DocumentDelegateModel.hpp:11
Definition: DocumentDelegatePresenter.hpp:16
Definition: DocumentDelegateView.hpp:10
Interface between the DocumentModel and the DocumentView.
Definition: DocumentPresenter.hpp:20
Base toolkit upon which the software is built.
Definition: Application.cpp:90