diff options
author | dynaflash <[email protected]> | 2008-02-07 16:43:51 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-02-07 16:43:51 +0000 |
commit | ec3eeec625cd5e53842bae93329806e35191788c (patch) | |
tree | c257302aa24b2c0904ca47f50b10ff42a9e3fe90 /macosx/Controller.mm | |
parent | 916db818355dea927e721916cba092403f4699ea (diff) |
MacGui: Add the Forced subtitles checkbox to custom user presets
- uses [preset setObject:[NSNumber numberWithInt:1] forKey:@"SubtitlesForced"] to turn the forced checkbox on in the preset
- Not added to any built in presets
- checkbox is unchecked for any preset that doesnt explicitly have it set.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1251 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index f4c474fe1..769f4039a 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -3383,6 +3383,9 @@ if (item == nil) [fAudBitratePopUp selectItemWithTitle: [NSString stringWithFormat:[chosenPreset valueForKey:@"AudioBitRate"]]]; /*Subtitles*/ [fSubPopUp selectItemWithTitle: [NSString stringWithFormat:[chosenPreset valueForKey:@"Subtitles"]]]; + /* Forced Subtitles */ + [fSubForcedCheck setState:[[chosenPreset objectForKey:@"SubtitlesForced"] intValue]]; + /* Dynamic Range Control Slider */ [fAudDrcSlider setFloatValue: [[chosenPreset valueForKey:@"AudioDRCSlider"] floatValue]]; [self audioDRCSliderChanged: NULL]; @@ -3755,6 +3758,8 @@ if (item == nil) [preset setObject:[fAudBitratePopUp titleOfSelectedItem] forKey:@"AudioBitRate"]; /* Subtitles*/ [preset setObject:[fSubPopUp titleOfSelectedItem] forKey:@"Subtitles"]; + /* Forced Subtitles */ + [preset setObject:[NSNumber numberWithInt:[fSubForcedCheck state]] forKey:@"SubtitlesForced"]; /* Dynamic Range Control Slider */ [preset setObject:[NSNumber numberWithFloat:[fAudDrcSlider floatValue]] forKey:@"AudioDRCSlider"]; |