Added hotkey to Audio's "play to end of file" (defaulting to "T").

Originally committed to SVN as r453.
This commit is contained in:
Rodrigo Braz Monteiro 2006-07-01 06:37:46 +00:00
parent 1114029be1
commit 8f3fbdd781
4 changed files with 10 additions and 1 deletions

View File

@ -141,7 +141,7 @@ wxPanel(parent,-1,wxDefaultPosition,wxDefaultSize,wxTAB_TRAVERSAL|wxBORDER_RAISE
temp->SetToolTip(_("Play last 500ms of selection (") + Hotkeys.GetText(_T("Audio Play Last 500ms")) + _T(")"));
ButtonSizer->Add(temp,0,wxRIGHT,0);
temp = new wxBitmapButton(this,Audio_Button_Play_To_End,wxBITMAP(button_playtoend),wxDefaultPosition,wxSize(30,-1));
temp->SetToolTip(_("Play from selection start to end of file"));
temp->SetToolTip(_("Play from selection start to end of file (") + Hotkeys.GetText(_T("Audio Play To End")) + _T(")"));
ButtonSizer->Add(temp,0,wxRIGHT,10);
temp = new wxBitmapButton(this,Audio_Button_Leadin,wxBITMAP(button_leadin),wxDefaultPosition,wxSize(30,-1));

View File

@ -1762,6 +1762,13 @@ void AudioDisplay::OnKeyDown(wxKeyEvent &event) {
Play(end,end+500);
}
// Play to end of file
if (Hotkeys.IsPressed(_T("Audio Play To End"))) {
int start=0,end=0;
GetTimesSelection(start,end);
Play(start,-1);
}
// Play original line
if (Hotkeys.IsPressed(_T("Audio Play Original Line"))) {
int start=0,end=0;

View File

@ -91,6 +91,7 @@ Please visit http://aegisub.net to download latest version
- The Font Collector can now collect fonts as script attachments. (AMZ)
- Added recent menu to Video Timecodes. (AMZ)
- Playing in video mode will now play the audio as well even if it hasn't been previously loaded into audio mode (experimental). (AMZ)
- Added hotkey to Audio's "play to end of file" (defaulting to "T"). (AMZ)
= 1.09 beta - 2006.01.16 ===========================

View File

@ -370,6 +370,7 @@ void HotkeyManager::LoadDefaults() {
SetHotkey(_("Audio Play Last 500ms"),_T("D"));
SetHotkey(_("Audio Play 500ms Before"),_T("Q"));
SetHotkey(_("Audio Play 500ms After"),_T("W"));
SetHotkey(_("Audio Play To End"),_T("T"));
SetHotkey(_("Audio Play Original Line"),_T("R"));
SetHotkey(_("Audio Add Lead In"),_T("C"));
SetHotkey(_("Audio Add Lead Out"),_T("V"));