summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-14 23:08:19 +0000
committerDavid Robillard <d@drobilla.net>2008-09-14 23:08:19 +0000
commitcca19c11d42a591d33ccdcf65de2c6d54f6654fc (patch)
treed4b3b06d65df6223f8bbd3f4301a705d3d1ee839 /gtk2_ardour/editor_canvas.cc
parent92b249074a5156419f7a28071077f2bfc89a680e (diff)
Prevent tempo lines from stealing events, but break marker bars visually when scrolled down...
git-svn-id: svn://localhost/ardour2/branches/3.0@3730 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r--gtk2_ardour/editor_canvas.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc
index 46fb9b1865..51093f3bcf 100644
--- a/gtk2_ardour/editor_canvas.cc
+++ b/gtk2_ardour/editor_canvas.cc
@@ -95,6 +95,7 @@ static void ardour_canvas_type_init()
#endif
}
+
void
Editor::initialize_canvas ()
{
@@ -163,7 +164,7 @@ Editor::initialize_canvas ()
}
_master_group = new ArdourCanvas::Group (*track_canvas->root());
- _bar_group = new ArdourCanvas::Group (*track_canvas->root());
+ _bar_group = new ArdourCanvas::Group (*_master_group);
_trackview_group = new ArdourCanvas::Group (*_master_group);
_region_motion_group = new ArdourCanvas::Group (*_master_group);
@@ -201,13 +202,13 @@ Editor::initialize_canvas ()
/* a group to hold time (measure) lines */
- time_line_group = new ArdourCanvas::Group (*_master_group, 0.0, 0.0);
+ time_line_group = new ArdourCanvas::Group(*_master_group, 0.0, 0.0);
range_marker_drag_rect = new ArdourCanvas::SimpleRect (*time_line_group, 0.0, 0.0, 0.0, 0.0);
//range_marker_drag_rect = new ArdourCanvas::SimpleRect (*_master_group, 0.0, 0.0, 0.0, 0.0);
range_marker_drag_rect->hide ();
- timebar_group = new ArdourCanvas::Group (*track_canvas->root());
+ timebar_group = new ArdourCanvas::Group (*_master_group);
cursor_group = new ArdourCanvas::Group (*track_canvas->root(), 0.0, 0.0);
meter_group = new ArdourCanvas::Group (*timebar_group, 0.0, timebar_height * 5.0);
@@ -246,7 +247,11 @@ Editor::initialize_canvas ()
transport_loop_range_rect->lower_to_bottom (); // loop on the bottom
- _bar_group->lower_to_bottom(); // below tempo lines
+ time_line_group->lower_to_bottom();
+ _trackview_group->raise_to_top();
+ _bar_group->raise_to_top();
+ timebar_group->raise_to_top();
+ timebar_group->raise(1);
transport_punchin_line = new ArdourCanvas::SimpleLine (*_master_group);
transport_punchin_line->property_x1() = 0.0;
@@ -255,7 +260,7 @@ Editor::initialize_canvas ()
transport_punchin_line->property_y2() = 0.0;
transport_punchin_line->hide ();
- transport_punchout_line = new ArdourCanvas::SimpleLine (*_master_group);
+ transport_punchout_line = new ArdourCanvas::SimpleLine (*_master_group);
transport_punchout_line->property_x1() = 0.0;
transport_punchout_line->property_y1() = 0.0;
transport_punchout_line->property_x2() = 0.0;