/
KToolbarController.h
48 lines (40 loc) · 1.64 KB
/
KToolbarController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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