summaryrefslogtreecommitdiff
path: root/libs/surfaces/control_protocol/control_protocol
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-12 14:34:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-12 14:34:03 +0000
commit62620122a96af73c9714c4de492c43382c5f0297 (patch)
treeb5e4755f4da8602613fcfd70b6196aaa251f48df /libs/surfaces/control_protocol/control_protocol
parentcd21bc58aa9394457714ef0fbf4442f6274f5f2a (diff)
propagate GUI track selection to control protocols; make MCP update when GUI track selection changes
git-svn-id: svn://localhost/ardour2/branches/3.0@11941 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/control_protocol/control_protocol')
-rw-r--r--libs/surfaces/control_protocol/control_protocol/control_protocol.h11
-rw-r--r--libs/surfaces/control_protocol/control_protocol/types.h34
2 files changed, 45 insertions, 0 deletions
diff --git a/libs/surfaces/control_protocol/control_protocol/control_protocol.h b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
index abbf73c396..68a1461c10 100644
--- a/libs/surfaces/control_protocol/control_protocol/control_protocol.h
+++ b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
@@ -24,10 +24,14 @@
#include <string>
#include <vector>
#include <list>
+
#include <boost/shared_ptr.hpp>
+
#include "pbd/stateful.h"
#include "pbd/signals.h"
+
#include "control_protocol/basic_ui.h"
+#include "control_protocol/types.h"
namespace ARDOUR {
@@ -72,6 +76,13 @@ class ControlProtocol : virtual public sigc::trackable, public PBD::Stateful, pu
static PBD::Signal0<void> VerticalZoomInSelected;
static PBD::Signal0<void> VerticalZoomOutSelected;
+ /* signals that one UI (e.g. the GUI) can emit to get all other UI's to
+ respond. Typically this will always be GUI->"others" - the GUI pays
+ no attention to these signals.
+ */
+
+ static PBD::Signal1<void,RouteNotificationListPtr> TrackSelectionChanged;
+
/* the model here is as follows:
we imagine most control surfaces being able to control
diff --git a/libs/surfaces/control_protocol/control_protocol/types.h b/libs/surfaces/control_protocol/control_protocol/types.h
new file mode 100644
index 0000000000..0f81d87d0a
--- /dev/null
+++ b/libs/surfaces/control_protocol/control_protocol/types.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2006 Paul Davis
+
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser
+ General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __ardour_control_protocol_types_h__
+#define __ardour_control_protocol_types_h__
+
+#include <vector>
+#include <boost/smart_ptr.hpp>
+
+namespace ARDOUR {
+ class Route;
+
+ typedef std::vector<boost::shared_ptr<ARDOUR::Route> > RouteNotificationList;
+ typedef boost::shared_ptr<RouteNotificationList> RouteNotificationListPtr;
+}
+
+#endif /* __ardour_control_protocol_types_h__ */