summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_row_labels.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-02-03 01:55:25 +0000
committerCarl Hetherington <carl@carlh.net>2009-02-03 01:55:25 +0000
commitd06d697e41e2089ec4cce35ea17b4995797deab7 (patch)
tree2fa34519aa16b13acaa28a6b7aec02de99be7703 /gtk2_ardour/port_matrix_row_labels.h
parent6a9dc6b8d0ccc4b4849c3720ea5fb0606e52ce4b (diff)
Click and hold button 1 over a channel name in the port matrix highlights
connected channels. git-svn-id: svn://localhost/ardour2/branches/3.0@4484 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.h')
-rw-r--r--gtk2_ardour/port_matrix_row_labels.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.h b/gtk2_ardour/port_matrix_row_labels.h
index 85d59d139f..ae8319e044 100644
--- a/gtk2_ardour/port_matrix_row_labels.h
+++ b/gtk2_ardour/port_matrix_row_labels.h
@@ -22,7 +22,7 @@
#include <boost/shared_ptr.hpp>
#include <gdkmm/color.h>
-#include "port_matrix_component.h"
+#include "port_matrix_labels.h"
class PortMatrix;
class PortMatrixBody;
@@ -38,7 +38,7 @@ namespace Gtk {
}
/** The row labels part of the port matrix */
-class PortMatrixRowLabels : public PortMatrixComponent
+class PortMatrixRowLabels : public PortMatrixLabels
{
public:
PortMatrixRowLabels (PortMatrix *, PortMatrixBody *);
@@ -50,17 +50,19 @@ public:
double component_to_parent_y (double y) const;
double parent_to_component_y (double y) const;
void mouseover_changed (PortMatrixNode const &);
- void draw_extra (cairo_t* cr);
private:
+ void render_channel_name (cairo_t *, Gdk::Color, double, double, ARDOUR::BundleChannel const &);
+ double channel_x (ARDOUR::BundleChannel const &) const;
+ double channel_y (ARDOUR::BundleChannel const &) const;
+
void render (cairo_t *);
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, ARDOUR::BundleChannel const &);
- double channel_y (ARDOUR::BundleChannel const &) const;
- void queue_draw_for (PortMatrixNode const &);
+ void queue_draw_for (ARDOUR::BundleChannel const &);
double port_name_x () const;
+ void maybe_popup_context_menu (double, double, uint32_t);
double _longest_port_name;
double _longest_bundle_name;