projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak some colours as per Chris' suggestions in #3254.
[ardour.git]
/
gtk2_ardour
/
bundle_manager.h
diff --git
a/gtk2_ardour/bundle_manager.h
b/gtk2_ardour/bundle_manager.h
index aa13967bff86ecf5270186b243c07f0ba81d311e..c2c30d47bbcdb32201977de8693271fd055de951 100644
(file)
--- 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
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
@@
-34,27
+34,29
@@
namespace ARDOUR {
class BundleEditorMatrix : public PortMatrix
{
public:
class BundleEditorMatrix : public PortMatrix
{
public:
- BundleEditorMatrix (
ARDOUR::Session &
, boost::shared_ptr<ARDOUR::Bundle>);
+ BundleEditorMatrix (
Gtk::Window *, ARDOUR::Session *
, boost::shared_ptr<ARDOUR::Bundle>);
void set_state (ARDOUR::BundleChannel c[2], bool s);
void set_state (ARDOUR::BundleChannel c[2], bool s);
- State get_state (ARDOUR::BundleChannel c[2]) const;
+ PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const;
+
+ 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>);
- bool can_remove_channels (int d) const {
- return d == OURS;
- }
+ bool can_remove_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
void remove_channel (ARDOUR::BundleChannel);
void remove_channel (ARDOUR::BundleChannel);
- bool can_rename_channels (int d) const {
- return d == OURS;
- }
+ bool can_rename_channels (boost::shared_ptr<ARDOUR::Bundle>) const;
void rename_channel (ARDOUR::BundleChannel);
void rename_channel (ARDOUR::BundleChannel);
- void setup ();
+ void setup_ports (int);
+ bool list_is_global (int) const;
+
+ std::string disassociation_verb () const;
private:
enum {
OTHER = 0,
OURS = 1
};
private:
enum {
OTHER = 0,
OURS = 1
};
-
+
boost::shared_ptr<PortGroup> _port_group;
boost::shared_ptr<ARDOUR::Bundle> _bundle;
};
boost::shared_ptr<PortGroup> _port_group;
boost::shared_ptr<ARDOUR::Bundle> _bundle;
};
@@
-62,7
+64,7
@@
class BundleEditorMatrix : public PortMatrix
class BundleEditor : public ArdourDialog
{
public:
class BundleEditor : public ArdourDialog
{
public:
- BundleEditor (ARDOUR::Session
&, boost::shared_ptr<ARDOUR::UserBundle>, bool
);
+ BundleEditor (ARDOUR::Session
*, boost::shared_ptr<ARDOUR::UserBundle>
);
protected:
void on_map ();
protected:
void on_map ();
@@
-71,7
+73,8
@@
class BundleEditor : public ArdourDialog
void name_changed ();
void input_or_output_changed ();
void type_changed ();
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;
BundleEditorMatrix _matrix;
boost::shared_ptr<ARDOUR::UserBundle> _bundle;
Gtk::Entry _name;
@@
-82,7
+85,7
@@
class BundleEditor : public ArdourDialog
class BundleManager : public ArdourDialog
{
public:
class BundleManager : public ArdourDialog
{
public:
- BundleManager (ARDOUR::Session
&
);
+ BundleManager (ARDOUR::Session
*
);
private:
private:
@@
-90,8
+93,9
@@
class BundleManager : public ArdourDialog
void edit_clicked ();
void delete_clicked ();
void add_bundle (boost::shared_ptr<ARDOUR::Bundle>);
void edit_clicked ();
void delete_clicked ();
void add_bundle (boost::shared_ptr<ARDOUR::Bundle>);
- void bundle_
name_changed (
boost::shared_ptr<ARDOUR::UserBundle>);
+ void bundle_
changed (ARDOUR::Bundle::Change,
boost::shared_ptr<ARDOUR::UserBundle>);
void set_button_sensitivity ();
void set_button_sensitivity ();
+ void row_activated (Gtk::TreeModel::Path const & p, Gtk::TreeViewColumn* c);
class ModelColumns : public Gtk::TreeModelColumnRecord
{
class ModelColumns : public Gtk::TreeModelColumnRecord
{
@@
-100,17
+104,17
@@
class BundleManager : public ArdourDialog
add (name);
add (bundle);
}
add (name);
add (bundle);
}
-
+
Gtk::TreeModelColumn<Glib::ustring> name;
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::UserBundle> > bundle;
};
Gtk::TreeModelColumn<Glib::ustring> name;
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::UserBundle> > bundle;
};
-
+
Gtk::TreeView _tree_view;
Glib::RefPtr<Gtk::ListStore> _list_model;
ModelColumns _list_model_columns;
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;
Gtk::Button edit_button;
Gtk::Button delete_button;
+ PBD::ScopedConnectionList bundle_connections;
};
class NameChannelDialog : public ArdourDialog
};
class NameChannelDialog : public ArdourDialog
@@
-124,7
+128,7
@@
public:
private:
void setup ();
private:
void setup ();
-
+
boost::shared_ptr<ARDOUR::Bundle> _bundle;
uint32_t _channel;
Gtk::Entry _name;
boost::shared_ptr<ARDOUR::Bundle> _bundle;
uint32_t _channel;
Gtk::Entry _name;