Diff for /chimera/BrowserWindowController.mm between versions 1.15 and 1.26

version 1.15, 2002/02/05 08:45:58 version 1.26, 2002/02/11 03:43:12
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 241  static NSString *PrintToolbarItemIdentif Line 275  static NSString *PrintToolbarItemIdentif
     [[mBrowserView getBrowserView] 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];

Removed from v.1.15  
changed lines
  Added in v.1.26


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