File:  [mozdev] / chimera / MainController.h
Revision 1.18: download - view: text, annotated - select for diffs - revision graph
Sun Feb 10 01:12:05 2002 UTC (17 years ago) by hyatt
Branches: MAIN
CVS tags: HEAD
The status bar is hooked up now.  Also adding debugging printfs.

 *  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  All rights reserved.

#import <Cocoa/Cocoa.h>
#import "BrowserWindowController.h"

class BookmarksService;

@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;

// Bookmarks menu actions.
-(IBAction) addBookmark:(id)aSender;
-(IBAction) openMenuBookmark:(id)aSender;

-(BrowserWindowController*)openBrowserWindowWithURLString: (NSString*)aURL;
-(BrowserWindowController*)openBrowserWindowWithURL: (NSURL*)aURL;


FreeBSD-CVSweb <>