2 #include <score/plugins/settingsdelegate/SettingsDelegatePresenter.hpp>
4 #include <core/settings/SettingsView.hpp>
12 class SettingsDelegateModel;
13 template <
class Model>
14 class SettingsDelegatePresenter;
15 using GlobalSettingsPresenter = SettingsDelegatePresenter<SettingsDelegateModel>;
22 template <
class Model>
31 connect(m_view, &Sv::accepted,
this, &SettingsPresenter::on_accept);
32 connect(m_view, &Sv::rejected,
this, &SettingsPresenter::on_reject);
37 SCORE_ASSERT(ossia::find(m_pluginPresenters, presenter) == m_pluginPresenters.end());
39 m_pluginPresenters.push_back(presenter);
45 for(
auto presenter : m_pluginPresenters)
47 presenter->on_accept();
52 for(
auto presenter : m_pluginPresenters)
54 presenter->on_reject();
59 std::vector<SettingsDelegatePresenter<Model>*> m_pluginPresenters;
Definition: SettingsDelegatePresenter.hpp:17
Definition: SettingsPresenter.hpp:24
Definition: SettingsView.hpp:21
Base toolkit upon which the software is built.
Definition: Application.cpp:90