File:  [mozdev] / chimera / MainController.h
Revision 1.22: download - view: text, annotated - select for diffs - revision graph
Sun Mar 3 12:53:10 2002 UTC (18 years, 4 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
Last checkin for the night.  This makes tabs fully usable.  What's left: Menu item validation code.  This will cover all menu items, but most importantly, it will switch the key shortcut for Close Window between cmd+w and shift+cmd+w and Close Tab between blank and cmd+w.

 *  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"
#import "MVPreferencesController.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;

    MVPreferencesController	*preferencesController;


// 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) goBack:(id)aSender;
-(IBAction) goForward:(id)aSender;
-(IBAction) goHome:(id)aSender;
-(IBAction) previousTab:(id)aSender;
-(IBAction) nextTab:(id)aSender;

// View menu actions.
-(IBAction) doReload:(id)aSender;
-(IBAction) doStop:(id)aSender;

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

//Window menu actions
-(IBAction) newTab:(id)aSender;
-(IBAction) closeTab:(id)aSender;

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

- (MVPreferencesController *)preferencesController;
- (void)displayPreferencesWindow:sender;


FreeBSD-CVSweb <>