forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FakeWindow.h
76 lines (66 loc) · 2.1 KB
/
FakeWindow.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// FakeWindow.h
// iTerm
//
// Created by George Nachman on 10/18/10.
// Copyright 2010 George Nachman. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PseudoTerminal.h"
#import "WindowControllerInterface.h"
@interface FakeWindow : NSObject <WindowControllerInterface>
{
// FakeWindow always has exactly one session.
PTYSession* session;
// Saved state from old window.
BOOL isFullScreen;
BOOL isLionFullScreen;
BOOL isMiniaturized;
NSRect frame;
NSScreen* screen;
PseudoTerminal* realWindow;
// Changes the session has initiated that will be delayed and performed
// in -[rejoin:].
BOOL hasPendingBlurChange;
double pendingBlurRadius;
BOOL pendingBlur;
BOOL hasPendingClose;
BOOL hasPendingFitWindowToTab;
BOOL hasPendingSizeChange;
int pendingW;
int pendingH;
BOOL hasPendingSetWindowTitle;
BOOL hasPendingResetTempTitle;
NSColor* pendingLabelColor;
NSColor* pendingTabColor;
}
- (id)initFromRealWindow:(PseudoTerminal*)aTerm session:(PTYSession*)aSession;
- (void)dealloc;
// PseudoTerminal should call this after adding the session to its tab view.
- (void)rejoin:(PseudoTerminal*)aTerm;
- (void)sessionInitiatedResize:(PTYSession*)session width:(int)width height:(int)height;
- (BOOL)fullScreen;
- (BOOL)anyFullScreen;
- (void)closeSession:(PTYSession*)aSession;
- (IBAction)nextTab:(id)sender;
- (IBAction)previousTab:(id)sender;
- (void)setLabelColor:(NSColor *)color forTabViewItem:tabViewItem;
- (void)setTabColor:(NSColor *)color forTabViewItem:tabViewItem;
- (NSColor*)tabColorForTabViewItem:(NSTabViewItem*)tabViewItem;
- (void)enableBlur:(double)radius;
- (void)disableBlur;
- (BOOL)tempTitle;
- (PTYTabView *)tabView;
- (PTYSession *)currentSession;
- (void)setWindowTitle;
- (void)resetTempTitle;
- (PTYTab*)currentTab;
- (void)windowSetFrameTopLeftPoint:(NSPoint)point;
- (void)windowPerformMiniaturize:(id)sender;
- (void)windowDeminiaturize:(id)sender;
- (void)windowOrderFront:(id)sender;
- (void)windowOrderBack:(id)sender;
- (BOOL)windowIsMiniaturized;
- (NSRect)windowFrame;
- (NSScreen*)windowScreen;
@end