only the last step-edited note remains selected after each note addition; waf install...
[ardour.git] / gtk2_ardour / io_selector.h
index 11454f8531e0228ae208cfc9ab00a0e4a4d4d14d..32946fb1b7718c4687eddd126ef0e005d104ee1b 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "ardour_dialog.h"
 #include "port_matrix.h"
-#include "i18n.h"
 
 namespace ARDOUR {
        class PortInsert;
@@ -36,13 +35,8 @@ class IOSelector : public PortMatrix
        void set_state (ARDOUR::BundleChannel c[2], bool);
        PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const;
 
-       std::string disassociation_verb () const {
-               return _("Disconnect");
-       }
-
-       std::string channel_noun () const {
-               return _("port");
-       }
+       std::string disassociation_verb () const;
+       std::string channel_noun () const;
 
        uint32_t n_io_ports () const;
        boost::shared_ptr<ARDOUR::IO> const io () { return _io; }
@@ -63,11 +57,16 @@ class IOSelector : public PortMatrix
 
   private:
 
+       void setup_type ();
+       void io_changed ();
+       void io_changed_proxy ();
+       
        int _other;
        int _ours;
        boost::shared_ptr<ARDOUR::IO> _io;
        boost::shared_ptr<PortGroup> _port_group;
        bool _find_inputs_for_io_outputs;
+       PBD::ScopedConnection _io_connection;
 };
 
 class IOSelectorWindow : public Gtk::Window