From 0abb0bd4330211be182bc5ead8243380e8c167f0 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sat, 7 Apr 2007 04:40:44 +0000 Subject: [PATCH] Added setting of subtitles provider and toggling of pixel shader use to options/video. Originally committed to SVN as r1018. --- aegisub/changelog.txt | 3 ++- aegisub/dialog_options.cpp | 15 ++++++++++++--- aegisub/options.cpp | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/aegisub/changelog.txt b/aegisub/changelog.txt index e7fb56533..c5db7616b 100644 --- a/aegisub/changelog.txt +++ b/aegisub/changelog.txt @@ -27,10 +27,11 @@ Please visit http://aegisub.net to download latest version o Normal and SSA mode have been merged into one, all functionality available to both is now used at once. This is the same behavior as Sabbu has. (AMZ) o Next line on commit is now on by default. o Auto-commit will never change to the next line. - o When dragging line start/end markers, they will snap to keyframes or nearby subtitle start/end markers, hold down "Shift" to override this behaviour. + o Added an option to, when dragging line start/end markers, snap to keyframes or nearby subtitle start/end markers. This behavior can always be toggled by holding down shift. o The "Play" shortcut will always play, regardless of whether it was already playing or not. There is a new shortcut for "Stop". o Styles for line start/end markers have changed. o Holding down ctrl lets you retime the original line while in Karaoke mode. + o Middle click will now jump the video to the time under the mouse. - Support reading SSA/ASS files with intermixed V4 and V4+ Styles sections. (jfs) - Fixed loading of sections with unexpected cases. (AMZ) - Plain-text export (jfs) diff --git a/aegisub/dialog_options.cpp b/aegisub/dialog_options.cpp index 3f97d707d..1837a33de 100644 --- a/aegisub/dialog_options.cpp +++ b/aegisub/dialog_options.cpp @@ -54,6 +54,7 @@ #include "video_box.h" #include "video_slider.h" #include "video_provider.h" +#include "subtitles_provider.h" #include "audio_box.h" #include "audio_display.h" @@ -318,7 +319,7 @@ DialogOptions::DialogOptions(wxWindow *parent) wxSizer *videoSizer1 = new wxStaticBoxSizer(wxVERTICAL,videoPage,_("Options")); wxSizer *videoSizer2 = new wxStaticBoxSizer(wxVERTICAL,videoPage,_("Advanced - EXPERT USERS ONLY")); wxFlexGridSizer *videoSizer3 = new wxFlexGridSizer(5,2,5,5); - wxFlexGridSizer *videoSizer4 = new wxFlexGridSizer(3,2,5,5); + wxFlexGridSizer *videoSizer4 = new wxFlexGridSizer(4,2,5,5); wxControl *control; // First sizer @@ -359,12 +360,20 @@ DialogOptions::DialogOptions(wxWindow *parent) control = new wxComboBox(videoPage,-1,_T(""),wxDefaultPosition,wxDefaultSize,choices4,wxCB_DROPDOWN | wxCB_READONLY); Bind(control,_T("Video provider"),1); videoSizer4->Add(control,1,wxEXPAND); + videoSizer4->Add(new wxStaticText(videoPage,-1,_("Subtitles provider (except avisynth): ")),0,wxALIGN_CENTER_VERTICAL | wxRIGHT,10); + wxArrayString choices5 = SubtitlesProviderFactory::GetFactoryList(); + control = new wxComboBox(videoPage,-1,_T(""),wxDefaultPosition,wxDefaultSize,choices5,wxCB_DROPDOWN | wxCB_READONLY); + Bind(control,_T("Subtitles provider"),1); + videoSizer4->Add(control,1,wxEXPAND); videoSizer4->Add(new wxStaticText(videoPage,-1,_("Avisynth memory limit: ")),0,wxALIGN_CENTER_VERTICAL | wxRIGHT,10); control = new wxTextCtrl(videoPage,-1,_T(""),wxDefaultPosition,wxDefaultSize,0,NumValidator(NULL,false)); Bind(control,_T("Avisynth memorymax")); videoSizer4->Add(control,1,wxEXPAND); - control = new wxCheckBox(videoPage,-1,_("Threaded video")); - Bind(control,_T("Threaded video")); + //control = new wxCheckBox(videoPage,-1,_("Threaded video")); + //Bind(control,_T("Threaded video")); + //videoSizer4->Add(control,1,wxEXPAND); + control = new wxCheckBox(videoPage,-1,_("Use pixel shaders if available")); + Bind(control,_T("Video use pixel shaders")); videoSizer4->Add(control,1,wxEXPAND); control = new wxCheckBox(videoPage,-1,_("Allow pre-2.56a Avisynth")); Bind(control,_T("Allow Ancient Avisynth")); diff --git a/aegisub/options.cpp b/aegisub/options.cpp index a9aeb22c3..9f18ec598 100644 --- a/aegisub/options.cpp +++ b/aegisub/options.cpp @@ -155,7 +155,7 @@ void OptionsManager::LoadDefaults() { SetModificationType(MOD_AUTOMATIC); SetBool(_T("Allow Ancient Avisynth"),false); SetText(_T("Video Provider"),_T("Avisynth")); - SetText(_T("Subtitles Provider"),_T("CSRI")); + SetText(_T("Subtitles Provider"),_T("csri")); SetBool(_T("Video Use Pixel Shaders"),false); // Audio Options