/
SquirrelApplicationDelegate.h
39 lines (27 loc) · 1.06 KB
/
SquirrelApplicationDelegate.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
#import <Cocoa/Cocoa.h>
@class SquirrelConfig;
@class SquirrelPanel;
// Note: the SquirrelApplicationDelegate is instantiated automatically as an
// outlet of NSApp's instance
@interface SquirrelApplicationDelegate : NSObject
@property(nonatomic, weak) IBOutlet NSMenu* menu;
@property(nonatomic, weak) IBOutlet SquirrelPanel* panel;
@property(nonatomic, weak) IBOutlet id updater;
@property(nonatomic, readonly, strong) SquirrelConfig* config;
@property(nonatomic, readonly) BOOL enableNotifications;
- (IBAction)deploy:(id)sender;
- (IBAction)syncUserData:(id)sender;
- (IBAction)configure:(id)sender;
- (IBAction)openWiki:(id)sender;
- (void)setupRime;
- (void)startRimeWithFullCheck:(BOOL)fullCheck;
- (void)loadSettings;
- (void)loadSchemaSpecificSettings:(NSString*)schemaId;
@property(nonatomic, readonly) BOOL problematicLaunchDetected;
@end
@interface NSApplication (SquirrelApp)
@property(nonatomic, readonly, strong)
SquirrelApplicationDelegate* squirrelAppDelegate;
@end
// also used in main.m
extern void show_message(const char* msg_text, const char* msg_id);