summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-09-16 17:35:39 +0000
committerdynaflash <[email protected]>2010-09-16 17:35:39 +0000
commite89cc6b139682ad1108926312eeaa882f03b2ed3 (patch)
treec548f13f3b63b1cea104ab8fba21e3f4616af261 /macosx/Controller.m
parent895432f2ec008d1b290aaec0101fdb8d6e719ef6 (diff)
MacGui: Audio ... Add an "Add All Tracks" button to the audio tab.
- Patch by circleone... Thanks again! - Adds all available source tracks at the default mixdown etc. to the macgui in one click. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3536 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r--macosx/Controller.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 6aea1507d..92d31a822 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -4958,6 +4958,16 @@ the user is using "Custom" settings by determining the sender*/
#pragma mark -
+@synthesize hasValidPresetSelected;
+
+// This causes all audio tracks from the title to be used based on the current preset
+- (IBAction) addAllAudioTracks: (id) sender
+
+{
+ [fAudioDelegate addAllTracksFromPreset: [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]]];
+ return;
+}
+
- (IBAction) browseImportSrtFile: (id) sender
{
@@ -5421,6 +5431,7 @@ return YES;
if ([fPresetsOutlineView selectedRow] >= 0 && [[[fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]] objectForKey:@"Folder"] intValue] != 1)
{
+ [self setHasValidPresetSelected: YES];
chosenPreset = [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]];
[fPresetSelectedDisplay setStringValue:[chosenPreset objectForKey:@"PresetName"]];
@@ -5741,6 +5752,9 @@ return YES;
[fPictureController SetTitle:fTitle];
[self calculatePictureSizing:nil];
}
+ else {
+ [self setHasValidPresetSelected: NO];
+ }
}