]> granicus.if.org Git - handbrake/commitdiff
Mac GUI - Added x264 advanced encoding command flag preference.
authordynaflash <dynaflashtech@gmail.com>
Wed, 14 Feb 2007 21:19:25 +0000 (21:19 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Wed, 14 Feb 2007 21:19:25 +0000 (21:19 +0000)
- NSTextView to enter advanced encoding flags (jbrjake) to pass to x264.

- NOT incorporated into Controller.mm at all yet.

- Accessible in Controller.mm via:
[NSUserDefaults standardUserDefaults] stringForKey:@"DefAdvancedx264Flags"]

Mac GUI - Fixed copy/paste in all text fields including destination file location.

git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.8.0_beta2_5.1@331 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/English.lproj/MainMenu.nib/classes.nib
macosx/English.lproj/MainMenu.nib/info.nib
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
macosx/PrefsController.h
macosx/PrefsController.m

index d431a2c95056d5dea00e06e0b2a4ac89ac019d5f..e93e433ac421b62ba93025c39c3926633e156dde 100644 (file)
             CLASS = PrefsController; 
             LANGUAGE = ObjC; 
             OUTLETS = {
+                fDefAdvancedx264FlagsView = NSTextView; 
                 fDefAudioSurround = NSButton; 
                 fDefCrf = NSButton; 
                 fDefDeinterlace = NSButton; 
index 7ae790b10f78f6e6478451205813f957f23b7885..5f53222db40f50ed141514ea360bd5dee0741ac8 100644 (file)
@@ -7,7 +7,7 @@
        <key>IBEditorPositions</key>
        <dict>
                <key>29</key>
-               <string>69 330 258 44 0 0 1440 878 </string>
+               <string>102 834 258 44 0 0 1440 878 </string>
        </dict>
        <key>IBFramework Version</key>
        <string>446.1</string>
index 199fdd2eaf4c5e717eb1d4072be0644b674b55b9..1ca85822d9093f9c45621be960bf08992ab12cb2 100644 (file)
Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ
index 422c3c3134520c7976a262c32d9ae5a9ee7e9860..2aa72b940a63aec04afbb8269a12d7f56759071e 100644 (file)
@@ -14,7 +14,7 @@
        IBOutlet NSButton * fDefPixelRatio;
        IBOutlet NSButton * fDefAudioSurround;
 
-       
+       IBOutlet NSTextView * fDefAdvancedx264FlagsView;
 }
 
 - (IBAction) OpenPanel:    (id) sender;
index ed62a27704320070888b471eaaceda14b979892d..78586d95ce1440e3fdf0ed720a4f0eb8f74c6def 100644 (file)
@@ -8,7 +8,7 @@
     NSDictionary   * appDefaults;
     
     /* Unless the user specified otherwise, default is to check
-       for update  fDefAudioSurround*/
+       for update  DefAdvancedx264Flags*/
     defaults    = [NSUserDefaults standardUserDefaults];
     appDefaults = [NSDictionary dictionaryWithObject:@"YES"
                    forKey:@"CheckForUpdates"];
@@ -26,6 +26,8 @@
                    forKey:@"PixelRatio"];
           appDefaults = [NSDictionary dictionaryWithObject:@"NO"
                    forKey:@"DefaultSurroundSound"];
+       appDefaults = [NSDictionary dictionaryWithObject:@""
+                   forKey:@"DefAdvancedx264Flags"];
        
     [defaults registerDefaults: appDefaults];
 
 
        /* fFileExtItunes Check or uncheck according to the preferences */
     [fFileExtItunes setState: [defaults boolForKey:@"DefaultMpegName"] ?
-        NSOnState : NSOffState];
-               
-               /* fDefCrf Check or uncheck according to the preferences*/
+                                 NSOnState : NSOffState];
+       
+       /* fDefCrf Check or uncheck according to the preferences*/
     [fDefCrf setState: [defaults boolForKey:@"DefaultCrf"] ?
-        NSOnState : NSOffState];
-
+                  NSOnState : NSOffState];
+       
        /* fDefDeinterlace Check or uncheck according to the preferences*/
     [fDefDeinterlace setState: [defaults boolForKey:@"DefaultDeinterlaceOn"] ?
-        NSOnState : NSOffState];
-
-/* fDefPicSizeAutoSetipod Check or uncheck according to the preferences*/
+                                  NSOnState : NSOffState];
+       
+       /* fDefPicSizeAutoSetipod Check or uncheck according to the preferences*/
     [fDefPicSizeAutoSetipod setState: [defaults boolForKey:@"DefaultPicSizeAutoiPod"] ?
-        NSOnState : NSOffState];
-               /* fDefPixelRatio */
+                                                 NSOnState : NSOffState];
+       /* fDefPixelRatio */
     [fDefPixelRatio setState: [defaults boolForKey:@"PixelRatio"] ?
-        NSOnState : NSOffState];
-               
-     /* fDefAudioSurround Check or uncheck according to the preferences */
+                                 NSOnState : NSOffState];
+       
+       /* fDefAudioSurround Check or uncheck according to the preferences */
     [fDefAudioSurround setState: [defaults boolForKey:@"DefaultSurroundSound"] ?
-        NSOnState : NSOffState];
+                                        NSOnState : NSOffState];
+               
+       /* Insert default DefAdvanced x264 Flag here */
+       [fDefAdvancedx264FlagsView setString:[defaults stringForKey:@"DefAdvancedx264Flags"]];
 }
 
 
 
 - (IBAction) ClosePanel: (id) sender;
 {
+    [self CheckChanged: sender]; 
     [NSApp stopModal];
     [fPanel orderOut: sender];
 }
     {
         [defaults setObject:@"NO" forKey:@"DefaultSurroundSound"];
     }  
-       
+    
+               
+       /*Advanced x264 Flag string into */
+      [defaults setObject:[fDefAdvancedx264FlagsView string]  forKey:@"DefAdvancedx264Flags"]; 
 }
 
 @end