summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-05 03:04:54 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-05 03:04:54 +0000
commitabd80d0f64a4b32c3a8cce01c9aa1d6bc7ee64bb (patch)
treec46721af34d296670a6da0ce87eaaac1c5208f6f /gtk2_ardour/port_group.h
parentbdf5dead24c16e23977d4b3d2561dbb0f8a7ae4e (diff)
Clean up and comment PortMatrix event handling a bit.
Fix problems with attempts to access Session after it has been destroyed. git-svn-id: svn://localhost/ardour2/branches/3.0@6290 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_group.h')
-rw-r--r--gtk2_ardour/port_group.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h
index 6940b75093..1fcceb4c19 100644
--- a/gtk2_ardour/port_group.h
+++ b/gtk2_ardour/port_group.h
@@ -40,9 +40,8 @@ class PortMatrix;
class RouteBundle;
class PublicEditor;
-/** A list of bundles and ports, grouped by some aspect of their
- * type e.g. busses, tracks, system. Each group has 0 or more bundles
- * and 0 or more ports, where the ports are not in the bundles.
+/** A list of bundles grouped by some aspect of their type e.g. busses, tracks, system.
+ * A group has 0 or more bundles.
*/
class PortGroup : public sigc::trackable
{
@@ -62,7 +61,10 @@ public:
bool has_port (std::string const &) const;
+ /** The bundle list has changed in some way; a bundle has been added or removed, or the list cleared etc. */
sigc::signal<void> Changed;
+
+ /** An individual bundle on our list has changed in some way */
sigc::signal<void, ARDOUR::Bundle::Change> BundleChanged;
struct BundleRecord {
@@ -99,7 +101,7 @@ class PortGroupList : public sigc::trackable
void add_group (boost::shared_ptr<PortGroup>);
void add_group_if_not_empty (boost::shared_ptr<PortGroup>);
void set_type (ARDOUR::DataType);
- void gather (ARDOUR::Session &, bool, bool);
+ void gather (ARDOUR::Session *, bool, bool);
PortGroup::BundleList const & bundles () const;
void clear ();
void remove_bundle (boost::shared_ptr<ARDOUR::Bundle>);
@@ -122,7 +124,10 @@ class PortGroupList : public sigc::trackable
bool empty () const;
+ /** The group list has changed in some way; a group has been added or removed, or the list cleared etc. */
sigc::signal<void> Changed;
+
+ /** A bundle in one of our groups has changed */
sigc::signal<void, ARDOUR::Bundle::Change> BundleChanged;
private: