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 (16 years, 10 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
The status bar is hooked up now.  Also adding debugging printfs.

/*
 *  Chimera.app
 *  Cocoa application which embeds Gecko
 *
 *  MainController.h
 *  ---------------------------------------------------
 *  The primary NSObject subclass which handles menuItems, app delegation,
 *	etc.
 *
 *  Code owners:
 * 		David Hyatt		<hyatt@netscape.com>
 *		Matt Judy		<matt@nibfile.com>
 *
 *  Copyright (c) 2002 Mozilla.org.  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;
}

-(void)dealloc;

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

@end

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