forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToolWrapper.h
48 lines (37 loc) · 955 Bytes
/
ToolWrapper.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
//
// ToolWrapper.h
// iTerm
//
// Created by George Nachman on 9/5/11.
// Copyright 2011 Georgetech. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class PseudoTerminal;
@protocol ToolWrapperDelegate
- (BOOL)haveOnlyOneTool;
- (void)hideToolbelt;
- (void)toggleShowToolWithName:(NSString *)theName;
@end
@protocol ToolbeltTool
- (CGFloat)minimumHeight;
@optional
- (void)relayout;
- (void)shutdown;
@end
@interface ToolWrapper : NSView {
NSTextField *title_;
NSButton *closeButton_;
NSString *name;
NSView *container_;
PseudoTerminal *term;
id<ToolWrapperDelegate> delegate_; // weak
}
@property (nonatomic, copy) NSString *name;
@property (nonatomic, readonly) __weak NSView *container;
@property (nonatomic, assign) PseudoTerminal *term;
@property (nonatomic, assign) id<ToolWrapperDelegate> delegate;
- (void)relayout;
- (NSObject<ToolbeltTool> *)tool;
- (void)removeToolSubviews;
- (CGFloat)minimumHeight;
@end