forked from binaryage/visor
/
Visor.h
41 lines (38 loc) · 1.17 KB
/
Visor.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
#import "GTMCarbonEvent.h"
@interface Visor: NSObject {
NSWindow *window_; // the one visorized terminal window (may be nil)
NSStatusItem* statusItem;
IBOutlet NSMenu* statusMenu;
IBOutlet NSWindow* settingsWindow;
IBOutlet WebView* infoLine; // bottom info line on Visor preferences pane
EventHotKeyRef hotKey_;
NSUInteger hotModifiers_;
NSUInteger hotModifiersState_;
NSTimeInterval lastHotModifiersEventCheckedTime_;
EventHotKeyRef escapeHotKey;
NSString* previouslyActiveAppPath;
NSNumber* previouslyActiveAppPID;
BOOL isHidden;
BOOL justLaunched;
BOOL isMain;
BOOL isKey;
BOOL isPinned;
NSImage* activeIcon;
NSImage* inactiveIcon;
NSScreen* cachedScreen;
NSString* cachedPosition;
NSString* lastPosition;
NSString* restoreAppAppleScriptSource;
NSDictionary* scriptError;
BOOL ignoreResizeNotifications;
id runningApplicationClass_;
BOOL runningOnLeopard_;
}
- (NSWindow *)window;
- (void)setWindow:(NSWindow *)inWindow;
- (BOOL)isHidden;
- (IBAction)pinAction:(id)sender;
- (IBAction)toggleVisor:(id)sender;
- (IBAction)showPrefs:(id)sender;
- (IBAction)visitHomepage:(id)sender;
@end