summaryrefslogtreecommitdiffstats
path: root/macosx/PrefsController.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-03-25 05:53:03 +0000
committerdynaflash <[email protected]>2007-03-25 05:53:03 +0000
commita6ab00ef65dbad601804caab237281838f307da8 (patch)
treefb26204321f0f7d76b40d87e41b23bad71360727 /macosx/PrefsController.m
parent1512d6ecf7a80ebbf22a6d050006876b6751fc28 (diff)
MacGui: Add Chapter Marker Preference
- 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
Diffstat (limited to 'macosx/PrefsController.m')
-rw-r--r--macosx/PrefsController.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m
index 8d058750e..8f5dd61d8 100644
--- a/macosx/PrefsController.m
+++ b/macosx/PrefsController.m
@@ -35,6 +35,8 @@
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 */
@@ -255,6 +257,9 @@
/* 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];
}
@@ -381,6 +386,15 @@
{
[defaults setObject:@"NO" forKey:@"DefaultAutoNaming"];
}
+ /* Chapter Markers */
+ if( [fDefChapterMarkers state] == NSOnState )
+ {
+ [defaults setObject:@"YES" forKey:@"DefaultChapterMarkers"];
+ }
+ else
+ {
+ [defaults setObject:@"NO" forKey:@"DefaultChapterMarkers"];
+ }
}