forked from jessegrosjean/quickcursor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQCAppDelegate.h
More file actions
54 lines (41 loc) · 1.49 KB
/
QCAppDelegate.h
File metadata and controls
54 lines (41 loc) · 1.49 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
//
// QCAppDelegate.h
// QuickCursor
//
// Created by Jesse Grosjean on 9/1/09.
// Copyright 2009 Hog Bay Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <ShortcutRecorder/ShortcutRecorder.h>
#import "QCSRDelegate.h"
#import "PTKeyCombo.h"
@class PTHotKey;
@class QCSRDelegate;
extern NSString * const TYPE_EDIT;
extern NSString * const TYPE_INSERT;
@interface QCAppDelegate : NSObject {
IBOutlet NSWindow *preferencesWindow;
IBOutlet NSButton *openAtLogin;
/* Keyboard shortcut popups and controls */
IBOutlet NSPopUpButton *editInPopUpButton;
IBOutlet NSPopUpButton *insertInPopUpButton;
IBOutlet SRRecorderControl *editShortcutRecorder;
IBOutlet SRRecorderControl *insertShortcutRecorder;
NSStatusItem *quickCursorStatusItem;
NSMutableSet *quickCursorSessionQCUIElements;
NSMutableArray *registeredHotKeys;
QCSRDelegate *editSRDelegate;
QCSRDelegate *insertSRDelegate;
}
+ (BOOL)universalAccessNeedsToBeTurnedOn;
+ (NSString *)makeUserDefaultString:(NSDictionary *)representedObject;
- (void)updateHotKeys:(NSString *)userDefaultString addingKeyCombo:(PTKeyCombo *)newKeyCombo usingRecorder:(SRRecorderControl *)addingWithRecorder;
//@property(assign) BOOL enableLoginItem;
#pragma mark Actions
- (IBAction)showHelp:(id)sender;
- (IBAction)showAbout:(id)sender;
- (IBAction)showPreferences:(id)sender;
- (IBAction)beginQuickCursorAction:(id)sender;
/* Generic function for any shortcut popup button */
- (IBAction)popUpButtonClicked:(id)sender;
@end