Clean up handling of add/remove/rename channels in the port matrix. Hence make it...
[ardour.git] / gtk2_ardour / bundle_manager.h
index e7ce049da560480ef3026450d1c8369ea7ab758b..d8e60e9cc9846509dc67c503159a4d2d8ba50751 100644 (file)
@@ -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;