summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-01-27 17:47:35 +0000
committerdynaflash <[email protected]>2009-01-27 17:47:35 +0000
commit22ad6f6931e51738146c0e01b169d0c65bee312d (patch)
tree73b1ccccecb1fa25e04b442ad13be3d17ef41991 /macosx/PictureController.mm
parent37d64db75be1ed276961e1adfa9dca39bb645b43 (diff)
MacGui: remember window postion and open/close state of the Picture Filter and Picture sizing inspectors and restore them at the next launch.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2101 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r--macosx/PictureController.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm
index 1ffb3ae48..4965f76f8 100644
--- a/macosx/PictureController.mm
+++ b/macosx/PictureController.mm
@@ -44,6 +44,7 @@
else
{
[self showWindow:sender];
+ [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"PictureSizeWindowIsOpen"];
if ([fPreviewController fullScreen] == YES)
{
[self setToFullScreenMode];
@@ -92,12 +93,16 @@
- (void)awakeFromNib
{
[fPictureWindow setDelegate:self];
+ if( ![[self window] setFrameUsingName:@"PictureSizing"] )
+ [[self window] center];
+ [self setWindowFrameAutosaveName:@"PictureSizing"];
+ [[self window] setExcludedFromWindowsMenu:YES];
}
- (void)windowWillClose:(NSNotification *)aNotification
{
-
+[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"PictureSizeWindowIsOpen"];
}
- (BOOL)windowShouldClose:(id)fPictureWindow