--- chimera/MainController.h 2002/01/30 06:25:19 1.4 +++ chimera/MainController.h 2002/02/09 23:17:02 1.16 @@ -8,27 +8,60 @@ * etc. * * Code owners: - * David Hyatt + * David Hyatt * Matt Judy * - * Copyright (c) 2002 Mozilla.org. All rights reserved. + * Copyright (c) 2002 Mozilla.org. All rights reserved. */ #import - +#import "BrowserWindowController.h" +#include "BookmarksService.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; + + // The bookmarks menu. + IBOutlet id mBookmarksMenu; + + BOOL mOffline; + + BookmarksService* mMenuBookmarks; } +// 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; --(IBAction) home:(id)aSender; --(void)openBrowserWindowWithURL: (NSString*)aURL; +// Bookmarks menu actions. +-(IBAction) addBookmark:(id)aSender; + +-(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL; +-(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL; @end