From 62f94c5a6ccf2ac820f740a9ac73fc39e05e7d4c Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Mon, 20 Feb 2006 22:15:34 +0000 Subject: [PATCH] Alt+Left/Right on the video seek bar will now seek by increments of 10 frames (increment is customizeable in config.dat) Originally committed to SVN as r83. --- core/changelog.txt | 1 + core/options.cpp | 1 + core/video_slider.cpp | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/core/changelog.txt b/core/changelog.txt index f573ac708..bc5c24cb2 100644 --- a/core/changelog.txt +++ b/core/changelog.txt @@ -31,6 +31,7 @@ Please visit http://aegisub.net to download latest version - Fixed some bugs related to inserting overrides via the buttons over the edit box (AMZ) - Implemented Redo (AMZ) - Fonts collector will now default collection to same folder as script (Set to "?script" on config.dat) (AMZ) +- Alt+Left/Right on the video seek bar will now seek by increments of 10 frames (increment is customizeable in config.dat) (AMZ) = 1.09 beta - 2006.01.16 =========================== diff --git a/core/options.cpp b/core/options.cpp index caf9ff284..2460f568e 100644 --- a/core/options.cpp +++ b/core/options.cpp @@ -125,6 +125,7 @@ void OptionsManager::LoadDefaults() { SetText(_T("Video resizer"),_T("BilinearResize")); SetInt(_T("Video Check Script Res"), 0); SetInt(_T("Video Default Zoom"), 7); + SetInt(_T("Video Fast Jump Step"), 10); SetInt(_T("Audio Cache"),1); SetInt(_T("Audio Sample Rate"),0); diff --git a/core/video_slider.cpp b/core/video_slider.cpp index b63c2b02d..3ce82a76f 100644 --- a/core/video_slider.cpp +++ b/core/video_slider.cpp @@ -45,6 +45,7 @@ #include "vfr.h" #include "subs_edit_box.h" #include "options.h" +#include "utils.h" /////////////// @@ -263,6 +264,14 @@ void VideoSlider::OnKeyDown(wxKeyEvent &event) { return; } + // Fast move + if (!ctrl && !shift && alt) { + if (Display->IsPlaying) return; + int target = MID(min,GetValue() + direction * Options.AsInt(_T("Video Fast Jump Step")),max); + if (target != GetValue()) Display->JumpToFrame(target); + return; + } + // Boundaries if (ctrl && !shift && !alt) { // Prepare