summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-12-15 15:11:49 +0000
committerdynaflash <[email protected]>2008-12-15 15:11:49 +0000
commit45e2e58bed396259f939f7482d6e7eec31b1a351 (patch)
tree1be6427f405edcd0c85830c6c39fe14bb3b32c2a /macosx/Controller.mm
parent0137a81794777bc60e5dd34ea1af2b8336971a9d (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/Controller.mm')
-rw-r--r--macosx/Controller.mm15
1 files changed, 10 insertions, 5 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 0bf28c766..cf5ad3057 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -60,7 +60,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
attributes:nil];
}
outputPanel = [[HBOutputPanelController alloc] init];
- fPictureController = [[PictureController alloc] initWithDelegate:self];
+ fPictureController = [[PictureController alloc] init];
fQueueController = [[HBQueueController alloc] init];
fAdvancedOptions = [[HBAdvancedController alloc] init];
/* we init the HBPresets class which currently is only used
@@ -89,6 +89,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[GrowlApplicationBridge setGrowlDelegate: self];
/* Init others controllers */
[fPictureController SetHandle: fHandle];
+ [fPictureController setHBController: self];
[fQueueController setHandle: fQueueEncodeLibhb];
[fQueueController setHBController: self];
@@ -239,6 +240,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[browsedSourceDisplayName release];
[outputPanel release];
[fQueueController release];
+ [fPictureController release];
hb_close(&fHandle);
hb_close(&fQueueEncodeLibhb);
}
@@ -4102,7 +4104,8 @@ the user is using "Custom" settings by determining the sender*/
* Registers changes made in the Picture Settings Window.
*/
-- (void)pictureSettingsDidChange {
+- (void)pictureSettingsDidChange
+{
[self calculatePictureSizing:nil];
}
@@ -5146,11 +5149,13 @@ the user is using "Custom" settings by determining the sender*/
- (IBAction) showPicturePanel: (id) sender
{
- hb_list_t * list = hb_get_titles( fHandle );
+ /*
+ hb_list_t * list = hb_get_titles( fHandle );
hb_title_t * title = (hb_title_t *) hb_list_item( list,
[fSrcTitlePopUp indexOfSelectedItem] );
- //[fPictureController SetTitle:title];
- [fPictureController showPreviewPanel:sender forTitle:title];
+ */
+ //[fPictureController showPreviewPanel:sender forTitle:title];
+ [fPictureController showPictureWindow:sender];
}
#pragma mark -