File:  [mozdev] / chimera / MainController.h
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Wed Jan 30 22:43:11 2002 UTC (17 years, 3 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
The open location command is now hooked up in the menu!  New windows properly focus their url bar now.

    1: /*
    2:  *  Chimera.app
    3:  *  Cocoa application which embeds Gecko
    4:  *
    5:  *  MainController.h
    6:  *  ---------------------------------------------------
    7:  *  The primary NSObject subclass which handles menuItems, app delegation,
    8:  *	etc.
    9:  *
   10:  *  Code owners:
   11:  * 		David Hyatt		<hyatt@netscape.com>
   12:  *		Matt Judy		<matt@nibfile.com>
   13:  *
   14:  *  Copyright (c) 2002 Mozilla.org.  All rights reserved.
   15:  */
   16: 
   17: #import <Cocoa/Cocoa.h>
   18: #import "BrowserWindowController.h"
   19: 
   20: @interface MainController : NSObject 
   21: {
   22:     IBOutlet id mApplication;
   23: }
   24: 
   25: // File menu actions.
   26: -(IBAction) newWindow:(id)aSender;
   27: -(IBAction) openFile:(id)aSender;
   28: -(IBAction) openLocation:(id)aSender;
   29: 
   30: // Go menu actions.
   31: -(IBAction) back:(id)aSender;
   32: -(IBAction) forward:(id)aSender;
   33: -(IBAction) home:(id)aSender;
   34: 
   35: // View menu actions.
   36: -(IBAction) reload:(id)aSender;
   37: -(IBAction) stop:(id)aSender;
   38: 
   39: -(BrowserWindowController*)openBrowserWindowWithURL: (NSString*)aURL;
   40: 
   41: @end

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