This repository was archived by the owner on Sep 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathOverlayWindow.h
More file actions
76 lines (66 loc) · 2.12 KB
/
Copy pathOverlayWindow.h
File metadata and controls
76 lines (66 loc) · 2.12 KB
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
/*
* OverlayWindow.h
*
* Copyright 2009 SwiftRing. All rights reserved.
*
* Description:
* - Traps hotkeys and mouse events.
* - Brings up / down the main window.
* - Creates / destroys Ring objects.
* - Deals with application-wide configuration stuff.
*/
#import <Cocoa/Cocoa.h>
@class RingView;
@class RecordingPanel;
@class RingFactory;
@interface OverlayWindow : NSWindow
{
IBOutlet RingView *ringView;
BOOL inQuasimode;
BOOL didSomething;
BOOL didSomethingCount;
BOOL validKey;
BOOL isDisabled;
int ignoreKeyEvents;
NSTimer *pDisplayTimer;
NSTimer *pDismissTimer;
IBOutlet NSMenu *statusBarMenu;
NSStatusItem *statusBarItem;
NSImage *statusBarImage;
NSImage *statusBarHiImage;
IBOutlet NSPanel *preferencesPanel;
IBOutlet RecordingPanel *recordingPanel;
IBOutlet NSWindow *aboutWindow;
IBOutlet NSMenuItem *runOnStartupMenuItem;
}
- (void) detectHit: (NSPoint) location: (BOOL) scrollUp: (BOOL) scrollDown: (unsigned int) arrowBitfield;
- (void) enterRingQuasimode;
- (void) exitRingQuasimode;
- (void) centerWindowOnMouse;
- (void) restartDisplayTimer: (bool) clearDisplay;
- (void) displayRing: (NSTimer*) timer;
- (void) fadeIn;
- (void) fadeOut;
- (void) trueCenter;
- (bool) inQuasimode;
- (bool) didSomething;
- (void) setIgnoreKeyEvents: (int) value;
- (int) getIgnoreKeyEvents;
- (bool) isDisabled;
- (bool) isRunOnStartup;
- (void) setLaunchKey: (int) newKey;
- (void) setAllowArrows: (BOOL) newAllowArrows;
- (void) setMenuDelay: (float) newDelay;
- (void) setEnableMenuBar: (BOOL) enable;
- (void) setValidKey: (BOOL) valid;
- (bool) isRecording;
- (void) processRecordingKeys: (CGEventRef) event ofType: (CGEventType) type;
- (void) toggleDisabled;
- (void) displayMessage: (NSString *) pMessageString;
- (IBAction) about: (id)sender;
- (IBAction) aboutWebpage: (id)sender;
- (IBAction) help: (id)sender;
- (IBAction) preferences: (id)sender;
- (IBAction) disable: (id)sender;
- (IBAction) runOnStartup: (id)sender;
@end