X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fport_matrix.h;h=2b5e9ce31d1c3a874b015f20e6955f52f1f355ca;hb=0bf7323df3e28f108fea525549ba2f8edbfc432d;hp=be276c0484d6ac3d2e41c814fa3b6fbae46b16e8;hpb=57bd915d66decfc297ca987327c7fb1a2649ddaf;p=ardour.git diff --git a/gtk2_ardour/port_matrix.h b/gtk2_ardour/port_matrix.h index be276c0484..2b5e9ce31d 100644 --- a/gtk2_ardour/port_matrix.h +++ b/gtk2_ardour/port_matrix.h @@ -130,6 +130,9 @@ public: PortMatrixNode::State get_association (PortMatrixNode) const; + void flip (); + bool key_press (GdkEventKey *); + /** @param c Channels; where c[0] is from _ports[0] and c[1] is from _ports[1]. * @param s New state. */ @@ -185,7 +188,7 @@ private: void disassociate_all_on_channel (boost::weak_ptr, uint32_t, int); void disassociate_all_on_bundle (boost::weak_ptr, int); void setup_global_ports (); - void setup_global_ports_proxy (); + void setup_global_ports_proxy (ARDOUR::RouteSortOrderKey); void toggle_show_only_bundles (); bool on_scroll_event (GdkEventScroll *); boost::shared_ptr io_from_bundle (boost::shared_ptr) const; @@ -198,10 +201,13 @@ private: void add_remove_option (Gtk::Menu_Helpers::MenuList &, boost::weak_ptr, int); void add_disassociate_option (Gtk::Menu_Helpers::MenuList &, boost::weak_ptr, int, int); void port_connected_or_disconnected (); + void update_tab_highlighting (); + std::pair check_flip () const; + bool can_flip () const; Gtk::Window* _parent; - /// port type that we are working with, or NIL if we are working with all of them + /** port type that we are working with, or NIL if we are working with all of them */ ARDOUR::DataType _type; PBD::ScopedConnectionList _route_connections; PBD::ScopedConnectionList _changed_connections;