use Canvas::LineSet for tempolines rather than N different Canvas::Line items plus...
[ardour.git] / gtk2_ardour / tempo_lines.h
index f4ee293e29118694f292813d0513094721992d8d..e096df54af83f77cf139598b9f40270be6cd71fc 100644 (file)
 #ifndef __ardour_tempo_lines_h__
 #define __ardour_tempo_lines_h__
 
-#include <list>
 #include "ardour/tempo.h"
 
+#include "canvas/line_set.h"
+
 class TempoLines {
 public:
-       TempoLines(ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double screen_height);
+       TempoLines (ArdourCanvas::Group* group, double screen_height);
 
        void tempo_map_changed();
 
        void draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin, 
-                  const ARDOUR::TempoMap::BBTPointList::const_iterator& end, 
-                  double frames_per_unit);
+                  const ARDOUR::TempoMap::BBTPointList::const_iterator& end);
 
        void show();
        void hide();
 
 private:
-        typedef std::list<ArdourCanvas::Line*> Lines;
-       Lines _lines;
-        Lines _cache;
-
-        ArdourCanvas::Canvas& _canvas;
-       ArdourCanvas::Group*  _group;
+       ArdourCanvas::LineSet lines;
        double                _height;
 };