diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-21 01:55:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-21 01:55:46 +0000 |
commit | 4476461443061703e9ef268ade72511dff3e3ae5 (patch) | |
tree | 839890c2ad535fc49904659ff531998140a5edf5 /gtk2_ardour/port_matrix_body.h | |
parent | 61db2175eb8b8fffd0c1796ace78ac33c9e1adf0 (diff) |
More logical arrangement of port matrix inputs and outputs, hopefully;
signal show notionally "flow" from left to bottom or from top to right.
Some layout cleanups.
git-svn-id: svn://localhost/ardour2/branches/3.0@4416 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_body.h')
-rw-r--r-- | gtk2_ardour/port_matrix_body.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk2_ardour/port_matrix_body.h b/gtk2_ardour/port_matrix_body.h index 503bb3ab62..bb2d592fe8 100644 --- a/gtk2_ardour/port_matrix_body.h +++ b/gtk2_ardour/port_matrix_body.h @@ -33,7 +33,12 @@ class PortMatrix; class PortMatrixBody : public Gtk::EventBox { public: - PortMatrixBody (PortMatrix *); + enum Arrangement { + TOP_AND_RIGHT, + BOTTOM_AND_LEFT + }; + + PortMatrixBody (PortMatrix *, Arrangement); /** @return bundles to offer for columns */ std::vector<boost::shared_ptr<ARDOUR::Bundle> > const & column_bundles () { @@ -67,7 +72,7 @@ protected: bool on_button_press_event (GdkEventButton *); private: - void compute_divs (); + void compute_rectangles (); void repaint_column_labels (); void repaint_row_labels (); @@ -76,10 +81,12 @@ private: PortMatrixRowLabels _row_labels; PortMatrixGrid _grid; + Arrangement _arrangement; uint32_t _alloc_width; ///< allocated width uint32_t _alloc_height; ///< allocated height - uint32_t _alloc_xdiv; ///< position of the division between grid and row labels - uint32_t _alloc_ydiv; ///< position of the division between column labels and grid + Gdk::Rectangle _column_labels_rect; + Gdk::Rectangle _row_labels_rect; + Gdk::Rectangle _grid_rect; uint32_t _xoffset; uint32_t _yoffset; |