X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fbundle_manager.h;h=71b99684d706e1350c7ecae9669313ea9968b1d6;hb=f77f54a6e29feea04d5aa15969e73df84e020875;hp=94078a14af271123f68ae5053eb7f9d47f097e79;hpb=660fd702af13ace2d0399e47d5e9a644a6e3a8d7;p=ardour.git diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h index 94078a14af..71b99684d7 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; @@ -35,14 +37,14 @@ namespace ARDOUR { class BundleEditorMatrix : public PortMatrix { public: - BundleEditorMatrix (Gtk::Window *, ARDOUR::Session &, boost::shared_ptr); + BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr); void set_state (ARDOUR::BundleChannel c[2], bool s); PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const; - bool can_add_channel (boost::shared_ptr) const; + bool can_add_channels (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 { @@ -67,7 +67,7 @@ class BundleEditorMatrix : public PortMatrix class BundleEditor : public ArdourDialog { public: - BundleEditor (ARDOUR::Session &, boost::shared_ptr); + BundleEditor (ARDOUR::Session *, boost::shared_ptr); protected: void on_map (); @@ -75,20 +75,18 @@ 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 { public: - BundleManager (ARDOUR::Session &); + BundleManager (ARDOUR::Session *); private: @@ -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