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.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-20 22:15:34 +00:00
parent d826160abf
commit 62f94c5a6c
3 changed files with 11 additions and 0 deletions

View file

@ -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 ===========================

View file

@ -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);

View file

@ -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