File:  [mozdev] / chimera / MainController.h
Revision 1.17: download - view: text, annotated - select for diffs - revision graph
Sun Feb 10 00:29:08 2002 UTC (17 years, 9 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Bookmarks in the menu bar work!

    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: class BookmarksService;
   21: 
   22: @interface MainController : NSObject 
   23: {
   24:     IBOutlet id mApplication;
   25:     
   26:     // The following two items are used by the filter list when saving files.
   27:     IBOutlet id mFilterView;
   28:     IBOutlet id mFilterList;
   29:     
   30:     IBOutlet id mOfflineMenuItem;
   31:     
   32:     // The bookmarks menu.
   33:     IBOutlet id mBookmarksMenu;
   34:     
   35:     BOOL mOffline;
   36:     
   37:     BookmarksService* mMenuBookmarks;
   38: }
   39: 
   40: // File menu actions.
   41: -(IBAction) newWindow:(id)aSender;
   42: -(IBAction) openFile:(id)aSender;
   43: -(IBAction) openLocation:(id)aSender;
   44: -(IBAction) savePage:(id)aSender;
   45: -(IBAction) printPreview:(id)aSender;
   46: -(IBAction) printPage:(id)aSender;
   47: -(IBAction) toggleOfflineMode:(id)aSender;
   48: 
   49: // Edit menu actions.
   50: -(IBAction) findInPage:(id)aSender;
   51: -(IBAction) findAgain:(id)aSender;
   52: 
   53: // Go menu actions.
   54: -(IBAction) back:(id)aSender;
   55: -(IBAction) forward:(id)aSender;
   56: -(IBAction) home:(id)aSender;
   57: 
   58: // View menu actions.
   59: -(IBAction) reload:(id)aSender;
   60: -(IBAction) stop:(id)aSender;
   61: 
   62: // Bookmarks menu actions.
   63: -(IBAction) addBookmark:(id)aSender;
   64: -(IBAction) openMenuBookmark:(id)aSender;
   65: 
   66: -(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL;
   67: -(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL;
   68: 
   69: @end

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