diff options
author | dynaflash <[email protected]> | 2007-08-21 05:55:36 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-08-21 05:55:36 +0000 |
commit | 81b5f27fce4a1b43fc82d8fd08b34dd603d82a94 (patch) | |
tree | d15a5cfc8d3ab1fbe206bbb4f030bb49079a1df2 | |
parent | b4be9fecbbe66767fcf3b25aec8628d3f6b789ec (diff) |
MacGui: Add subtitle widgets for eddyg's forced subtitle implementation.
- Create checkbox called "Forced" next to the NSPopUp button for subtitle selection with outlet named fSubForcedCheck
- Create a new preference checkbox to use subtitles instead of dubbed audio track if so desired.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@845 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.h | 2 | ||||
-rw-r--r-- | macosx/Controller.mm | 17 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/classes.nib | 2 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/keyedobjects.nib | bin | 135987 -> 136478 bytes | |||
-rw-r--r-- | macosx/English.lproj/Preferences.nib/keyedobjects.nib | bin | 20243 -> 21036 bytes |
5 files changed, 21 insertions, 0 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 4c4d4b4dc..d990118a1 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -134,6 +134,7 @@ /* Subtitles box */ IBOutlet NSTextField * fSubField; IBOutlet NSPopUpButton * fSubPopUp; + IBOutlet NSButton * fSubForcedCheck; /* Audio box */ IBOutlet NSTextField * fAudLang1Field; @@ -272,6 +273,7 @@ - (IBAction) AudioTrackPopUpChanged: (id) sender; - (IBAction) AudioTrackPopUpChanged: (id) sender mixdownToUse: (int) mixdownToUse; - (IBAction) AudioTrackMixdownChanged: (id) sender; +- (IBAction) SubtitleSelectionChanged: (id) sender; - (IBAction) BrowseFile: (id) sender; - (void) BrowseFileDone: (NSSavePanel *) sheet diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 620996647..8f9d6c858 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1866,6 +1866,8 @@ list = hb_get_titles( fHandle ); subtitle->lang] action: NULL keyEquivalent: @""]; } [fSubPopUp selectItemAtIndex: 0]; + + [self SubtitleSelectionChanged: NULL]; /* Update chapter table */ [fChapterTitlesDelegate resetWithTitle:title]; @@ -2497,6 +2499,21 @@ list = hb_get_titles( fHandle ); } } + +- (IBAction) SubtitleSelectionChanged: (id) sender +{ + if ([fSubPopUp indexOfSelectedItem] == 0) + { + [fSubForcedCheck setState: NSOffState]; + [fSubForcedCheck setEnabled: NO]; + } + else + { + [fSubForcedCheck setEnabled: YES]; + } + +} + /* lets set the picture size back to the max from right after title scan Lets use an IBAction here as down the road we could always use a checkbox in the gui to easily take the user back to max. Remember, the compiler diff --git a/macosx/English.lproj/MainMenu.nib/classes.nib b/macosx/English.lproj/MainMenu.nib/classes.nib index a949990ee..6c29793e7 100644 --- a/macosx/English.lproj/MainMenu.nib/classes.nib +++ b/macosx/English.lproj/MainMenu.nib/classes.nib @@ -37,6 +37,7 @@ ShowPicturePanel = id; ShowQueuePanel = id; ShowScanPanel = id; + SubtitleSelectionChanged = id; TitlePopUpChanged = id; TwoPassCheckboxChanged = id; VideoFrameRateChanged = id; @@ -150,6 +151,7 @@ fSrcTitlePopUp = NSPopUpButton; fStatusField = NSTextField; fSubField = NSTextField; + fSubForcedCheck = NSButton; fSubPopUp = NSPopUpButton; fVidBitrateCell = NSButtonCell; fVidBitrateField = NSTextField; diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib Binary files differindex 16076eacd..a9982a965 100644 --- a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib +++ b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib diff --git a/macosx/English.lproj/Preferences.nib/keyedobjects.nib b/macosx/English.lproj/Preferences.nib/keyedobjects.nib Binary files differindex c4997993e..9d32ae061 100644 --- a/macosx/English.lproj/Preferences.nib/keyedobjects.nib +++ b/macosx/English.lproj/Preferences.nib/keyedobjects.nib |