Changeset 1040
- Timestamp:
- 04/10/09 14:46:14 (17 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
CPFPerianPrefPaneController.h (modified) (2 diffs)
-
CPFPerianPrefPaneController.m (modified) (4 diffs)
-
Resources/PerianPrefPane.nib/classes.nib (modified) (4 diffs)
-
Resources/PerianPrefPane.nib/info.nib (modified) (2 diffs)
-
Resources/PerianPrefPane.nib/keyedobjects.nib (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CPFPerianPrefPaneController.h
r1038 r1040 90 90 IBOutlet NSButton *button_loadExternalSubtitles; 91 91 92 IBOutlet NSWindow *window_multiChannelSheet; 93 IBOutlet NSTextField *textField_multiChannelText; 94 IBOutlet NSButton *button_multiChannelNeverShow; 95 92 96 //About 93 97 IBOutlet NSTextView *textView_about; … … 127 131 - (IBAction)saveDynRangeSheet:(id)sender; 128 132 133 - (IBAction)dismissMultiChannelSheet:(id)sender; 134 129 135 //Component List 130 136 - (NSString *)checkComponentStatusByBundleIdentifier:(NSString *)bundleID; -
trunk/CPFPerianPrefPaneController.m
r1038 r1040 27 27 #define AC3TwoChannelModeKey CFSTR("twoChannelMode") 28 28 #define ExternalSubtitlesKey CFSTR("LoadExternalSubtitles") 29 #define DontShowMultiChannelWarning CFSTR("DontShowMultiChannelWarning") 29 30 30 31 //Old … … 882 883 } 883 884 885 - (void)displayMultiChannelWarning 886 { 887 NSString *multiChannelWarning = NSLocalizedString(@"<p style=\"font: 13pt Lucida Grande;\">Multi-Channel Output is not Dolby Digital Passthrough! It is designed for those with multiple dicrete speakers connected to their mac. If you selected this expecting passthrough, you are following the wrong instructions. Follow <a href=\"http://www.cod3r.com/2008/02/the-correct-way-to-enable-ac3-passthrough-with-quicktime/\">these</a> instead.</p>", @""); 888 NSAttributedString *multiChannelWarningAttr = [[NSAttributedString alloc] initWithHTML:[multiChannelWarning dataUsingEncoding:NSUTF8StringEncoding] documentAttributes:nil]; 889 [textField_multiChannelText setAttributedStringValue:multiChannelWarningAttr]; 890 [multiChannelWarningAttr release]; 891 [NSApp beginSheet:window_multiChannelSheet modalForWindow:[[self mainView] window] modalDelegate:nil didEndSelector:nil contextInfo:NULL]; 892 } 893 884 894 - (IBAction)set2ChannelModePopup:(id)sender; 885 895 { … … 898 908 case 3: 899 909 [self setKey:AC3TwoChannelModeKey forAppID:a52AppID fromInt:0]; 910 if(![self getBoolFromKey:DontShowMultiChannelWarning forAppID:perianAppID withDefault:NO]) 911 [self displayMultiChannelWarning]; 900 912 break; 901 913 default: … … 956 968 } 957 969 970 - (IBAction)dismissMultiChannelSheet:(id)sender 971 { 972 [NSApp endSheet:window_multiChannelSheet]; 973 [self setKey:DontShowMultiChannelWarning forAppID:perianAppID fromBool:[button_multiChannelNeverShow state]]; 974 [window_multiChannelSheet orderOut:self]; 975 CFPreferencesAppSynchronize(perianAppID); 976 } 977 958 978 #pragma mark Subtitles 959 979 - (IBAction)setLoadExternalSubtitles:(id)sender -
trunk/Resources/PerianPrefPane.nib/classes.nib
r939 r1040 23 23 <dict> 24 24 <key>cancelDynRangeSheet</key> 25 <string>id</string> 26 <key>dismissMultiChannelSheet</key> 25 27 <string>id</string> 26 28 <key>installUninstall</key> … … 65 67 <key>button_loadExternalSubtitles</key> 66 68 <string>NSButton</string> 69 <key>button_multiChannelNeverShow</key> 70 <string>NSButton</string> 67 71 <key>button_updateCheck</key> 68 72 <string>NSButton</string> … … 85 89 <key>textField_installStatus</key> 86 90 <string>NSTextField</string> 91 <key>textField_multiChannelText</key> 92 <string>NSTextField</string> 87 93 <key>textField_updateStatus</key> 88 94 <string>NSTextField</string> … … 90 96 <string>NSTextView</string> 91 97 <key>window_dynRangeSheet</key> 98 <string>NSWindow</string> 99 <key>window_multiChannelSheet</key> 92 100 <string>NSWindow</string> 93 101 </dict> -
trunk/Resources/PerianPrefPane.nib/info.nib
r998 r1040 6 6 <string>677</string> 7 7 <key>IBLastKnownRelativeProjectPath</key> 8 <string> Perian.xcodeproj</string>8 <string>../Perian.xcodeproj</string> 9 9 <key>IBOldestOS</key> 10 10 <integer>5</integer> … … 12 12 <array> 13 13 <integer>32</integer> 14 <integer>245</integer> 14 15 </array> 15 16 <key>IBSystem Version</key> 16 <string>9 F33</string>17 <string>9G55</string> 17 18 <key>targetFramework</key> 18 19 <string>IBCocoaFramework</string>
