File:  [mozdev] / chimera / BrowserWindowController.h
Revision 1.21: download - view: text, annotated - select for diffs - revision graph
Tue Feb 12 01:47:57 2002 UTC (15 years, 10 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Lots of tweaks and cleanup.

/*
 *  Chimera.app
 *  Cocoa application which embeds Gecko
 *
 *  BrowserWindowController.h
 *  ---------------------------------------------------
 *  This is the NSWindowController subclass which is responsible for handling
 *  the functions of a browser window.
 *
 *  Code owners:
 * 		David Hyatt		<hyatt@netscape.com>
 *		Matt Judy		<matt@nibfile.com>
 *
 *  Copyright (c) 2002 Mozilla.org.  All rights reserved.
 */

#import <Cocoa/Cocoa.h>
#import "MyBrowserView.h"

@interface BrowserWindowController : NSWindowController
{
    IBOutlet id mTabBrowser;
    IBOutlet id mSidebarDrawer;
    IBOutlet id mLocationToolbarView;
    IBOutlet id mURLBar;
    IBOutlet id mStatus;
    IBOutlet id mProgress;
    IBOutlet id mLocationSheetWindow;
    IBOutlet id mLocationSheetURLField;
    IBOutlet id mSidebarBrowserView;
    IBOutlet id mSidebarBookmarksDataSource;
    
    NSToolbarItem *mLocationToolbarItem;
    BOOL mInitialized;
    NSURL* mURL;
    
    MyBrowserView* mBrowserView;
}

- (void)dealloc;

-(MyBrowserView*)getMyBrowserView;

- (void)loadURL:(NSURL*)aURL;
- (void)updateLocationFields:(NSString *)locationString;
- (void)updateToolbarItems;
- (void)focusURLBar;

- (void)performAppropriateLocationAction;
- (IBAction)goToLocationFromToolbarURLField:(id)sender;
- (void)focusURLBar;
- (void)beginLocationSheet;
- (IBAction)endLocationSheet:(id)sender;
- (void)saveDocument: (NSView*)aFilterView filterList: (NSPopUpButton*)aFilterList;
- (void)printDocument;
- (void)printPreview;

- (void)findInPage;
- (void)findAgain;

- (void)addBookmark;

- (void)newTab;

- (IBAction)back:(id)aSender;
- (IBAction)forward:(id)aSender;
- (IBAction)reload:(id)aSender;
- (IBAction)stop:(id)aSender;
- (IBAction)home:(id)aSender;

@end

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