X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fbundle_manager.h;h=c2c30d47bbcdb32201977de8693271fd055de951;hb=d8e93be2ee68fc6a18a7ca17d36ffc67c94207b3;hp=dd4c711d4ef994d7b391b48c765da3ff95604ced;hpb=7c49119be05c2a0fc324f6a13e91720ac66a5957;p=ardour.git diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h index dd4c711d4e..c2c30d47bb 100644 --- a/gtk2_ardour/bundle_manager.h +++ b/gtk2_ardour/bundle_manager.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2007 Paul Davis + Copyright (C) 2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,7 +25,6 @@ #include #include "ardour_dialog.h" #include "port_matrix.h" -#include "i18n.h" namespace ARDOUR { class Session; @@ -35,13 +34,13 @@ 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; - + void add_channel (boost::shared_ptr); bool can_remove_channels (boost::shared_ptr) const; void remove_channel (ARDOUR::BundleChannel); @@ -50,16 +49,14 @@ 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 { OTHER = 0, OURS = 1 }; - + boost::shared_ptr _port_group; boost::shared_ptr _bundle; }; @@ -67,7 +64,7 @@ class BundleEditorMatrix : public PortMatrix class BundleEditor : public ArdourDialog { public: - BundleEditor (ARDOUR::Session &, boost::shared_ptr, bool); + BundleEditor (ARDOUR::Session *, boost::shared_ptr); protected: void on_map (); @@ -77,7 +74,7 @@ class BundleEditor : public ArdourDialog void input_or_output_changed (); void type_changed (); void on_show (); - + BundleEditorMatrix _matrix; boost::shared_ptr _bundle; Gtk::Entry _name; @@ -88,7 +85,7 @@ class BundleEditor : public ArdourDialog class BundleManager : public ArdourDialog { public: - BundleManager (ARDOUR::Session &); + BundleManager (ARDOUR::Session *); private: @@ -98,6 +95,7 @@ class BundleManager : public ArdourDialog void add_bundle (boost::shared_ptr); void bundle_changed (ARDOUR::Bundle::Change, boost::shared_ptr); void set_button_sensitivity (); + void row_activated (Gtk::TreeModel::Path const & p, Gtk::TreeViewColumn* c); class ModelColumns : public Gtk::TreeModelColumnRecord { @@ -106,17 +104,17 @@ class BundleManager : public ArdourDialog add (name); add (bundle); } - + 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 @@ -130,7 +128,7 @@ public: private: void setup (); - + boost::shared_ptr _bundle; uint32_t _channel; Gtk::Entry _name;