- BundleEditorMatrix (ARDOUR::Session &, boost::shared_ptr<ARDOUR::Bundle>);
-
- void set_state (
- boost::shared_ptr<ARDOUR::Bundle> ab,
- uint32_t ac,
- boost::shared_ptr<ARDOUR::Bundle> bb,
- uint32_t bc,
- bool s,
- uint32_t k
- );
-
- State get_state (
- boost::shared_ptr<ARDOUR::Bundle> ab,
- uint32_t ac,
- boost::shared_ptr<ARDOUR::Bundle> bb,
- uint32_t bc
- ) const;
-
- void add_channel (boost::shared_ptr<ARDOUR::Bundle>);
- void remove_channel (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
- bool can_rename_channels () const {
- return true;
- }
- void rename_channel (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
+ BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr<ARDOUR::Bundle>);
+
+ void set_state (ARDOUR::BundleChannel c[2], bool s);
+ PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const;
+
+ bool can_add_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
+
+ void add_channel (boost::shared_ptr<ARDOUR::Bundle>, ARDOUR::DataType);
+ bool can_remove_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
+ void remove_channel (ARDOUR::BundleChannel);
+ 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;
+
+ std::string disassociation_verb () const;
+
+ private:
+ enum {
+ OTHER = 0,
+ OURS = 1
+ };
+
+ boost::shared_ptr<PortGroup> _port_group;
+ boost::shared_ptr<ARDOUR::Bundle> _bundle;