Diff for /chimera/BrowserWindowController.mm between versions 1.11 and 1.27

version 1.11, 2002/02/04 10:40:49 version 1.27, 2002/02/11 05:47:44
Line 27  static NSString *PrintToolbarItemIdentif Line 27  static NSString *PrintToolbarItemIdentif
     return [super init];      return [super init];
 }  }
   
   - (void)windowWillClose:(NSNotification *)notification
   {
       [self autorelease];
       [mSidebarBookmarksDataSource windowClosing];
   }
   
 - (void)dealloc  - (void)dealloc
 {  {
       printf("Browser controller died.\n");
       
     [mBrowserView windowClosed];      [mBrowserView windowClosed];
       [mSidebarBrowserView windowClosed];
       
     [super dealloc];      [super dealloc];
 }  }
   
Line 42  static NSString *PrintToolbarItemIdentif Line 52  static NSString *PrintToolbarItemIdentif
       [self loadURL: mURL];        [self loadURL: mURL];
       [mURL release];        [mURL release];
     }      }
       
       [mSidebarDrawer setDelegate: self];
       
       // Our initial view is our primary view.  Connect it up.
       NSTabViewItem* tab = [mTabBrowser tabViewItemAtIndex: 0];
       [mBrowserView makePrimaryBrowserView: tab urlbar: mURLBar status: mStatus
           progress: mProgress windowController: self];
   }
   
   - (void)drawerWillOpen: (NSNotification*)aNotification
   {
       [mSidebarBookmarksDataSource ensureBookmarks];
   }
   
   - (void)drawerDidOpen:(NSNotification *)aNotification
   {
       // XXXdwh This is temporary.
       [[mSidebarBrowserView getBrowserView] loadURI: [NSURL URLWithString: @"http://tinderbox.mozilla.org/SeaMonkey/panel.html"] flags:NSLoadFlagsNone];
   }
   
   - (void)drawerDidClose:(NSNotification *)aNotification
   {
       // Unload the Gecko web page in "My Panels" to save memory.
       [[mSidebarBrowserView getBrowserView] loadURI: [NSURL URLWithString: @"about:blank"] flags:NSLoadFlagsNone];
 }  }
   
 - (void)setupToolbar  - (void)setupToolbar
Line 231  static NSString *PrintToolbarItemIdentif Line 265  static NSString *PrintToolbarItemIdentif
     [[mBrowserView getBrowserView] saveDocument: aFilterView filterList: aFilterList];      [[mBrowserView getBrowserView] saveDocument: aFilterView filterList: aFilterList];
 }  }
   
   - (void)printDocument
   {
       [[mBrowserView getBrowserView] printDocument];
   }
   
   - (void)printPreview
   {
       [[mBrowserView getBrowserView] printPreview];
   }
   
   - (void)findInPage
   {
       [[mBrowserView getBrowserView] findInPage];
   }
   
   - (void)findAgain
   {
       [[mBrowserView getBrowserView] findAgain];
   }
   
   - (void)addBookmark
   {
       // XXXdwh Hack.  Just go to the sidebar for now until we get our
       // menu data source going.
       [mSidebarBookmarksDataSource ensureBookmarks];
       [mSidebarBookmarksDataSource addBookmark: self];
   }
   
 - (IBAction)back:(id)aSender  - (IBAction)back:(id)aSender
 {  {
   [[mBrowserView getBrowserView] goBack];    [[mBrowserView getBrowserView] goBack];
Line 294  static NSString *PrintToolbarItemIdentif Line 356  static NSString *PrintToolbarItemIdentif
     [[self window] display];      [[self window] display];
 }  }
   
- (void)windowWillClose:(NSNotification *)notification-(void)newTab
 {  {
     [self autorelease];  
 }  
   
   }
 @end  @end
   

Removed from v.1.11  
changed lines
  Added in v.1.27


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