Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License. */
-#include "Controller.h"
-#include "a52dec/a52.h"
+#import "Controller.h"
#import "HBOutputPanelController.h"
#import "HBPreferencesController.h"
-/* Added to integrate scanning into HBController */
-#include <IOKit/IOKitLib.h>
-#include <IOKit/storage/IOMedia.h>
-#include <IOKit/storage/IODVDMedia.h>
-#include "HBDVDDetector.h"
-#include "dvdread/dvd_reader.h"
-#include "HBPresets.h"
+#import "HBDVDDetector.h"
+#import "HBPresets.h"
#define DragDropSimplePboardType @"MyCustomOutlineViewPboardType"
/*Opens the source browse window, called from Open Source widgets */
- (IBAction) browseSources: (id) sender
{
- [self enableUI: NO];
NSOpenPanel * panel;
panel = [NSOpenPanel openPanel];
}
}
- else // User clicked Cancel in browse window
- {
- /* if we have a title loaded up */
- if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
- {
- [self enableUI: YES];
- }
- }
}
/* Here we open the title selection sheet where we can specify an exact title to be scanned */
[fChapterTitlesDelegate resetWithTitle:nil];
[fChapterTable reloadData];
+ [self enableUI: NO];
+
if( [detector isVideoDVD] )
{
// The chosen path was actually on a DVD, so use the raw block
hb_scan( fHandle, [path UTF8String], scanTitleNum );
[fSrcDVD2Field setStringValue:@"Scanning new source ..."];
}
- else
- {
- /* if we have a title loaded up */
- if ([[fSrcDVD2Field stringValue] length] > 0 && SuccessfulScan)
- {
- [self enableUI: YES];
- }
- }
}
- (IBAction) showNewScan:(id)sender