summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-05-07 04:41:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-05-07 04:41:08 +0000
commit653c6d61f93d29e0d050aa97b1f42736a5288d3b (patch)
tree0fff794dd3b19fb4b677ae8b3b0ec56d463b483d /libs
parent6959b1728ef34d2e394604e041289a0128fe6cf9 (diff)
merge changes from trunk
git-svn-id: svn://localhost/ardour2/branches/2.0.1@1790 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/control_protocol/control_protocol.cc7
-rw-r--r--libs/surfaces/control_protocol/control_protocol/control_protocol.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/libs/surfaces/control_protocol/control_protocol.cc b/libs/surfaces/control_protocol/control_protocol.cc
index bb8ada746f..8456654f20 100644
--- a/libs/surfaces/control_protocol/control_protocol.cc
+++ b/libs/surfaces/control_protocol/control_protocol.cc
@@ -38,6 +38,7 @@ ControlProtocol::ControlProtocol (Session& s, string str)
_name (str)
{
_active = false;
+ session->RouteAdded.connect (mem_fun(*this, &ControlProtocol::add_strip));
}
ControlProtocol::~ControlProtocol ()
@@ -45,6 +46,12 @@ ControlProtocol::~ControlProtocol ()
}
void
+ControlProtocol::add_strip (std::list<boost::shared_ptr<ARDOUR::Route> >)
+{
+ route_list_changed();
+}
+
+void
ControlProtocol::next_track (uint32_t initial_id)
{
uint32_t limit = session->nroutes();
diff --git a/libs/surfaces/control_protocol/control_protocol/control_protocol.h b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
index c0961645ab..b787aeeb8f 100644
--- a/libs/surfaces/control_protocol/control_protocol/control_protocol.h
+++ b/libs/surfaces/control_protocol/control_protocol/control_protocol.h
@@ -47,6 +47,8 @@ class ControlProtocol : public sigc::trackable, public Stateful, public BasicUI
virtual int set_feedback (bool yn) { return 0; }
virtual bool get_feedback () const { return false; }
+ virtual void route_list_changed () {}
+
sigc::signal<void> ActiveChanged;
/* signals that a control protocol can emit and other (presumably graphical)
@@ -101,6 +103,8 @@ class ControlProtocol : public sigc::trackable, public Stateful, public BasicUI
std::string _name;
bool _active;
+ void add_strip (std::list<boost::shared_ptr<ARDOUR::Route> >);
+
void next_track (uint32_t initial_id);
void prev_track (uint32_t initial_id);
};