fix #1637 (needs merging to 2.0.1 branch); remove debug printf

git-svn-id: svn://localhost/ardour2/branches/midi@1791 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2007-05-07 14:13:25 +00:00
parent 5183f9b772
commit 185be4e841
6 changed files with 40 additions and 33 deletions

View File

@@ -38,12 +38,19 @@ ControlProtocol::ControlProtocol (Session& s, string str)
_name (str)
{
_active = false;
session->RouteAdded.connect (mem_fun(*this, &ControlProtocol::add_strip));
}
ControlProtocol::~ControlProtocol ()
{
}
void
ControlProtocol::add_strip (std::list<boost::shared_ptr<ARDOUR::Route> >)
{
route_list_changed();
}
void
ControlProtocol::next_track (uint32_t initial_id)
{

View File

@@ -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);
};