File:  [mozdev] / chimera / MainController.h
Revision 1.16: download - view: text, annotated - select for diffs - revision graph
Sat Feb 9 23:17:02 2002 UTC (17 years, 10 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Rearranging the menus and making bookmarks show up in the menu.

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

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