summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_manager.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-20 14:46:00 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-20 14:46:00 +0000
commit61db2175eb8b8fffd0c1796ace78ac33c9e1adf0 (patch)
tree6fdc23e7e0161ce54642b0bd44dc8e0a33f05efe /gtk2_ardour/bundle_manager.h
parentef038c1a84ecd541a540d5a5baa677d7663e535c (diff)
New matrix-based editor for connections and bundles, based on thorwil's design.
Add Bundle Manager dialog. git-svn-id: svn://localhost/ardour2/branches/3.0@4415 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/bundle_manager.h')
-rw-r--r--gtk2_ardour/bundle_manager.h54
1 files changed, 41 insertions, 13 deletions
diff --git a/gtk2_ardour/bundle_manager.h b/gtk2_ardour/bundle_manager.h
index 097328b602..18b0b29e92 100644
--- a/gtk2_ardour/bundle_manager.h
+++ b/gtk2_ardour/bundle_manager.h
@@ -22,6 +22,7 @@
#include <gtkmm/treeview.h>
#include <gtkmm/liststore.h>
+#include <gtkmm/entry.h>
#include "ardour_dialog.h"
#include "port_matrix.h"
@@ -35,19 +36,28 @@ class BundleEditorMatrix : public PortMatrix
public:
BundleEditorMatrix (ARDOUR::Session &, boost::shared_ptr<ARDOUR::Bundle>);
- void set_state (int, std::string const &, bool, uint32_t);
- bool get_state (int, std::string const &) const;
- uint32_t n_rows () const;
- uint32_t maximum_rows () const;
- uint32_t minimum_rows () const;
- std::string row_name (int) const;
- void add_row ();
- void remove_row (int);
- std::string row_descriptor () const;
-
- private:
-
- boost::shared_ptr<ARDOUR::UserBundle> _bundle;
+ void set_state (
+ boost::shared_ptr<ARDOUR::Bundle> ab,
+ uint32_t ac,
+ boost::shared_ptr<ARDOUR::Bundle> bb,
+ uint32_t bc,
+ bool s,
+ uint32_t k
+ );
+
+ bool get_state (
+ boost::shared_ptr<ARDOUR::Bundle> ab,
+ uint32_t ac,
+ boost::shared_ptr<ARDOUR::Bundle> bb,
+ uint32_t bc
+ ) const;
+
+ void add_channel (boost::shared_ptr<ARDOUR::Bundle>);
+ void remove_channel (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
+ bool can_rename_channels () const {
+ return true;
+ }
+ void rename_channel (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
};
class BundleEditor : public ArdourDialog
@@ -104,4 +114,22 @@ class BundleManager : public ArdourDialog
Gtk::Button delete_button;
};
+class NameChannelDialog : public ArdourDialog
+{
+public:
+ NameChannelDialog ();
+ NameChannelDialog (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
+
+ std::string get_name () const;
+
+private:
+
+ void setup ();
+
+ boost::shared_ptr<ARDOUR::Bundle> _bundle;
+ uint32_t _channel;
+ Gtk::Entry _name;
+ bool _adding;
+};
+
#endif