-
- wxString name = wxString::Format (wxT ("%s [%s]"), std_to_wx (cont->summary()).data(), type().data());
- wxDouble name_width;
- wxDouble name_height;
- wxDouble name_descent;
- wxDouble name_leading;
- gc->GetTextExtent (name, &name_width, &name_height, &name_descent, &name_leading);
-
- gc->Clip (wxRegion (time_x (position), y_pos (_track.get()), len.seconds() * _timeline.pixels_per_second().get_value_or(0), _timeline.track_height()));
+
+ /* Reel split points */
+ gc->SetPen (*wxThePenList->FindOrCreatePen (foreground_colour(), 1, wxPENSTYLE_DOT));
+ BOOST_FOREACH (DCPTime i, cont->reel_split_points(film)) {
+ path = gc->CreatePath ();
+ path.MoveToPoint (time_x (i), y_pos (_track.get()) + 4);
+ path.AddLineToPoint (time_x (i), y_pos (_track.get() + 1) - 4);
+ gc->StrokePath (path);
+ }
+
+ /* Overlaps */
+ gc->SetBrush (*wxTheBrushList->FindOrCreateBrush (foreground_colour(), wxBRUSHSTYLE_CROSSDIAG_HATCH));
+ for (list<dcpomatic::Rect<int> >::const_iterator i = overlaps.begin(); i != overlaps.end(); ++i) {
+ gc->DrawRectangle (i->x, i->y + 4, i->width, i->height - 8);
+ }
+
+ /* Label text */
+ wxString lab = label ();
+ wxDouble lab_width;
+ wxDouble lab_height;
+ wxDouble lab_descent;
+ wxDouble lab_leading;