--- chimera/BrowserWindowController.mm 2002/02/05 06:19:25 1.14 +++ chimera/BrowserWindowController.mm 2002/02/07 05:11:38 1.18 @@ -27,6 +27,11 @@ static NSString *PrintToolbarItemIdentif return [super init]; } +- (void)windowWillClose:(NSNotification *)notification +{ + [self autorelease]; +} + - (void)dealloc { [mBrowserView windowClosed]; @@ -42,6 +47,13 @@ static NSString *PrintToolbarItemIdentif [self loadURL: mURL]; [mURL release]; } + + [mSidebarDrawer setDelegate: self]; +} + +- (void)drawerDidOpen:(NSNotification *)aNotification +{ + [[mSidebarBrowserView getBrowserView] loadURI: [NSURL URLWithString: @"http://tinderbox.mozilla.org/SeaMonkey/panel.html"] flags:NSLoadFlagsNone]; } - (void)setupToolbar @@ -236,6 +248,21 @@ static NSString *PrintToolbarItemIdentif [[mBrowserView getBrowserView] printDocument]; } +- (void)printPreview +{ + [[mBrowserView getBrowserView] printPreview]; +} + +- (void)findInPage +{ + [[mBrowserView getBrowserView] findInPage]; +} + +- (void)findAgain +{ + [[mBrowserView getBrowserView] findAgain]; +} + - (IBAction)back:(id)aSender { [[mBrowserView getBrowserView] goBack];