From 4b78e056951be65e59a3eded5a290915ec966211 Mon Sep 17 00:00:00 2001 From: cantabile Date: Tue, 12 Jun 2012 02:59:41 +0000 Subject: [PATCH] Video box: tweak the tab order Move the slider before the buttons, and move the video display before the slider. Originally committed to SVN as r6895. --- aegisub/src/video_box.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aegisub/src/video_box.cpp b/aegisub/src/video_box.cpp index 3524b1d27..daf23a738 100644 --- a/aegisub/src/video_box.cpp +++ b/aegisub/src/video_box.cpp @@ -79,6 +79,10 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached, agi::Context *context) : wxPanel(parent,-1) , context(context) { + // Seek + VideoSlider *videoSlider = new VideoSlider(this, context); + videoSlider->SetToolTip(_("Seek video")); + // Buttons wxSizer *videoBottomSizer = new wxBoxSizer(wxHORIZONTAL); add_button(this, videoBottomSizer, "video/play", context); @@ -86,10 +90,6 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached, agi::Context *context) add_button(this, videoBottomSizer, "video/stop", context); videoBottomSizer->Add(new ToggleBitmap(this, context, "video/opt/autoscroll", 24, "Video"), 0, wxTOP | wxLEFT | wxBOTTOM | wxALIGN_CENTER, 2); - // Seek - VideoSlider *videoSlider = new VideoSlider(this, context); - videoSlider->SetToolTip(_("Seek video")); - // Position VideoPosition = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(110,20),wxTE_READONLY); VideoPosition->SetToolTip(_("Current frame time and number")); @@ -117,6 +117,7 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached, agi::Context *context) visualSubToolBar->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); VideoDisplay *videoDisplay = new VideoDisplay(visualSubToolBar, isDetached, zoomBox, this, context); + videoDisplay->MoveBeforeInTabOrder(videoSlider); wxSizer *toolbarSizer = new wxBoxSizer(wxVERTICAL); toolbarSizer->Add(visualToolBar, wxSizerFlags(1));