Diff for /chimera/BrowserWindowController.mm between versions 1.47 and 1.48

version 1.47, 2002/03/08 03:18:00 version 1.48, 2002/03/10 19:26:16
Line 81  static NSString *PrintToolbarItemIdentif Line 81  static NSString *PrintToolbarItemIdentif
     if ( (self = [super initWithWindowNibName:(NSString *)windowNibName]) ) {      if ( (self = [super initWithWindowNibName:(NSString *)windowNibName]) ) {
         mInitialized = NO;          mInitialized = NO;
         mMoveReentrant = NO;          mMoveReentrant = NO;
           mShouldAutosave = YES;
     }      }
     return self;      return self;
 }  }
   
   -(void)autosaveWindowFrame
   {
     if (mShouldAutosave)
       [[self window] saveFrameUsingName: @"NavigatorWindow"];
   }
   
   -(void)disableAutosave
   {
     mShouldAutosave = NO;
   }
   
 - (void)windowWillClose:(NSNotification *)notification  - (void)windowWillClose:(NSNotification *)notification
 {  {
     printf("Window will close notification.\n");      printf("Window will close notification.\n");
     [self autorelease];      [self autorelease];
     [mSidebarBookmarksDataSource windowClosing];      [mSidebarBookmarksDataSource windowClosing];
   
       [self autosaveWindowFrame];
 }  }
   
 - (void)dealloc  - (void)dealloc
Line 107  static NSString *PrintToolbarItemIdentif Line 121  static NSString *PrintToolbarItemIdentif
 - (void)windowDidLoad  - (void)windowDidLoad
 {  {
     [super windowDidLoad];      [super windowDidLoad];
   
       // Get our saved dimensions.
       [[self window] setFrameUsingName: @"NavigatorWindow"];
           
     if (mModalSession)      if (mModalSession)
       [NSApp stopModal: mModalSession];        [NSApp stopModal: mModalSession];
Line 507  static NSString *PrintToolbarItemIdentif Line 524  static NSString *PrintToolbarItemIdentif
   
 -(void)openNewWindowWithURL: (NSURL*)aURL loadInBackground: (BOOL)aLoadInBG  -(void)openNewWindowWithURL: (NSURL*)aURL loadInBackground: (BOOL)aLoadInBG
 {  {
    BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];  // Autosave our dimensions before we open a new window.  That ensures the size ends up matching.
    [browser loadURL: aURL];  [self autosaveWindowFrame];
    if (aLoadInBG)
      [[browser window] orderWindow: NSWindowBelow relativeTo: [[self window] windowNumber]];  BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
        else  [browser loadURL: aURL];
      [browser showWindow: self];  if (aLoadInBG)
          [[browser window] orderWindow: NSWindowBelow relativeTo: [[self window] windowNumber]];
    // XXXdwh Focus the content area.  else
     [browser showWindow: self];
 
   // XXXdwh Focus the content area.
 }  }
   
 -(void)openNewTabWithURL: (NSURL*)aURL loadInBackground: (BOOL)aLoadInBG  -(void)openNewTabWithURL: (NSURL*)aURL loadInBackground: (BOOL)aLoadInBG

Removed from v.1.47  
changed lines
  Added in v.1.48


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>