Added "Video Formats" to "Open Audio"'s file selector, so you can open audio directly from video files (regardless of whether they're loaded or not). This has always worked, but it was never explicit.

Originally committed to SVN as r1026.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-08 02:26:32 +00:00
parent e49058f0cf
commit 821399e03c
2 changed files with 3 additions and 2 deletions

View file

@ -78,7 +78,7 @@ Please visit http://aegisub.net to download latest version
- Tweaked the behavior of the margin boxes, now they no longer show padding zeros. (AMZ) - Tweaked the behavior of the margin boxes, now they no longer show padding zeros. (AMZ)
- Minor fix to the calculation of the grid's "Style" column width. (AMZ) - Minor fix to the calculation of the grid's "Style" column width. (AMZ)
- Added a "Selection Onward" option to the Shift Times dialogue. (AMZ) - Added a "Selection Onward" option to the Shift Times dialogue. (AMZ)
- Main menu was completely re-designed, including several new options. (AMZ) - Main menu was completely re-designed, including several new options, better icons, and fixing of flickering and slowness. (AMZ)
- Added Medusa-style (numpad) global timing shortcuts, that can be enabled with the button under the audio display. This is disabled by default. (AMZ) - Added Medusa-style (numpad) global timing shortcuts, that can be enabled with the button under the audio display. This is disabled by default. (AMZ)
- Merged the three "Recombine" functions into a single one that autodetects the correct type. (AMZ) - Merged the three "Recombine" functions into a single one that autodetects the correct type. (AMZ)
- Added a Call Tip feature to the edit box, so it shows the function prototype as you type it. (AMZ) - Added a Call Tip feature to the edit box, so it shows the function prototype as you type it. (AMZ)
@ -109,6 +109,7 @@ Please visit http://aegisub.net to download latest version
- Two storages with the same name can no longer be created in the styles manager. (AMZ) - Two storages with the same name can no longer be created in the styles manager. (AMZ)
- Style editor will no longer admit creation of styles with equal names. (AMZ) - Style editor will no longer admit creation of styles with equal names. (AMZ)
- Hitting enter on style editor will now "OK" it. (AMZ) - Hitting enter on style editor will now "OK" it. (AMZ)
- Added "Video Formats" to "Open Audio"'s file selector, so you can open audio directly from video files (regardless of whether they're loaded or not). This has always worked, but it was never explicit. (AMZ)
= 1.10 beta - 2006.08.07 =========================== = 1.10 beta - 2006.08.07 ===========================

View file

@ -602,7 +602,7 @@ void FrameMain::OnCloseVideo(wxCommandEvent& WXUNUSED(event)) {
// Open Audio // Open Audio
void FrameMain::OnOpenAudio (wxCommandEvent& WXUNUSED(event)) { void FrameMain::OnOpenAudio (wxCommandEvent& WXUNUSED(event)) {
wxString path = Options.AsText(_T("Last open audio path")); wxString path = Options.AsText(_T("Last open audio path"));
wxString filename = wxFileSelector(_("Open audio file"),path,_T(""),_T(""),_T("Audio Formats (*.wav,*.mp3,*.ogg,*.flac,*.mp4,*.ac3,*.aac,*.mka)|*.wav;*.mp3;*.ogg;*.flac;*.mp4;*.ac3;*.aac;*.mka|All files (*.*)|*.*"),wxFD_OPEN | wxFD_FILE_MUST_EXIST); wxString filename = wxFileSelector(_("Open audio file"),path,_T(""),_T(""),_T("Audio Formats (*.wav,*.mp3,*.ogg,*.flac,*.mp4,*.ac3,*.aac,*.mka)|*.wav;*.mp3;*.ogg;*.flac;*.mp4;*.ac3;*.aac;*.mka|Video Formats (*.avi,*.mkv,*.ogm,*.mpg,*.mpeg)|*.avi;*.mkv;*.ogm;*.mp4;*.mpeg;*.mpg|All files (*.*)|*.*"),wxFD_OPEN | wxFD_FILE_MUST_EXIST);
if (!filename.empty()) { if (!filename.empty()) {
LoadAudio(filename); LoadAudio(filename);
Options.SetText(_T("Last open audio path"), filename); Options.SetText(_T("Last open audio path"), filename);