X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftempo_lines.h;h=99a6a6b93f03ddf704fb80834d282c9508b985d0;hb=026c71331e87c1c4a1aaef6ad7ddc1cd0919c660;hp=912a77aea2cbd0795b8cf3d640eae8c702f6edb4;hpb=20d7c58b83fde884c03d78220dc8b0dbd7bd2901;p=ardour.git diff --git a/gtk2_ardour/tempo_lines.h b/gtk2_ardour/tempo_lines.h index 912a77aea2..99a6a6b93f 100644 --- a/gtk2_ardour/tempo_lines.h +++ b/gtk2_ardour/tempo_lines.h @@ -19,12 +19,13 @@ #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(); @@ -35,12 +36,7 @@ public: void hide(); private: - typedef std::list Lines; - Lines _lines; - Lines _cache; - - ArdourCanvas::Canvas& _canvas; - ArdourCanvas::Group* _group; + ArdourCanvas::LineSet lines; double _height; };