#include <gtkmm/entry.h>
#include "ardour_dialog.h"
#include "port_matrix.h"
-#include "i18n.h"
namespace ARDOUR {
class Session;
bool can_add_channel (boost::shared_ptr<ARDOUR::Bundle>) const;
- void add_channel (boost::shared_ptr<ARDOUR::Bundle>);
+ 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 setup_ports (int);
bool list_is_global (int) const;
- std::string disassociation_verb () const {
- return _("Disassociate");
- }
+ std::string disassociation_verb () const;
private:
enum {
private:
void name_changed ();
void input_or_output_changed ();
- void type_changed ();
void on_show ();
BundleEditorMatrix _matrix;
boost::shared_ptr<ARDOUR::UserBundle> _bundle;
Gtk::Entry _name;
Gtk::ComboBoxText _input_or_output;
- Gtk::ComboBoxText _type;
};
class BundleManager : public ArdourDialog
Gtk::TreeView _tree_view;
Glib::RefPtr<Gtk::ListStore> _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