diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-30 15:08:09 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-30 15:08:09 +0000 |
commit | a384dab13095f3d909e52eff9e6170ae55416601 (patch) | |
tree | c8af98d36927095909f54d3e8e8819af4c98b184 /gtk2_ardour/port_matrix_row_labels.h | |
parent | 24aab941eb4d77e5bdf3933b11f8ce5659872b52 (diff) |
More port matrix re-working. Global matrix now has separate visibility buttons
for ins and outs. The matrix will now be arranged so that more ports are labelled
horizontally than vertically, to aid readability.
git-svn-id: svn://localhost/ardour2/branches/3.0@4467 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.h')
-rw-r--r-- | gtk2_ardour/port_matrix_row_labels.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.h b/gtk2_ardour/port_matrix_row_labels.h index ce77dc8294..85d59d139f 100644 --- a/gtk2_ardour/port_matrix_row_labels.h +++ b/gtk2_ardour/port_matrix_row_labels.h @@ -27,26 +27,21 @@ class PortMatrix; class PortMatrixBody; class PortMatrixNode; -class PortMatrixBundleChannel; namespace ARDOUR { class Bundle; + class BundleChannel; } namespace Gtk { class Menu; } +/** The row labels part of the port matrix */ class PortMatrixRowLabels : public PortMatrixComponent { public: - enum Location { - LEFT, - RIGHT - }; - - PortMatrixRowLabels (PortMatrix *, PortMatrixBody *, Location); - ~PortMatrixRowLabels (); + PortMatrixRowLabels (PortMatrix *, PortMatrixBody *); void button_press (double, double, int, uint32_t); @@ -62,17 +57,14 @@ private: void compute_dimensions (); void remove_channel_proxy (boost::weak_ptr<ARDOUR::Bundle>, uint32_t); void rename_channel_proxy (boost::weak_ptr<ARDOUR::Bundle>, uint32_t); - void render_port_name (cairo_t *, Gdk::Color, double, double, PortMatrixBundleChannel const &); - double channel_y (PortMatrixBundleChannel const &) const; + void render_port_name (cairo_t *, Gdk::Color, double, double, ARDOUR::BundleChannel const &); + double channel_y (ARDOUR::BundleChannel const &) const; void queue_draw_for (PortMatrixNode const &); double port_name_x () const; - PortMatrix* _port_matrix; double _longest_port_name; double _longest_bundle_name; double _highest_group_name; - Gtk::Menu* _menu; - Location _location; }; #endif |