summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-01-26 21:34:59 +0000
committerdynaflash <[email protected]>2009-01-26 21:34:59 +0000
commitf1c3b0a71ede4b578481a980c1e69bf27ab0a2f4 (patch)
treeaf79ba12b3c3cb664e6fc2e332d09433273395b4 /macosx/HBPreviewController.mm
parenta1beb04d523c26c851e820572507cbff8b27e637 (diff)
MacGui: Picture Filters separate hud inspector initial implementation
- Separates the filters out from the picture settings inspector into their own inspector in preparation for more advanced filters - Gingerbread is shaky but wanted to get the functionality into the svn due the the number of files modified or added. - Adds a toggle action to Picture Settings, Picture Filters and the activity window git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2099 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.mm')
-rw-r--r--macosx/HBPreviewController.mm24
1 files changed, 17 insertions, 7 deletions
diff --git a/macosx/HBPreviewController.mm b/macosx/HBPreviewController.mm
index dfcf554ac..8d78b945b 100644
--- a/macosx/HBPreviewController.mm
+++ b/macosx/HBPreviewController.mm
@@ -319,13 +319,23 @@ MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
- (IBAction)showPreviewPanel: (id)sender forTitle: (hb_title_t *)title
{
[self SetTitle:title];
- [self showWindow:sender];
- [fPreviewWindow setAcceptsMouseMovedEvents:YES];
- isFullScreen = NO;
- scaleToScreen = NO;
- hudTimerSeconds = 0;
- [self startHudTimer];
-
+
+ if ([fPreviewWindow isVisible])
+ {
+
+ [fPreviewWindow close];
+
+ }
+ else
+ {
+ [self showWindow:sender];
+ [fPreviewWindow setAcceptsMouseMovedEvents:YES];
+ isFullScreen = NO;
+ scaleToScreen = NO;
+ hudTimerSeconds = 0;
+ [self startHudTimer];
+ }
+
}
- (IBAction)showPictureSettings:(id)sender