From: Carl Hetherington Date: Sun, 24 Apr 2016 23:32:58 +0000 (+0100) Subject: Move reel markers to the top of the timeline (#846). X-Git-Tag: v2.7.15~4 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=740977ac39b3b1ae64bd06efce0a3bf9d188dd67 Move reel markers to the top of the timeline (#846). --- diff --git a/ChangeLog b/ChangeLog index 04a7a77d5..d2b7505ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-04-25 Carl Hetherington + + * Move the reel markers to the top of the timeline (#846). + 2016-04-22 c.hetherington * Arrange buttons to consume less vertical space in the diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 9a86ada12..786d70721 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -77,7 +77,7 @@ Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr film) SetMinSize (wxSize (640, tracks() * track_height() + 96)); - _tracks_position = Position (_labels_view->bbox().width, 8); + _tracks_position = Position (_labels_view->bbox().width, 32); _film_changed_connection = film->Changed.connect (bind (&Timeline::film_changed, this, _1)); _film_content_changed_connection = film->ContentChanged.connect (bind (&Timeline::film_content_changed, this, _2, _3)); @@ -246,7 +246,7 @@ Timeline::assign_tracks () } _time_axis_view->set_y (tracks() * track_height() + 64); - _reels_view->set_y (tracks() * track_height() + 32); + _reels_view->set_y (8); } int diff --git a/src/wx/timeline_labels_view.cc b/src/wx/timeline_labels_view.cc index 9b55c2bd0..3a809bfff 100644 --- a/src/wx/timeline_labels_view.cc +++ b/src/wx/timeline_labels_view.cc @@ -58,7 +58,7 @@ TimelineLabelsView::do_paint (wxGraphicsContext* gc, list > { int const h = _timeline.track_height (); gc->SetFont (gc->CreateFont(wxNORMAL_FONT->Bold(), wxColour (0, 0, 0))); - gc->DrawText (_("Video"), 0, h / 2); - gc->DrawText (_("Subtitles"), 0, 5 * h / 2); - gc->DrawText (_("Audio"), 0, h + max (_timeline.tracks(), 2) * h / 2); + gc->DrawText (_("Video"), 0, _timeline.tracks_position().y + h - 8); + gc->DrawText (_("Subtitles"), 0, _timeline.tracks_position().y + 5 * h / 2 - 8); + gc->DrawText (_("Audio"), 0, _timeline.tracks_position().y + (3 + max (_timeline.tracks(), 3)) * h / 2 - 8); }