diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-09 23:44:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-09 23:44:39 +0000 |
commit | 8ca43d57fea4e10e20b331f13132dfd9721911a1 (patch) | |
tree | 5c1c47ccceda129734a9409679add60c59ce7ac9 /libs/ardour/route_group.cc | |
parent | 1511423e4ec34a56d1e22d6379f08847dcd25e84 (diff) |
new mix group interface, not yet finished and still to propagate to edit_group
git-svn-id: svn://localhost/trunk/ardour2@366 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r-- | libs/ardour/route_group.cc | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index 3d40483634..b9d4972277 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -34,13 +34,28 @@ using namespace ARDOUR; using namespace sigc; +using namespace std; + +RouteGroup::RouteGroup (Session& s, const string &n, Flag f) + : _session (s), _name (n), _flags (f) +{ +} + +void +RouteGroup::set_name (string str) +{ + _name = str; + _session.set_dirty (); + FlagsChanged (0); /* EMIT SIGNAL */ +} int RouteGroup::add (Route *r) { routes.push_back (r); r->GoingAway.connect (sigc::bind (mem_fun (*this, &RouteGroup::remove_when_going_away), r)); - changed (); /* EMIT SIGNAL */ + _session.set_dirty (); + changed (); /* EMIT SIGNAL */ return 0; } @@ -57,7 +72,8 @@ RouteGroup::remove (Route *r) if ((i = find (routes.begin(), routes.end(), r)) != routes.end()) { routes.erase (i); - changed (); /* EMIT SIGNAL */ + _session.set_dirty (); + changed (); /* EMIT SIGNAL */ return 0; } return -1; @@ -145,7 +161,8 @@ RouteGroup::set_active (bool yn, void *src) } else { _flags &= ~Active; } - FlagsChanged (src); /* EMIT SIGNAL */ + _session.set_dirty (); + FlagsChanged (src); /* EMIT SIGNAL */ } void @@ -160,7 +177,8 @@ RouteGroup::set_relative (bool yn, void *src) } else { _flags &= ~Relative; } - FlagsChanged (src); /* EMIT SIGNAL */ + _session.set_dirty (); + FlagsChanged (src); /* EMIT SIGNAL */ } void @@ -181,7 +199,8 @@ RouteGroup::set_hidden (bool yn, void *src) _flags |= Active; } } - FlagsChanged (src); /* EMIT SIGNAL */ + _session.set_dirty (); + FlagsChanged (src); /* EMIT SIGNAL */ } void |