Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (40 sloc) 1.64 KB
// Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#import <ChromiumTabs/ChromiumTabs.h>
@class KAutocompleteTextField,
KAutocompleteTextFieldEditor,
KLocationBarController,
KSplitView;
// A controller for the toolbar in the browser window.
//
// This class is meant to be subclassed -- the default implementation will load
// a placeholder/dummy nib. You need to do two things:
//
// 1. Create a new subclass of CTToolbarController.
//
// 2. Copy the Toolbar.xib into your project (or create a new) and modify it as
// needed (add buttons etc). Make sure the "files owner" type matches your
// CTToolbarController subclass.
//
// 3. Implement createToolbarController in your CTBrowser subclass to initialize
// and return a CTToolbarController based on your nib.
//
@interface KToolbarController : CTToolbarController {
IBOutlet KAutocompleteTextField* locationBarTextField_;
IBOutlet NSView *leftViewGroup_;
IBOutlet NSView *rightViewGroup_;
NSURL *directoryURL_;
KSplitView *splitView_;
KAutocompleteTextFieldEditor *autocompleteTextFieldEditor_;
KLocationBarController *locationBarController_;
__weak CTTabContents *currentContents_;
}
@property(readonly, nonatomic) KAutocompleteTextField* locationBarTextField;
@property(assign, nonatomic) __weak KSplitView *splitView;
@property(copy, nonatomic) NSURL *directoryURL;
- (void)updateLayoutForSplitView;
- (IBAction)selectPathInControl:(id)sender;
// called when the current contents changed (KDocument version changed)
- (void)contentsDidChange;
@end
Something went wrong with that request. Please try again.