Prepare central engine check and user notification
[ardour.git] / gtk2_ardour / bundle_manager.h
index 0bad5b210851f5655b344e9f24a30360069d7c12..f553b5cccd60b4b557dbd9ee7800f49cf4d6bf1b 100644 (file)
 #ifndef __ardour_ui_bundle_manager_h__
 #define __ardour_ui_bundle_manager_h__
 
-#include <gtkmm/treeview.h>
-#include <gtkmm/liststore.h>
 #include <gtkmm/entry.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/treeview.h>
+
+#include "ardour/user_bundle.h"
+
 #include "ardour_dialog.h"
 #include "port_matrix.h"
 
@@ -33,15 +36,15 @@ namespace ARDOUR {
 
 class BundleEditorMatrix : public PortMatrix
 {
-  public:
+public:
        BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr<ARDOUR::Bundle>);
 
        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<ARDOUR::Bundle>) const;
+       bool can_add_channels (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;
@@ -51,7 +54,7 @@ class BundleEditorMatrix : public PortMatrix
 
        std::string disassociation_verb () const;
 
-  private:
+private:
        enum {
                OTHER = 0,
                OURS = 1
@@ -63,13 +66,13 @@ class BundleEditorMatrix : public PortMatrix
 
 class BundleEditor : public ArdourDialog
 {
-  public:
+public:
        BundleEditor (ARDOUR::Session *, boost::shared_ptr<ARDOUR::UserBundle>);
 
-  protected:
+protected:
        void on_map ();
 
-  private:
+private:
        void name_changed ();
        void input_or_output_changed ();
        void on_show ();
@@ -82,10 +85,10 @@ class BundleEditor : public ArdourDialog
 
 class BundleManager : public ArdourDialog
 {
-  public:
+public:
        BundleManager (ARDOUR::Session *);
 
-  private:
+private:
 
        void new_clicked ();
        void edit_clicked ();
@@ -103,7 +106,7 @@ class BundleManager : public ArdourDialog
                        add (bundle);
                }
 
-               Gtk::TreeModelColumn<Glib::ustring> name;
+               Gtk::TreeModelColumn<std::string> name;
                Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::UserBundle> > bundle;
        };
 
@@ -128,7 +131,6 @@ private:
        void setup ();
 
        boost::shared_ptr<ARDOUR::Bundle> _bundle;
-       uint32_t _channel;
        Gtk::Entry _name;
        bool _adding;
 };