Move duplicated AudioFileSource::Flags and SMFSource::Flags into Source.
[ardour.git] / gtk2_ardour / port_matrix_component.h
index 7531e44bddd81cf06ed8ea488bdd00139a669a48..9eb2c566a5e56406c45868c96acd22d916aabd1c 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <gtkmm/eventbox.h>
 
+class PortMatrix;
 class PortMatrixBody;
 class PortMatrixNode;
 
@@ -31,7 +32,7 @@ class PortMatrixNode;
 class PortMatrixComponent
 {
 public:
-       PortMatrixComponent (PortMatrixBody *);
+       PortMatrixComponent (PortMatrix *, PortMatrixBody *);
        virtual ~PortMatrixComponent ();
 
        virtual double component_to_parent_x (double x) const = 0;
@@ -140,8 +141,8 @@ protected:
                return Gdk::Color ("#ff0000");
        }
 
-       /** @return colour to paint mouseover lines */
-       static Gdk::Color mouseover_port_colour () {
+       /** @return colour to paint channel highlights */
+       static Gdk::Color highlighted_channel_colour () {
                return Gdk::Color ("#777777");
        }
 
@@ -174,6 +175,7 @@ protected:
         */
        virtual void compute_dimensions () = 0;
 
+       PortMatrix* _matrix;
        PortMatrixBody* _body; ///< the PortMatrixBody that we're in
        uint32_t _width; ///< full width of the contents
        uint32_t _height; ///< full height of the contents