diff options
author | David Robillard <d@drobilla.net> | 2007-08-05 21:31:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-05 21:31:02 +0000 |
commit | 7c950f279b4297b5fe43c622caa538329a554b4d (patch) | |
tree | 5943343c7d919a8cdfd23962ac65ad093205e752 /gtk2_ardour/editor_canvas.cc | |
parent | 873ab9bbb14a1be16f15a0e2feff66c6f227c85d (diff) |
Pulled tempo line stuff out into it's own relatively self-contained class.
Draw tempo lines on time canvas and connect them up all pretty-like to the ruler ticks.
Still needs some visual tweaking, but... they draw! Finally!
git-svn-id: svn://localhost/ardour2/trunk@2247 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 55a8c47b01..c5a8695158 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -143,10 +143,10 @@ Editor::initialize_canvas () verbose_cursor_visible = false; - /* a group to hold time (measure) lines */ + cursor_group = new ArdourCanvas::Group (*track_canvas.root(), 0.0, 0.0); time_line_group = new ArdourCanvas::Group (*track_canvas.root(), 0.0, 0.0); - cursor_group = new ArdourCanvas::Group (*track_canvas.root(), 0.0, 0.0); + tempo_lines = new TempoLines(track_canvas, time_line_group); time_canvas.set_name ("EditorTimeCanvas"); time_canvas.add_events (Gdk::POINTER_MOTION_HINT_MASK); @@ -154,6 +154,9 @@ Editor::initialize_canvas () time_canvas.set_center_scroll_region (false); time_canvas.set_dither (Gdk::RGB_DITHER_NONE); + marker_time_line_group = new ArdourCanvas::Group (*time_canvas.root(), 0.0, 0.0); + marker_tempo_lines = new TempoLines(time_canvas, marker_time_line_group); + meter_group = new ArdourCanvas::Group (*time_canvas.root(), 0.0, 0.0); tempo_group = new ArdourCanvas::Group (*time_canvas.root(), 0.0, timebar_height); marker_group = new ArdourCanvas::Group (*time_canvas.root(), 0.0, timebar_height * 2.0); |