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: ),
_( @"HandBrake %s (build %d) is now available for download." ),
version, build] );
return;
+ */
}
/* Show scan panel ASAP */
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];
<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>
<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>
- (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];
[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: