X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftempo_lines.h;h=1ab71e0681e1194e42ca85f0dbc080935b1a1b0c;hb=2292e33ee418070c4d12971a72e01eb29dfc8de9;hp=7d276595e45bcc3b7dff9e02cb6277a5b9f43987;hpb=95d82d7a16b241632bd3d35a5c11c27e7e257984;p=ardour.git diff --git a/gtk2_ardour/tempo_lines.h b/gtk2_ardour/tempo_lines.h index 7d276595e4..1ab71e0681 100644 --- a/gtk2_ardour/tempo_lines.h +++ b/gtk2_ardour/tempo_lines.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,12 +22,12 @@ #include #include #include -#include +#include "ardour/tempo.h" #include "canvas.h" #include "simpleline.h" typedef boost::fast_pool_allocator< - std::pair, + std::pair, boost::default_user_allocator_new_delete, boost::details::pool::null_mutex, 8192> @@ -35,11 +35,13 @@ typedef boost::fast_pool_allocator< class TempoLines { public: - TempoLines(ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group); + TempoLines(ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double screen_height); void tempo_map_changed(); - void draw(ARDOUR::TempoMap::BBTPointList& points, double frames_per_unit); + void draw(const ARDOUR::TempoMap::BBTPointList::const_iterator& begin, + const ARDOUR::TempoMap::BBTPointList::const_iterator& end, + double frames_per_unit); void show(); void hide(); @@ -52,6 +54,7 @@ private: ArdourCanvas::Group* _group; double _clean_left; double _clean_right; + double _height; }; #endif /* __ardour_tempo_lines_h__ */