5 // Created by John Pannell on 4/6/06.
6 // Copyright 2006 Positive Spin Media. All rights reserved.
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
;
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
;
33 - (IBAction
)isProcessingAction
:(id
)sender
;
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
;
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
;
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
;