version 1.18, 2002/02/07 05:11:38
|
version 1.27, 2002/02/11 05:47:44
|
Line 30 static NSString *PrintToolbarItemIdentif
|
Line 30 static NSString *PrintToolbarItemIdentif
|
- (void)windowWillClose:(NSNotification *)notification |
- (void)windowWillClose:(NSNotification *)notification |
{ |
{ |
[self autorelease]; |
[self autorelease]; |
|
[mSidebarBookmarksDataSource windowClosing]; |
} |
} |
|
|
- (void)dealloc |
- (void)dealloc |
{ |
{ |
|
printf("Browser controller died.\n"); |
|
|
[mBrowserView windowClosed]; |
[mBrowserView windowClosed]; |
|
[mSidebarBrowserView windowClosed]; |
|
|
[super dealloc]; |
[super dealloc]; |
} |
} |
|
|
Line 49 static NSString *PrintToolbarItemIdentif
|
Line 54 static NSString *PrintToolbarItemIdentif
|
} |
} |
|
|
[mSidebarDrawer setDelegate: self]; |
[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 |
- (void)drawerDidOpen:(NSNotification *)aNotification |
{ |
{ |
|
// XXXdwh This is temporary. |
[[mSidebarBrowserView getBrowserView] loadURI: [NSURL URLWithString: @"http://tinderbox.mozilla.org/SeaMonkey/panel.html"] flags:NSLoadFlagsNone]; |
[[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 |
{ |
{ |
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier:BrowserToolbarIdentifier] autorelease]; |
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier:BrowserToolbarIdentifier] autorelease]; |
Line 263 static NSString *PrintToolbarItemIdentif
|
Line 285 static NSString *PrintToolbarItemIdentif
|
[[mBrowserView getBrowserView] 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 325 static NSString *PrintToolbarItemIdentif
|
Line 355 static NSString *PrintToolbarItemIdentif
|
[[self window] update]; |
[[self window] update]; |
[[self window] display]; |
[[self window] display]; |
} |
} |
|
|
|
-(void)newTab |
|
{ |
|
|
|
} |
@end |
@end |
|
|