13
0

add a new class-static signal for ControlProtocol modules to know when a plugin has been selected

This commit is contained in:
Paul Davis 2024-07-29 10:07:43 -06:00
parent f3e35cc145
commit ad1377abb5
2 changed files with 3 additions and 1 deletions

View File

@ -56,6 +56,7 @@ PBD::Signal0<void> ControlProtocol::VerticalZoomInSelected;
PBD::Signal0<void> ControlProtocol::VerticalZoomOutSelected; PBD::Signal0<void> ControlProtocol::VerticalZoomOutSelected;
PBD::Signal0<void> ControlProtocol::StepTracksDown; PBD::Signal0<void> ControlProtocol::StepTracksDown;
PBD::Signal0<void> ControlProtocol::StepTracksUp; PBD::Signal0<void> ControlProtocol::StepTracksUp;
PBD::Signal1<void,std::weak_ptr<PluginInsert> > ControlProtocol::PluginSelected;
StripableNotificationList ControlProtocol::_last_selected; StripableNotificationList ControlProtocol::_last_selected;
PBD::ScopedConnection ControlProtocol::selection_connection; PBD::ScopedConnection ControlProtocol::selection_connection;

View File

@ -27,7 +27,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "pbd/signals.h" #include "pbd/signals.h"
#include "pbd/stateful.h" #include "pbd/stateful.h"
#include "pbd/glib_event_source.h" #include "pbd/glib_event_source.h"
@ -42,6 +41,7 @@ class Route;
class Session; class Session;
class Bundle; class Bundle;
class Stripable; class Stripable;
class PluginInsert;
class LIBCONTROLCP_API ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI class LIBCONTROLCP_API ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI
{ {
@ -82,6 +82,7 @@ public:
static PBD::Signal0<void> VerticalZoomOutSelected; static PBD::Signal0<void> VerticalZoomOutSelected;
static PBD::Signal0<void> StepTracksDown; static PBD::Signal0<void> StepTracksDown;
static PBD::Signal0<void> StepTracksUp; static PBD::Signal0<void> StepTracksUp;
static PBD::Signal1<void, std::weak_ptr<ARDOUR::PluginInsert> > PluginSelected;
void add_stripable_to_selection (std::shared_ptr<ARDOUR::Stripable>); void add_stripable_to_selection (std::shared_ptr<ARDOUR::Stripable>);
void set_stripable_selection (std::shared_ptr<ARDOUR::Stripable>); void set_stripable_selection (std::shared_ptr<ARDOUR::Stripable>);