X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fbundle_manager.h;h=ff42ad7fb8d539fafb202d32c1fd9d1e05fef139;hb=153ee4e441eeebc9aceaa3121e4a785c6011a962;hp=3beb77e9525c61889ca20c7da4d3dc41a71344ba;hpb=abd80d0f64a4b32c3a8cce01c9aa1d6bc7ee64bb;p=ardour.git diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h index 3beb77e952..ff42ad7fb8 100644 --- a/gtk2_ardour/bundle_manager.h +++ b/gtk2_ardour/bundle_manager.h @@ -20,12 +20,14 @@ #ifndef __ardour_ui_bundle_manager_h__ #define __ardour_ui_bundle_manager_h__ -#include -#include #include +#include +#include + +#include "ardour/user_bundle.h" + #include "ardour_dialog.h" #include "port_matrix.h" -#include "i18n.h" namespace ARDOUR { class Session; @@ -42,7 +44,7 @@ class BundleEditorMatrix : public PortMatrix bool can_add_channel (boost::shared_ptr) const; - void add_channel (boost::shared_ptr); + void add_channel (boost::shared_ptr, ARDOUR::DataType); bool can_remove_channels (boost::shared_ptr) const; void remove_channel (ARDOUR::BundleChannel); bool can_rename_channels (boost::shared_ptr) const; @@ -50,9 +52,7 @@ class BundleEditorMatrix : public PortMatrix void setup_ports (int); bool list_is_global (int) const; - std::string disassociation_verb () const { - return _("Disassociate"); - } + std::string disassociation_verb () const; private: enum { @@ -75,14 +75,12 @@ class BundleEditor : public ArdourDialog private: void name_changed (); void input_or_output_changed (); - void type_changed (); void on_show (); BundleEditorMatrix _matrix; boost::shared_ptr _bundle; Gtk::Entry _name; Gtk::ComboBoxText _input_or_output; - Gtk::ComboBoxText _type; }; class BundleManager : public ArdourDialog @@ -108,16 +106,16 @@ class BundleManager : public ArdourDialog add (bundle); } - Gtk::TreeModelColumn name; + Gtk::TreeModelColumn name; Gtk::TreeModelColumn > bundle; }; Gtk::TreeView _tree_view; Glib::RefPtr _list_model; ModelColumns _list_model_columns; - ARDOUR::Session* _session; Gtk::Button edit_button; Gtk::Button delete_button; + PBD::ScopedConnectionList bundle_connections; }; class NameChannelDialog : public ArdourDialog