fix incorrect accumulation of export video options each time the dialog is used
[ardour.git] / gtk2_ardour / tempo_lines.h
index 99a6a6b93f03ddf704fb80834d282c9508b985d0..5d1d7d71faacd59d404bde770b8baae9900802b6 100644 (file)
 #ifndef __ardour_tempo_lines_h__
 #define __ardour_tempo_lines_h__
 
+#include "ardour/beats_samples_converter.h"
 #include "ardour/tempo.h"
 
 #include "canvas/line_set.h"
 
 class TempoLines {
 public:
-       TempoLines (ArdourCanvas::Container* group, double screen_height);
+       TempoLines (ArdourCanvas::Container* group, double screen_height, ARDOUR::BeatsSamplesConverter* bfc);
+       ~TempoLines ();
 
-       void tempo_map_changed();
+       void tempo_map_changed(samplepos_t new_origin);
 
-       void draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin, 
-                  const ARDOUR::TempoMap::BBTPointList::const_iterator& end);
+       void draw (std::vector<ARDOUR::TempoMap::BBTPoint>& grid,
+                  unsigned                                              divisions,
+                  ARDOUR::samplecnt_t                                    leftmost_sample,
+                  ARDOUR::samplecnt_t                                    sample_rate);
 
        void show();
        void hide();
 
 private:
+       void draw_ticks (std::vector<ARDOUR::TempoMap::BBTPoint>& grid,
+                        unsigned                                              divisions,
+                        ARDOUR::samplecnt_t                                    leftmost_sample,
+                        ARDOUR::samplecnt_t                                    sample_rate);
+
        ArdourCanvas::LineSet lines;
-       double                _height;
+       ARDOUR::BeatsSamplesConverter* _bfc;
 };
 
 #endif /* __ardour_tempo_lines_h__ */