X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftempo_lines.h;h=99a6a6b93f03ddf704fb80834d282c9508b985d0;hb=4167e83972331e8a5be08c76cc3dccd409c6ac5e;hp=f4ee293e29118694f292813d0513094721992d8d;hpb=37b1f5017e904005fae6b815b1519b3fa595d8d3;p=ardour.git diff --git a/gtk2_ardour/tempo_lines.h b/gtk2_ardour/tempo_lines.h index f4ee293e29..99a6a6b93f 100644 --- a/gtk2_ardour/tempo_lines.h +++ b/gtk2_ardour/tempo_lines.h @@ -19,29 +19,24 @@ #ifndef __ardour_tempo_lines_h__ #define __ardour_tempo_lines_h__ -#include #include "ardour/tempo.h" +#include "canvas/line_set.h" + class TempoLines { public: - TempoLines(ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double screen_height); + TempoLines (ArdourCanvas::Container* 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 Lines; - Lines _lines; - Lines _cache; - - ArdourCanvas::Canvas& _canvas; - ArdourCanvas::Group* _group; + ArdourCanvas::LineSet lines; double _height; };