diff options
author | Rodeo <[email protected]> | 2012-09-21 20:25:24 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-09-21 20:25:24 +0000 |
commit | a128ed16e74d4afaf135d4fff7e41688930f53cb (patch) | |
tree | ec600e17a40fc7e36e6392f33a2e9fe66d6adfa2 /macosx/Controller.h | |
parent | 9b3ab50a16042a2be298d15549cf30cbbc28f1c5 (diff) |
MacGui: Add the drag & drop features on both DockIcon and Handbrake Main Window
- Patch courtesy of Jerome Lacube. Thanks Jerome!
- It handles dragging & dropping one file, and folders.
-- Please note that when dropping a folder, the files inside will be treated as titles.
- Specifics can be found here https://reviews.handbrake.fr/r/345/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4973 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r-- | macosx/Controller.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index c8eb322bb..ddc52880f 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -259,6 +259,8 @@ BOOL fIsDragging; /* Dock progress variables */ double dockIconProgress; + + BOOL fWillScan; NSDockTile *dockTile; DockTextField *percentField; DockTextField *timeField; @@ -446,7 +448,12 @@ BOOL fIsDragging; + (unsigned int) maximumNumberOfAllowedAudioTracks; - (IBAction) addAllAudioTracks: (id) sender; -- (void) updateDockIcon:(double)progress withETA:(NSString*)etaStr; +// Drag & Drop methods +- (void)openFiles:(NSArray*)filenames; +- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames; +- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender; +- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender; +- (void) updateDockIcon:(double)progress withETA:(NSString*)etaStr; @end |