/* * Chimera.app * Cocoa application which embeds Gecko * * MainController.h * --------------------------------------------------- * The primary NSObject subclass which handles menuItems, app delegation, * etc. * * Code owners: * David Hyatt * Matt Judy * * Copyright (c) 2002 Mozilla.org. All rights reserved. */ #import #import "BrowserWindowController.h" @interface MainController : NSObject { IBOutlet id mApplication; // The following two items are used by the filter list when saving files. IBOutlet id mFilterView; IBOutlet id mFilterList; IBOutlet id mOfflineMenuItem; BOOL mOffline; } // File menu actions. -(IBAction) newWindow:(id)aSender; -(IBAction) openFile:(id)aSender; -(IBAction) openLocation:(id)aSender; -(IBAction) savePage:(id)aSender; -(IBAction) printPreview:(id)aSender; -(IBAction) printPage:(id)aSender; -(IBAction) toggleOfflineMode:(id)aSender; // Edit menu actions. -(IBAction) findInPage:(id)aSender; -(IBAction) findAgain:(id)aSender; // Go menu actions. -(IBAction) back:(id)aSender; -(IBAction) forward:(id)aSender; -(IBAction) home:(id)aSender; // View menu actions. -(IBAction) reload:(id)aSender; -(IBAction) stop:(id)aSender; // Bookmarks menu actions. -(IBAction) addBookmark:(id)aSender; -(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL; -(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL; @end