2 #include <score/command/CommandStackFacade.hpp>
3 #include <score/command/Dispatchers/OngoingCommandDispatcher.hpp>
4 #include <score/document/DocumentInterface.hpp>
5 #include <score/selection/FocusManager.hpp>
10 struct ApplicationContext;
11 struct GUIApplicationContext;
27 QTimer& coarseUpdateTimer;
32 const std::vector<DocumentPlugin*>& pluginModels()
const;
37 return IDocument::modelDelegate<T>(document);
44 const auto& pms = this->pluginModels();
46 begin(pms), end(pms), [&](
DocumentPlugin* pm) {
return dynamic_cast<T*
>(pm); });
48 SCORE_ASSERT(it != end(pms));
49 return *safe_cast<T*>(*it);
56 const auto& pms = this->pluginModels();
58 begin(pms), end(pms), [&](
DocumentPlugin* pm) {
return dynamic_cast<T*
>(pm); });
61 return safe_cast<T*>(*it);
Base class for IdentifiedObject.
Definition: IdentifiedObjectAbstract.hpp:16
The OngoingCommandDispatcher class.
Definition: OngoingCommandDispatcher.hpp:27
A small abstraction layer over the score::CommandStack.
Definition: CommandStackFacade.hpp:20
The Document class is the central part of the software.
Definition: Document.hpp:51
Extend a document with custom data and systems.
Definition: DocumentPluginBase.hpp:24
The ObjectLocker class.
Definition: ObjectLocker.hpp:21
The SelectionStack class.
Definition: SelectionStack.hpp:24
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DocumentContext.hpp:18
Definition: FocusManager.hpp:34
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15