File:  [mozdev] / chimera / MainController.h
Revision 1.21: download - view: text, annotated - select for diffs - revision graph
Tue Feb 26 11:49:01 2002 UTC (17 years, 7 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
Checking in the underlying prefs structure, and a prefPane, also fir structural integrity.  Also including a couple categories to extend a couple Cocoa objects, and some project changes to support building with the bundled prefPanes.  Also, added a contrib directory to house user contributed artifacts.  To come soon: more prefPanes, and the colorized icon store, with pref-generated notifications to be picked up by toolbars.

    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: #import "MVPreferencesController.h"
   20: 
   21: class BookmarksService;
   22: 
   23: @interface MainController : NSObject 
   24: {
   25:     IBOutlet id mApplication;
   26:     
   27:     // The following two items are used by the filter list when saving files.
   28:     IBOutlet id mFilterView;
   29:     IBOutlet id mFilterList;
   30:     
   31:     IBOutlet id mOfflineMenuItem;
   32:     
   33:     // The bookmarks menu.
   34:     IBOutlet id mBookmarksMenu;
   35:     
   36:     BOOL mOffline;
   37:     
   38:     BookmarksService* mMenuBookmarks;
   39: 
   40:     MVPreferencesController	*preferencesController;
   41: }
   42: 
   43: -(void)dealloc;
   44: 
   45: // File menu actions.
   46: -(IBAction) newWindow:(id)aSender;
   47: -(IBAction) newTab:(id)aSender;
   48: -(IBAction) openFile:(id)aSender;
   49: -(IBAction) openLocation:(id)aSender;
   50: -(IBAction) savePage:(id)aSender;
   51: -(IBAction) printPreview:(id)aSender;
   52: -(IBAction) printPage:(id)aSender;
   53: -(IBAction) toggleOfflineMode:(id)aSender;
   54: 
   55: // Edit menu actions.
   56: -(IBAction) findInPage:(id)aSender;
   57: -(IBAction) findAgain:(id)aSender;
   58: 
   59: // Go menu actions.
   60: -(IBAction) goBack:(id)aSender;
   61: -(IBAction) goForward:(id)aSender;
   62: -(IBAction) goHome:(id)aSender;
   63: 
   64: // View menu actions.
   65: -(IBAction) doReload:(id)aSender;
   66: -(IBAction) doStop:(id)aSender;
   67: 
   68: // Bookmarks menu actions.
   69: -(IBAction) addBookmark:(id)aSender;
   70: -(IBAction) openMenuBookmark:(id)aSender;
   71: 
   72: -(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL;
   73: -(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL;
   74: 
   75: - (MVPreferencesController *)preferencesController;
   76: - (void)displayPreferencesWindow:sender;
   77: 
   78: @end

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