diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-20 22:01:22 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-20 22:01:22 +0000 |
commit | 85c2fd2b692e37dd1c5049229fb5733e0e262cc3 (patch) | |
tree | 5af5c5e9d6607854f6fdd2ccdaf735ba656d6ffd /gtk2_ardour/port_matrix.h | |
parent | 7a76e8ae96c20b270dd3104328f8bee199c9a770 (diff) |
Add a menu option and key press (F) in port matrices to flip the selected row and columns in the matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@12804 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.h')
-rw-r--r-- | gtk2_ardour/port_matrix.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.h b/gtk2_ardour/port_matrix.h index 5614293e45..76ead4bee9 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. */ @@ -199,10 +202,12 @@ private: void add_disassociate_option (Gtk::Menu_Helpers::MenuList &, boost::weak_ptr<ARDOUR::Bundle>, int, int); void port_connected_or_disconnected (); void update_tab_highlighting (); + std::pair<int, int> 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; |