Remove Model dependency from ActionEditorApi
This commit is contained in:
parent
78dde3ac96
commit
b8d18abbb3
|
@ -31,9 +31,8 @@
|
|||
|
||||
namespace giada::m
|
||||
{
|
||||
ActionEditorApi::ActionEditorApi(Engine& e, model::Model& m, Sequencer& s, ActionRecorder& ar)
|
||||
ActionEditorApi::ActionEditorApi(Engine& e, Sequencer& s, ActionRecorder& ar)
|
||||
: m_engine(e)
|
||||
, m_model(m)
|
||||
, m_sequencer(s)
|
||||
, m_actionRecorder(ar)
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ class ActionRecorder;
|
|||
class ActionEditorApi
|
||||
{
|
||||
public:
|
||||
ActionEditorApi(Engine&, model::Model&, Sequencer&, ActionRecorder&);
|
||||
ActionEditorApi(Engine&, Sequencer&, ActionRecorder&);
|
||||
|
||||
std::vector<Action> getActionsOnChannel(ID channelId) const;
|
||||
|
||||
|
@ -58,7 +58,6 @@ public:
|
|||
|
||||
private:
|
||||
Engine& m_engine;
|
||||
model::Model& m_model;
|
||||
Sequencer& m_sequencer;
|
||||
ActionRecorder& m_actionRecorder;
|
||||
};
|
||||
|
|
|
@ -55,7 +55,7 @@ Engine::Engine()
|
|||
, m_channelsApi(m_model, m_kernelAudio, m_mixer, m_sequencer, m_channelManager, m_recorder, m_actionRecorder, m_pluginHost, m_pluginManager)
|
||||
, m_pluginsApi(m_kernelAudio, m_pluginManager, m_pluginHost, m_model)
|
||||
, m_sampleEditorApi(m_kernelAudio, m_model, m_channelManager)
|
||||
, m_actionEditorApi(*this, m_model, m_sequencer, m_actionRecorder)
|
||||
, m_actionEditorApi(*this, m_sequencer, m_actionRecorder)
|
||||
, m_ioApi(m_model, m_midiDispatcher)
|
||||
, m_storageApi(*this, m_model, m_pluginManager, m_midiSynchronizer, m_mixer, m_channelManager, m_kernelAudio, m_sequencer, m_actionRecorder)
|
||||
, m_configApi(m_model, m_kernelAudio, m_kernelMidi, m_midiMapper, m_midiSynchronizer)
|
||||
|
|
Loading…
Reference in New Issue