- add a preference to default chapter markers on/off
- currently default is off.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@449
b64f7644-9d1e-0410-96f1-
a4d463321fa5
_( @"AVC/H.264 Video / AAC Audio" )];
/* We enable the create chapters checkbox here since we are .mp4 */
[fCreateChapterMarkers setEnabled: YES];
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultChapterMarkers"] > 0)
+ {
+ [fCreateChapterMarkers setState: NSOnState];
+ }
break;
case 1:
ext = "avi";
fDefAdvancedx264FlagsView = NSButton;
fDefAudioSurround = NSButton;
fDefAutoNaming = NSButton;
+ fDefChapterMarkers = NSButton;
fDefCrf = NSButton;
fDefDeinterlace = NSButton;
fDefPicSizeAutoSetipod = NSButton;
fDefPixelRatio = NSButton;
- fDefPresetDrawerShow = id;
+ fDefPresetDrawerShow = NSButton;
fFileExtItunes = NSButton;
fPanel = NSPanel;
fUpdateCheck = NSButton;
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>31 44 630 601 0 0 1440 878 </string>
+ <string>-6 259 630 601 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>1843</key>
</array>
<key>IBOpenObjects</key>
<array>
- <integer>1867</integer>
- <integer>1843</integer>
- <integer>21</integer>
- <integer>29</integer>
+ <integer>1438</integer>
</array>
<key>IBSystem Version</key>
<string>8P2137</string>
IBOutlet NSButton * fDefAudioSurround;
IBOutlet NSButton * fDefPresetDrawerShow;
IBOutlet NSButton * fDefAutoNaming;
+ IBOutlet NSButton * fDefChapterMarkers;
IBOutlet NSTextView * fDefAdvancedx264FlagsView;
}
appDefaults = [NSDictionary dictionaryWithObject:defDestDirectory forKey:@"LastDestinationDirectory"];
appDefaults = [NSDictionary dictionaryWithObject:@"NO"
forKey:@"DefaultAutoNaming"];
+ appDefaults = [NSDictionary dictionaryWithObject:@"NO"
+ forKey:@"DefaultChapterMarkers"];
[defaults registerDefaults: appDefaults];
/* fUpdateCheck Check or uncheck according to the preferences */
/* fDefAutoNaming Check or uncheck according to the preferences*/
[fDefAutoNaming setState: [defaults boolForKey:@"DefaultAutoNaming"] ?
NSOnState : NSOffState];
+ /* fDefChapterMarkers Check or uncheck according to the preferences*/
+ [fDefChapterMarkers setState: [defaults boolForKey:@"DefaultChapterMarkers"] ?
+ NSOnState : NSOffState];
}
{
[defaults setObject:@"NO" forKey:@"DefaultAutoNaming"];
}
+ /* Chapter Markers */
+ if( [fDefChapterMarkers state] == NSOnState )
+ {
+ [defaults setObject:@"YES" forKey:@"DefaultChapterMarkers"];
+ }
+ else
+ {
+ [defaults setObject:@"NO" forKey:@"DefaultChapterMarkers"];
+ }
}