]> granicus.if.org Git - handbrake/commitdiff
by dynflash
authorhandbrake <no-reply@handbrake.fr>
Tue, 2 Jan 2007 22:43:32 +0000 (22:43 +0000)
committerhandbrake <no-reply@handbrake.fr>
Tue, 2 Jan 2007 22:43:32 +0000 (22:43 +0000)
Handbrake GUI:
-fixed ScanController so that HB doesnt crash if you try to open a dvd that isnt there.
-Uses DVD name as the default for Movie output (instead of the generic "Movie.mp4"
-Versioned 0.7.1a5 in in Handbrake.plist to assist testers and developers of HB binary in telling which one they are using.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@83 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm
macosx/English.lproj/MainMenu.nib/info.nib
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
macosx/HandBrake.plist
macosx/ScanController.mm

index e182acdff35c37624897d9648782a5e5d8fff51c..a38d0d062add9dab3bbdc53df6055d371e983cc0 100644 (file)
@@ -57,6 +57,8 @@ static int FormatSettings[3][4] =
     if( ( build = hb_check_update( fHandle, &version ) ) > -1 )
     {
         /* Update available - tell the user */
+               /* TEMPORARILY COMMENT OUT AS UPDATE CHECK IS NOT ACCURATE */
+                /*
         NSBeginInformationalAlertSheet( _( @"Update is available" ),
             _( @"Go get it!" ), _( @"Discard" ), NULL, fWindow, self,
             @selector( UpdateAlertDone:returnCode:contextInfo: ),
@@ -64,6 +66,7 @@ static int FormatSettings[3][4] =
             _( @"HandBrake %s (build %d) is now available for download." ),
             version, build] );
         return;
+               */
     }
 
     /* Show scan panel ASAP */
@@ -286,14 +289,25 @@ static int FormatSettings[3][4] =
             for( int i = 0; i < hb_list_count( list ); i++ )
             {
                 title = (hb_title_t *) hb_list_item( list, i );
-                [fSrcDVD2Field setStringValue: [NSString
+                /*Set DVD Name at top of window*/
+                               [fSrcDVD2Field setStringValue: [NSString
                   stringWithUTF8String: title->name]]; 
-                                       
-                [fSrcTitlePopUp addItemWithTitle: [NSString
+                               
+                               /* Use the dvd name in the default output field here 
+                               May want to add code to remove blank spaces for some dvd names*/
+                               [fDstFile2Field setStringValue: [NSString stringWithFormat:
+                @"%@/Desktop/%@.mp4", NSHomeDirectory(),[NSString
+                  stringWithUTF8String: title->name]]];
+                               
+                           [fSrcTitlePopUp addItemWithTitle: [NSString
                     stringWithFormat: @"%d - %02dh%02dm%02ds",
                     title->index, title->hours, title->minutes,
                     title->seconds]];
-            }
+                                       
+                                       
+            
+                       
+                       }
 
             [self TitlePopUpChanged: NULL];
             [self EnableUI: YES];
index f1098ef2466ca5a39d637b5579f893ea6cef80fa..24b755c8ad0e56a53c14d87b6e67a66f32814605 100644 (file)
@@ -3,7 +3,7 @@
 <plist version="1.0">
 <dict>
        <key>IBDocumentLocation</key>
-       <string>69 85 356 240 0 0 1440 878 </string>
+       <string>36 281 376 264 0 0 1440 878 </string>
        <key>IBEditorPositions</key>
        <dict>
                <key>29</key>
        </dict>
        <key>IBFramework Version</key>
        <string>446.1</string>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>21</integer>
-               <integer>29</integer>
-       </array>
        <key>IBSystem Version</key>
        <string>8L127</string>
 </dict>
index d8e86a1e3c43a910c8b625d21f95bb365dbaa9c5..f84e1e0d400b57ede332fdba6c7065e88e269e3d 100644 (file)
Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ
index 6c0abfefc8f3040eb9bbb2e29f69b87d5093201a..482e5a9bfbfb4d11476d0b8909aa777d9449460a 100644 (file)
@@ -9,7 +9,7 @@
        <key>CFBundleExecutable</key>
        <string>HandBrake</string>
        <key>CFBundleGetInfoString</key>
-       <string>0.7.1</string>
+       <string>0.7.1a5</string>
        <key>CFBundleIconFile</key>
        <string>HandBrake.icns</string>
        <key>CFBundleIdentifier</key>
@@ -21,7 +21,7 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
-       <string>0.7.1a2</string>
+       <string>0.7.1a5</string>
        <key>CFBundleSignature</key>
        <string>HB##</string>
        <key>CFBundleVersion</key>
index 92621056b3deb4602b16a45ccebd49fc847641bc..b38d2b9992c6af39cdb86cf32ac12833903664f6 100644 (file)
 - (void) Show
 {
  
-       /* rev63 Drive Detector
-    DriveDetector * driveDetector;
-    driveDetector = [[DriveDetector alloc] initWithCallback: self
-        selector: @selector( UpdatePopup: )];
-    [driveDetector run];
-    */
-       // Taken From IHB for Post rev 63 drive detector
+
        fDriveDetector = [[DriveDetector alloc] initWithCallback: self
         selector: @selector( openUpdateDrives: )];
     [fDriveDetector run];
@@ -59,9 +53,6 @@
     [NSApp endSheet: fPanel];
     [fPanel orderOut: self];
 
-    //driveDetector stop/release not needed
-       //[driveDetector stop];
-    //[driveDetector release];
 }
 
 - (void) openUpdateDrives: (NSDictionary *) drives
     {
         [fDetectedPopUp addItemWithTitle: device];
     }
+    
+       
 
     if( ![fDetectedPopUp numberOfItems] )
     {
-        [fDetectedPopUp addItemWithTitle: INSERT_STRING];
+       [fDetectedPopUp addItemWithTitle: INSERT_STRING];
+       [fDetectedPopUp setEnabled: 0];
+    [fFolderField   setEnabled: 1];
+    [fBrowseButton  setEnabled: 1];
+       [fOpenButton    setEnabled: 0];
+       [fBrowseButton  setEnabled: 0];
+       //fOpenButton
+
+
     }
-    [fDetectedPopUp selectItemAtIndex: 0];
-    /* May not have any bearing on anything
-       here as this is from IHB. Need to test
-       
+       else
+       {
+       [fDetectedPopUp setEnabled: 1];
+    [fFolderField   setEnabled: 0];
+    [fBrowseButton  setEnabled: 0];
+       [fOpenButton    setEnabled: 1];
+       [fBrowseButton  setEnabled: 0];
+       }
+
+       [fDetectedPopUp selectItemAtIndex: 0];
+
+    /*
        if( [fMatrix isEnabled] )
     {
-        [self openEnable: YES];
+        [self EnableUI: YES];
+    }
     */
 }
 
-
-// UpdatePopup Not used for post rev 63 dd
-/*
-- (void) UpdatePopup: (NSArray *) drives
-{
-    [fDetectedPopUp removeAllItems];
-    [fDetectedPopUp addItemsWithTitles: drives];
-    [self MatrixChanged: self];
-}
-*/
 - (void) EnableUI: (bool) b
 {
     [fMatrix        setEnabled: b];
 - (IBAction) MatrixChanged: (id) sender
 {
     /* Do we have detected drives */
+
     if( [fDetectedPopUp numberOfItems] > 0 )
     {
         [fDetectedCell setEnabled: YES];
         [fMatrix       selectCell: fFolderCell];
         [fDetectedCell setEnabled: NO];
     }
-    
+
     /* Enable controls related to the current choice */
     bool foo;
     foo = ( [fMatrix selectedRow] == 0 );
     [fDetectedPopUp setEnabled:  foo];
     [fFolderField   setEnabled: !foo];
     [fBrowseButton  setEnabled: !foo];
+
 }
 
 /* Browse: