summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_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_column_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_column_labels.h')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.h b/gtk2_ardour/port_matrix_column_labels.h
index 6ed87e9628..4cf59ad732 100644
--- a/gtk2_ardour/port_matrix_column_labels.h
+++ b/gtk2_ardour/port_matrix_column_labels.h
@@ -21,7 +21,7 @@
#define __port_matrix_column_labels_h__
#include <boost/shared_ptr.hpp>
-#include "port_matrix_component.h"
+#include "port_matrix_labels.h"
namespace ARDOUR {
class Bundle;
@@ -31,7 +31,7 @@ namespace ARDOUR {
class PortMatrixNode;
/** The column labels part of the port matrix */
-class PortMatrixColumnLabels : public PortMatrixComponent
+class PortMatrixColumnLabels : public PortMatrixLabels
{
public:
PortMatrixColumnLabels (PortMatrix *, PortMatrixBody *);
@@ -43,15 +43,17 @@ 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 *);
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 queue_draw_for (ARDOUR::BundleChannel const &);
+ void maybe_popup_context_menu (int, uint32_t);
+
void render (cairo_t *);
void compute_dimensions ();
double basic_text_x_pos (int) const;
- void render_port_name (cairo_t *, Gdk::Color, double, double, ARDOUR::BundleChannel const &);
- double channel_x (ARDOUR::BundleChannel const &) const;
- void queue_draw_for (PortMatrixNode const &);
std::vector<std::pair<double, double> > port_name_shape (double, double) const;
double slanted_height () const {