File:  [mozdev] / chimera / MainController.h
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Mon Feb 11 07:22:13 2002 UTC (17 years, 10 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Tabbed browsing lives.

    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: -(void)dealloc;
   41: 
   42: // File menu actions.
   43: -(IBAction) newWindow:(id)aSender;
   44: -(IBAction) newTab:(id)aSender;
   45: -(IBAction) openFile:(id)aSender;
   46: -(IBAction) openLocation:(id)aSender;
   47: -(IBAction) savePage:(id)aSender;
   48: -(IBAction) printPreview:(id)aSender;
   49: -(IBAction) printPage:(id)aSender;
   50: -(IBAction) toggleOfflineMode:(id)aSender;
   51: 
   52: // Edit menu actions.
   53: -(IBAction) findInPage:(id)aSender;
   54: -(IBAction) findAgain:(id)aSender;
   55: 
   56: // Go menu actions.
   57: -(IBAction) goBack:(id)aSender;
   58: -(IBAction) goForward:(id)aSender;
   59: -(IBAction) goHome:(id)aSender;
   60: 
   61: // View menu actions.
   62: -(IBAction) doReload:(id)aSender;
   63: -(IBAction) doStop:(id)aSender;
   64: 
   65: // Bookmarks menu actions.
   66: -(IBAction) addBookmark:(id)aSender;
   67: -(IBAction) openMenuBookmark:(id)aSender;
   68: 
   69: -(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL;
   70: -(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL;
   71: 
   72: @end

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