summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.h
diff options
context:
space:
mode:
authormaurj <[email protected]>2007-04-18 11:34:52 +0000
committermaurj <[email protected]>2007-04-18 11:34:52 +0000
commitd2e927f0577062999b2ede20b12f91f03ed703e4 (patch)
tree72d3db97babbf1ecf60b386a4eb35a60b0889961 /macosx/Controller.h
parent977b9455a65f4b3774e27b0c7a18c7933adcf54a (diff)
Improved the Mac OS GUI's handling of language / audio track settings in presets. It is now much better placed to deal with scenarios where the preset's saved language / audio setting doesn't have a match in the selected title's audio list.
So, e.g. if you insert a disk with a title with only mono AC3 tracks, but the preset is "English AC3 5.1", then it will default to selecting the first audio track rather than selecting "None". In making these changes, I've also added some utility functions to Controller.mm - one to add all audio tracks for a title to a popup menu, and one to select a track in a popup menu based on a search prefix string. These are really just tidying up what was already there in a reusable way. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@524 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r--macosx/Controller.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h
index 6666e3c35..6fa961de0 100644
--- a/macosx/Controller.h
+++ b/macosx/Controller.h
@@ -168,7 +168,10 @@
- (IBAction) FormatPopUpChanged: (id) sender;
- (IBAction) CodecsPopUpChanged: (id) sender;
- (IBAction) EncoderPopUpChanged: (id) sender;
+
- (IBAction) SetEnabledStateOfAudioMixdownControls: (id) sender;
+- (IBAction) AddAllAudioTracksToPopUp: (id) sender;
+- (IBAction) SelectAudioTrackInPopUp: (id) sender searchPrefixString: (NSString *) searchPrefixString selectIndexIfNotFound: (int) selectIndexIfNotFound;
- (IBAction) AudioTrackPopUpChanged: (id) sender;
- (IBAction) AudioTrackPopUpChanged: (id) sender mixdownToUse: (int) mixdownToUse;