From ffd089720dce10904ca49bdd23c24d92b8de52f4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 16 Nov 2022 14:14:08 -0700 Subject: [PATCH] ardour UI: provide proxies for BasicUI trigger/cue methods --- gtk2_ardour/ardour_ui.cc | 23 +++++++++++++++++++++++ gtk2_ardour/ardour_ui.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 17616816e2..82c74560cf 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -125,6 +125,8 @@ #include "temporal/time.h" +#include "control_protocol/basic_ui.h" + #include "about.h" #include "actions.h" #include "add_route_dialog.h" @@ -3111,3 +3113,24 @@ ARDOUR_UI::setup_toplevel_window (Gtk::Window& window, const string& name, void* window.signal_key_release_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::key_event_handler), &window), false); } +void +ARDOUR_UI::trigger_slot (int c, int r) +{ + if (!_basic_ui) { + return; + } + + _basic_ui->bang_trigger_at (c, r); +} + +void +ARDOUR_UI::trigger_cue_row (int r) +{ + if (!_basic_ui) { + return; + } + + _basic_ui->trigger_cue_row (r); +} + + diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 179694ac06..0e441599e7 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -293,6 +293,9 @@ public: XMLNode* clock_mode_settings () const; XMLNode* tearoff_settings (const char*) const; + void trigger_slot (int c, int r); + void trigger_cue_row (int r); + void save_ardour_state (); gboolean configure_handler (GdkEventConfigure* conf);