- 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
- (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 );
- (IBAction)showPictureSettings:(id)sender;
/* Full Screen */
- (IBAction)toggleScreenMode:(id)sender;
+- (BOOL)fullScreen;
- (IBAction)goFullScreen:(id)sender;
- (IBAction)goWindowedScreen:(id)sender;
}
}
+- (BOOL)fullScreen
+{
+ return isFullScreen;
+}
+
- (IBAction)goFullScreen:(id)sender
{
// Get the screen information.
[self pictureSliderChanged:nil];
/* set the picture settings pallete above the shielding level */
- [fHBController picturePanelFullScreen];
+ //[fHBController picturePanelFullScreen];
}
}
[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);
- (IBAction) showPictureWindow: (id)sender
{
[self showWindow:sender];
+ if ([fPreviewController fullScreen] == YES)
+ {
+ [self setToFullScreenMode];
+ }
+ else
+ {
+ [self setToWindowedMode];
+ }
}
- (IBAction) showPreviewWindow: (id)sender
- (void) setToFullScreenMode
{
- [self showWindow:nil];
int32_t shieldLevel = CGShieldingWindowLevel();
[fPictureWindow setLevel:shieldLevel];
- (void) setToWindowedMode
{
/* Set the window back to regular level */
-
- [self showWindow:nil];
-
[[self window] setLevel:NSNormalWindowLevel];
}