Merge commit 'svn-macvim'
[MacVim.git] / PSMTabBarControl / source / WindowController.h
blobae655b8beab24c0e1d589408f807eadeabadcdc7
1 //
2 // WindowController.h
3 // PSMTabBarControl
4 //
5 // Created by John Pannell on 4/6/06.
6 // Copyright 2006 Positive Spin Media. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 @class PSMTabBarControl;
12 @interface WindowController : NSWindowController {
13 IBOutlet NSTabView *tabView;
14 IBOutlet NSTextField *tabField;
15 IBOutlet NSDrawer *drawer;
17 IBOutlet PSMTabBarControl *tabBar;
19 IBOutlet NSButton *isProcessingButton;
20 IBOutlet NSTextField *objectCounterField;
21 IBOutlet NSPopUpButton *iconButton;
24 // UI
25 - (IBAction)addNewTab:(id)sender;
26 - (IBAction)closeTab:(id)sender;
27 - (IBAction)stopProcessing:(id)sender;
28 - (IBAction)setIconNamed:(id)sender;
29 - (IBAction)setObjectCount:(id)sender;
30 - (IBAction)setTabLabel:(id)sender;
32 // Actions
33 - (IBAction)isProcessingAction:(id)sender;
35 // tab bar config
36 - (void)configStyle:(id)sender;
37 - (void)configCanCloseOnlyTab:(id)sender;
38 - (void)configHideForSingleTab:(id)sender;
39 - (void)configAddTabButton:(id)sender;
40 - (void)configTabMinWidth:(id)sender;
41 - (void)configTabMaxWidth:(id)sender;
42 - (void)configTabOptimumWidth:(id)sender;
43 - (void)configTabSizeToFit:(id)sender;
45 // delegate
46 - (void)tabView:(NSTabView *)aTabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem;
47 - (BOOL)tabView:(NSTabView *)aTabView shouldCloseTabViewItem:(NSTabViewItem *)tabViewItem;
48 - (void)tabView:(NSTabView *)aTabView willCloseTabViewItem:(NSTabViewItem *)tabViewItem;
49 - (void)tabView:(NSTabView *)aTabView didCloseTabViewItem:(NSTabViewItem *)tabViewItem;
51 // toolbar
52 - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
53 - (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar;
54 - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar;
55 - (IBAction)toggleToolbar:(id)sender;
56 - (BOOL)validateToolbarItem:(NSToolbarItem *)theItem;
58 @end