forked from binaryage/visor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Visor.h
38 lines (37 loc) · 1.14 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
#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;
NSImage* pinUpIcon;
NSImage* pinDownIcon;
NSScreen* cachedScreen;
NSButton* pinButton;
NSString* cachedPosition;
NSString* lastPosition;
NSString* restoreAppAppleScriptSource;
NSDictionary* scriptError;
BOOL ignoreResizeNotifications;
id runningApplicationClass;
}
- (IBAction)pinAction:(id)sender;
- (IBAction)toggleVisor:(id)sender;
- (IBAction)showPrefs:(id)sender;
- (IBAction)visitHomepage:(id)sender;
@end