2007-08-05 17:31:02 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2000-2007 Paul Davis
|
2007-08-05 17:31:02 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ardour_tempo_lines_h__
|
|
|
|
#define __ardour_tempo_lines_h__
|
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/tempo.h"
|
2007-08-05 17:31:02 -04:00
|
|
|
|
2014-06-09 15:39:57 -04:00
|
|
|
#include "canvas/line_set.h"
|
|
|
|
|
2007-08-05 17:31:02 -04:00
|
|
|
class TempoLines {
|
|
|
|
public:
|
2014-06-22 11:41:05 -04:00
|
|
|
TempoLines (ArdourCanvas::Container* group, double screen_height);
|
2008-09-23 18:23:39 -04:00
|
|
|
|
|
|
|
void tempo_map_changed();
|
2007-08-05 17:31:02 -04:00
|
|
|
|
2013-04-21 15:06:09 -04:00
|
|
|
void draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
|
2015-01-07 08:37:20 -05:00
|
|
|
const ARDOUR::TempoMap::BBTPointList::const_iterator& end,
|
2015-01-07 19:05:21 -05:00
|
|
|
unsigned divisions,
|
2015-01-07 08:37:20 -05:00
|
|
|
framecnt_t leftmost_frame,
|
|
|
|
framecnt_t frame_rate);
|
2008-09-23 18:23:39 -04:00
|
|
|
|
|
|
|
void show();
|
2007-08-05 17:31:02 -04:00
|
|
|
void hide();
|
|
|
|
|
|
|
|
private:
|
2015-01-07 08:37:20 -05:00
|
|
|
void draw_ticks (const ARDOUR::TempoMap::BBTPointList::const_iterator& b,
|
2015-01-07 19:05:21 -05:00
|
|
|
unsigned divisions,
|
2015-01-07 08:37:20 -05:00
|
|
|
framecnt_t leftmost_frame,
|
|
|
|
framecnt_t frame_rate);
|
|
|
|
|
2014-06-09 15:39:57 -04:00
|
|
|
ArdourCanvas::LineSet lines;
|
2007-08-05 17:31:02 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_tempo_lines_h__ */
|