a-fluidsynth: implement LV2_BANKPATCH__notify
[ardour.git] / gtk2_ardour / marker.h
index b769f8d1100fb630dc15319b3998cf7a1de6f892..391653f0901c3daf5a12d64bf53d190af1204eb0 100644 (file)
@@ -38,9 +38,13 @@ namespace ARDOUR {
 
 class PublicEditor;
 
+/** Location Marker
+ *
+ * Editor ruler representation of a location marker or range on the timeline.
+ */
 class ArdourMarker : public sigc::trackable
 {
-  public:
+public:
        enum Type {
                Mark,
                Tempo,
@@ -57,7 +61,7 @@ class ArdourMarker : public sigc::trackable
 
 
        ArdourMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, Type,
-               framepos_t frame = 0, bool handle_events = true);
+                     framepos_t frame = 0, bool handle_events = true);
 
        virtual ~ArdourMarker ();
 
@@ -73,6 +77,7 @@ class ArdourMarker : public sigc::trackable
 
        void set_position (framepos_t);
        void set_name (const std::string&);
+       void set_points_color (uint32_t rgba);
        void set_color_rgba (uint32_t rgba);
        void setup_line ();
 
@@ -95,7 +100,7 @@ class ArdourMarker : public sigc::trackable
 
        bool label_on_left () const;
 
-  protected:
+protected:
        PublicEditor& editor;
 
        Pango::FontDescription name_font;
@@ -103,7 +108,7 @@ class ArdourMarker : public sigc::trackable
        ArdourCanvas::Container* _parent;
        ArdourCanvas::Container *group;
        ArdourCanvas::Polygon *mark;
-        ArdourCanvas::Text *_name_item;
+       ArdourCanvas::Text *_name_item;
        ArdourCanvas::Points *points;
        ArdourCanvas::Line* _track_canvas_line;
        ArdourCanvas::Rectangle* _name_background;
@@ -119,6 +124,7 @@ class ArdourMarker : public sigc::trackable
        bool         _line_shown;
        double       _canvas_height;
        uint32_t     _color;
+       uint32_t     _points_color;
        double       _left_label_limit; ///< the number of pixels available to the left of this marker for a label
        double       _right_label_limit; ///< the number of pixels available to the right of this marker for a label
        double       _label_offset;
@@ -136,11 +142,12 @@ private:
 class TempoMarker : public ArdourMarker
 {
   public:
-        TempoMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::TempoSection&);
+       TempoMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::TempoSection&);
        ~TempoMarker ();
 
        ARDOUR::TempoSection& tempo() const { return _tempo; }
 
+       void update_height_mark (const double ratio);
   private:
        ARDOUR::TempoSection& _tempo;
 };
@@ -148,7 +155,7 @@ class TempoMarker : public ArdourMarker
 class MeterMarker : public ArdourMarker
 {
   public:
-        MeterMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::MeterSection&);
+       MeterMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, ARDOUR::MeterSection&);
        ~MeterMarker ();
 
        ARDOUR::MeterSection& meter() const { return _meter; }