diff options
author | dynaflash <[email protected]> | 2008-12-15 15:11:49 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-12-15 15:11:49 +0000 |
commit | 45e2e58bed396259f939f7482d6e7eec31b1a351 (patch) | |
tree | 1be6427f405edcd0c85830c6c39fe14bb3b32c2a /macosx/PictureController.h | |
parent | 0137a81794777bc60e5dd34ea1af2b8336971a9d (diff) |
MacGui: Picture window now uses a subclass of HBController to access the main controller.
- fixed issue where preview movie keeps playing even if the picture window is closed
- Removed deprecated -ClosePanel method since we now use the windows native close button.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2033 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.h')
-rw-r--r-- | macosx/PictureController.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx/PictureController.h b/macosx/PictureController.h index 631a1d11c..6c6eef765 100644 --- a/macosx/PictureController.h +++ b/macosx/PictureController.h @@ -10,6 +10,8 @@ /* Needed for Quicktime movie previews */ #import <QTKit/QTKit.h> +@class HBController; + #define HB_NUM_HBLIB_PICTURES 20 // # of preview pictures libhb should generate @interface PictureController : NSWindowController @@ -17,6 +19,8 @@ hb_handle_t * fHandle; hb_title_t * fTitle; + HBController *fHBController; // reference to HBController + IBOutlet NSWindow * fPictureWindow; NSMutableDictionary * fPicturePreviews; // NSImages, one for each preview libhb creates, created lazily int fPicture; @@ -81,10 +85,13 @@ IBOutlet QTMovieView * fMovieView; IBOutlet NSPopUpButton * fPreviewMovieLengthPopUp; // popup of choices for length of preview in seconds } -- (id)initWithDelegate:(id)del; +- (id)init; - (void) SetHandle: (hb_handle_t *) handle; - (void) SetTitle: (hb_title_t *) title; +- (void)setHBController: (HBController *)controller; +- (IBAction) showPictureWindow: (id)sender; + - (void) setInitialPictureFilters; - (void) displayPreview; @@ -100,9 +107,6 @@ - (IBAction) showMoviePreview: (NSString *) path; - (IBAction) previewDurationPopUpChanged: (id) sender; - -- (IBAction) ClosePanel: (id) sender; - - (BOOL) autoCrop; - (void) setAutoCrop: (BOOL) setting; @@ -130,7 +134,3 @@ - (void) purgeImageCache; @end -@interface NSObject (PictureControllertDelegateMethod) -- (void)pictureSettingsDidChange; -- (void)prepareJobForPreview; -@end |