summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-08-21 05:55:36 +0000
committerdynaflash <[email protected]>2007-08-21 05:55:36 +0000
commit81b5f27fce4a1b43fc82d8fd08b34dd603d82a94 (patch)
treed15a5cfc8d3ab1fbe206bbb4f030bb49079a1df2 /macosx/Controller.mm
parentb4be9fecbbe66767fcf3b25aec8628d3f6b789ec (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
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm17
1 files changed, 17 insertions, 0 deletions
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