forked from rime/squirrel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SquirrelApplicationDelegate.h
47 lines (38 loc) · 1.16 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
40
41
42
43
44
45
46
47
#import <Cocoa/Cocoa.h>
#import <rime_api.h>
#import "SquirrelPanel.h"
// Note: the SquirrelApplicationDelegate is instantiated automatically as an outlet of NSApp's instance
@interface SquirrelApplicationDelegate : NSObject
{
IBOutlet NSMenu* _menu;
IBOutlet SquirrelPanel* _panel;
IBOutlet id _updater;
// global options
BOOL _useUSKeyboardLayout;
BOOL _enableNotifications;
BOOL _enableBuitinNotifcations;
BOOL _preferNotificationCenter;
NSDictionary* _appOptions;
NSTimeInterval _chordDuration;
SquirrelUIStyle* _baseStyle;
}
-(NSMenu*)menu;
-(SquirrelPanel*)panel;
-(id)updater;
-(BOOL)useUSKeyboardLayout;
-(BOOL)enableNotifications;
-(BOOL)preferNotificationCenter;
-(NSDictionary*)appOptions;
-(NSTimeInterval)chordDuration;
-(IBAction)deploy:(id)sender;
-(IBAction)syncUserData:(id)sender;
-(IBAction)configure:(id)sender;
-(IBAction)openWiki:(id)sender;
-(void)setupRime;
-(void)startRimeWithFullCheck:(BOOL)fullCheck;
-(void)loadSquirrelConfig;
-(BOOL)problematicLaunchDetected;
-(void)updateUIStyle:(RimeConfig*)config initialize:(BOOL)initializing;
@end
// also used in main.m
extern void (*show_message)(const char* msg_text, const char* msg_id);