#include <wx/graphics.h>
#include <boost/foreach.hpp>
+using std::list;
using boost::shared_ptr;
TimelineContentView::TimelineContentView (Timeline& tl, shared_ptr<Content> c)
}
void
-TimelineContentView::do_paint (wxGraphicsContext* gc)
+TimelineContentView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> > overlaps)
{
DCPOMATIC_ASSERT (_track);
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 name = std_to_wx (cont->summary());
wxDouble name_width;