]> granicus.if.org Git - handbrake/commitdiff
MacGui: Picture Preview and Settings window interaction fixes
authordynaflash <dynaflashtech@gmail.com>
Wed, 14 Jan 2009 20:20:09 +0000 (20:20 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Wed, 14 Jan 2009 20:20:09 +0000 (20:20 +0000)
- Putting the Preview Window into full screen mode no longer automatically opens up the Picture Settings inspector
- Fixed the Picture Settings inspector so that it isn't on top of every f'ing window on your screen.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2086 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm
macosx/HBPreviewController.h
macosx/HBPreviewController.mm
macosx/PictureController.mm

index b0891342a9fc0985a0952ff224e3e3c603c93d62..7d07da08f64633b94f08828a81739ae5a5994213 100644 (file)
@@ -207,8 +207,11 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
 
 - (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *) app
 {
-    [fPreviewController goWindowedScreen:nil];
-    // Warn if encoding a movie
+    if ([fPreviewController fullScreen] == YES)
+    {
+        [fPreviewController goWindowedScreen:nil];
+    }
+    
     hb_state_t s;
     hb_get_state( fQueueEncodeLibhb, &s );
     
index 16dd75e4833d77e5afecfd22eb165378c4e819b1..278e20a27da56a8f96c70053af2d480f4a9c7ec6 100644 (file)
@@ -78,6 +78,7 @@
 - (IBAction)showPictureSettings:(id)sender;
 /* Full Screen */
 - (IBAction)toggleScreenMode:(id)sender;
+- (BOOL)fullScreen;
 - (IBAction)goFullScreen:(id)sender;
 - (IBAction)goWindowedScreen:(id)sender;
 
index 575a2c6eca1bf9d3ad2667c702af1ca61ea33249..10c8855877902045a6ba8d39a510116b8a88eda0 100644 (file)
@@ -449,6 +449,11 @@ MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
     }
 }
 
+- (BOOL)fullScreen
+{
+    return isFullScreen;
+}
+
 - (IBAction)goFullScreen:(id)sender 
 { 
     // Get the screen information. 
@@ -534,7 +539,7 @@ MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
         [self pictureSliderChanged:nil];
         
         /* set the picture settings pallete above the shielding level */
-        [fHBController picturePanelFullScreen];
+        //[fHBController picturePanelFullScreen];
     } 
 } 
 
@@ -575,7 +580,7 @@ MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
     [fFullScreenToggleButton setTitle: @"Full Screen"];
     
     /* set the picture settings pallete back to normal level */
-    [fHBController picturePanelFullScreen];
+    [fHBController picturePanelWindowed];
     
     /* Release the display now that the we are back in windowed mode */
     CGDisplayRelease(displayID);
index df70de6571da136bf359c926ee8074d2f4bad4b0..8752c24f55fa3fd8e79b9695b0797a58be441f52 100644 (file)
 - (IBAction) showPictureWindow: (id)sender
 {
     [self showWindow:sender];
+    if ([fPreviewController fullScreen] == YES)
+    {
+    [self setToFullScreenMode];
+    }
+    else
+    {
+    [self setToWindowedMode];
+    }
 }
 
 - (IBAction) showPreviewWindow: (id)sender
@@ -46,7 +54,6 @@
 
 - (void) setToFullScreenMode
 {
-    [self showWindow:nil];
     int32_t shieldLevel = CGShieldingWindowLevel(); 
     
     [fPictureWindow setLevel:shieldLevel]; 
@@ -57,9 +64,6 @@
 - (void) setToWindowedMode
 {
     /* Set the window back to regular level */
-    
-    [self showWindow:nil];
-    
     [[self window] setLevel:NSNormalWindowLevel];
 }