Prevent note creation drags with no movement of the pointer. May fix #3159.
[ardour.git] / gtk2_ardour / port_group.h
index ebab997699d2a8b07b4bd684a2c4d70db9017175..17d1963e1908632a9d576dee907ad8ae57794267 100644 (file)
@@ -24,7 +24,7 @@
 #include <string>
 #include <set>
 #include <boost/shared_ptr.hpp>
-#include <boost/signals2.hpp>
+#include "pbd/signals.h"
 
 #include <gtkmm/widget.h>
 #include <gtkmm/checkbutton.h>
@@ -60,16 +60,17 @@ public:
        void clear ();
        uint32_t total_channels () const;
        boost::shared_ptr<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) const;
+       void remove_duplicates ();
 
        std::string name; ///< name for the group
 
        bool has_port (std::string const &) const;
 
        /** The bundle list has changed in some way; a bundle has been added or removed, or the list cleared etc. */
-       sigc::signal<void> Changed;
+       PBD::Signal0<void> Changed;
 
        /** An individual bundle on our list has changed in some way */
-       boost::signals2::signal<void(ARDOUR::Bundle::Change)> BundleChanged;
+       PBD::Signal1<void,ARDOUR::Bundle::Change> BundleChanged;
 
        struct BundleRecord {
            boost::shared_ptr<ARDOUR::Bundle> bundle;
@@ -78,7 +79,7 @@ public:
            boost::shared_ptr<ARDOUR::IO> io; 
            Gdk::Color colour;
            bool has_colour;
-           boost::signals2::scoped_connection changed_connection;
+           PBD::ScopedConnection changed_connection;
 
            BundleRecord (boost::shared_ptr<ARDOUR::Bundle>, boost::shared_ptr<ARDOUR::IO>, Gdk::Color, bool has_colour);
        };
@@ -132,10 +133,10 @@ class PortGroupList : public sigc::trackable
        bool empty () const;
 
        /** The group list has changed in some way; a group has been added or removed, or the list cleared etc. */
-       boost::signals2::signal<void()> Changed;
+       PBD::Signal0<void> Changed;
 
        /** A bundle in one of our groups has changed */
-       boost::signals2::signal<void(ARDOUR::Bundle::Change)> BundleChanged;
+       PBD::Signal1<void,ARDOUR::Bundle::Change> BundleChanged;
 
   private:
        bool port_has_prefix (std::string const &, std::string const &) const;
@@ -152,6 +153,7 @@ class PortGroupList : public sigc::trackable
        mutable PortGroup::BundleList _bundles;
        List _groups;
        PBD::ScopedConnectionList _bundle_changed_connections;
+       PBD::ScopedConnectionList _changed_connections;
        bool _signals_suspended;
        bool _pending_change;
        ARDOUR::Bundle::Change _pending_bundle_change;