forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToolbeltView.h
46 lines (33 loc) · 924 Bytes
/
ToolbeltView.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
//
// ToolbeltView.h
// iTerm
//
// Created by George Nachman on 9/5/11.
// Copyright 2011 Georgetech. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class PseudoTerminal;
@protocol ToolbeltTool
@optional
- (void)relayout;
@optional
- (void)shutdown;
@end
@interface ToolbeltView : NSView <NSSplitViewDelegate> {
NSSplitView *splitter_;
NSMutableDictionary *tools_;
PseudoTerminal *term_; // weak
}
+ (void)registerToolWithName:(NSString *)name withClass:(Class)c;
+ (void)populateMenu:(NSMenu *)menu;
+ (void)toggleShouldShowTool:(NSString *)theName;
+ (int)numberOfVisibleTools;
- (id)initWithFrame:(NSRect)frame term:(PseudoTerminal *)term;
// Is the tool visible?
- (BOOL)showingToolWithName:(NSString *)theName;
- (void)toggleToolWithName:(NSString *)theName;
// Do prefs say the tool is visible?
+ (BOOL)shouldShowTool:(NSString *)name;
- (BOOL)haveOnlyOneTool;
- (void)shutdown;
@end