summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_manager.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-20 00:22:09 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-20 00:22:09 +0000
commit23f86529fd2c4d06285671d55f695438e9cb58ac (patch)
tree0c2c96da31a4353d5cc97e95e248ea9970f86201 /gtk2_ardour/bundle_manager.h
parentde58b257ae2444e224543a5da8003e7c717fa5bc (diff)
Clean up handling of add/remove/rename channels in the port matrix. Hence make it possible to do these things for any bundle (give or take). Clean up port matrix context menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@5393 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/bundle_manager.h')
-rw-r--r--gtk2_ardour/bundle_manager.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h
index e7ce049da5..d8e60e9cc9 100644
--- a/gtk2_ardour/bundle_manager.h
+++ b/gtk2_ardour/bundle_manager.h
@@ -39,15 +39,13 @@ class BundleEditorMatrix : public PortMatrix
void set_state (ARDOUR::BundleChannel c[2], bool s);
PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const;
- std::string add_channel_name () const;
- void add_channel ();
- bool can_remove_channels (int d) const {
- return d == OURS;
- }
+
+ bool can_add_channel (boost::shared_ptr<ARDOUR::Bundle>) const;
+
+ void add_channel (boost::shared_ptr<ARDOUR::Bundle>);
+ bool can_remove_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
void remove_channel (ARDOUR::BundleChannel);
- bool can_rename_channels (int d) const {
- return d == OURS;
- }
+ bool can_rename_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
void rename_channel (ARDOUR::BundleChannel);
void setup_ports (int);
bool list_is_global (int) const;