2011-01-12 23:21:17 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Sven Weidauer <sven.weidauer@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
@class PSMTabBarControl;
|
|
|
|
@class BrowserViewController;
|
2011-01-24 12:12:22 +03:00
|
|
|
@class URLFieldCell;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
@interface BrowserWindowController : NSWindowController {
|
|
|
|
PSMTabBarControl *tabBar;
|
|
|
|
NSTabView *tabView;
|
2011-01-24 12:12:22 +03:00
|
|
|
URLFieldCell *urlField;
|
2011-01-25 20:16:17 +03:00
|
|
|
NSObjectController *activeBrowserController;
|
2011-01-26 16:35:07 +03:00
|
|
|
NSSegmentedControl *navigationControl;
|
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
BrowserViewController *activeBrowser;
|
2011-01-12 23:21:17 +03:00
|
|
|
}
|
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
@property (readwrite, retain, nonatomic) IBOutlet PSMTabBarControl *tabBar;
|
|
|
|
@property (readwrite, retain, nonatomic) IBOutlet NSTabView *tabView;
|
2011-01-24 12:12:22 +03:00
|
|
|
@property (readwrite, retain, nonatomic) IBOutlet URLFieldCell *urlField;
|
2011-01-25 20:16:17 +03:00
|
|
|
@property (readwrite, retain, nonatomic) IBOutlet NSObjectController *activeBrowserController;
|
2011-01-26 16:35:07 +03:00
|
|
|
@property (readwrite, retain, nonatomic) IBOutlet NSSegmentedControl *navigationControl;
|
2011-01-24 12:12:22 +03:00
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
@property (readwrite, assign, nonatomic) BrowserViewController *activeBrowser;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
2011-01-26 16:35:07 +03:00
|
|
|
@property (readwrite, assign, nonatomic) BOOL canGoBack;
|
|
|
|
@property (readwrite, assign, nonatomic) BOOL canGoForward;
|
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
- (IBAction) newTab: (id) sender;
|
2011-01-26 18:04:42 +03:00
|
|
|
- (IBAction) closeCurrentTab: (id) sender;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
- (void) addTab: (BrowserViewController *)browser;
|
|
|
|
- (void) removeTab: (BrowserViewController *)browser;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
|
|
|
@end
|