-
Notifications
You must be signed in to change notification settings - Fork 139
/
AppDelegate.h
58 lines (44 loc) · 1.97 KB
/
AppDelegate.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
48
49
50
51
52
53
54
55
56
57
58
// This file is part of Scroll Reverser <https://pilotmoon.com/scrollreverser/>
// Licensed under Apache License v2.0 <http://www.apache.org/licenses/LICENSE-2.0>
#import <Cocoa/Cocoa.h>
#import "StatusItemController.h"
#import "PermissionsManager.h"
#import "LauncherController.h"
#import <Sparkle/Sparkle.h>
@class MouseTap, WelcomeWindowController, PrefsWindowController, DebugWindowController, TapLogger, TestWindowController;
extern NSString *const PrefsReverseScrolling;
extern NSString *const PrefsReverseHorizontal;
extern NSString *const PrefsReverseVertical;
extern NSString *const PrefsReverseTrackpad;
extern NSString *const PrefsReverseMouse;
extern NSString *const PrefsHideIcon;
extern NSString *const PrefsDiscreteScrollStepSize;
extern NSString *const PrefsShowDiscreteScrollOptions;
@interface AppDelegate : NSObject <NSApplicationDelegate, StatusItemControllerDelegate, SPUUpdaterDelegate, SPUStandardUserDriverDelegate> {
}
@property (readonly) PermissionsManager *permissionsManager;
@property (readonly) LauncherController *launcherController;
@property (readonly) SPUUpdater *updater;
@property (weak) IBOutlet NSMenu *theMainMenu;
@property (weak) IBOutlet NSMenu *statusMenu;
@property (readonly) NSString *appName;
@property (readonly) NSString *appVersion;
@property (readonly) NSString *appCredit;
@property (readonly) NSURL *appLink;
@property (readonly) NSString *appDisplayLink;
@property (readonly) NSURL *appPermissionsHelpLink;
@property (readonly) NSString *menuStringReverseScrolling;
@property (readonly) NSString *menuStringPreferences;
@property (readonly) NSString *menuStringQuit;
@property (getter=isEnabled) BOOL enabled;
- (IBAction)showDebug:(id)sender;
- (IBAction)showPrefs:(id)sender;
- (IBAction)showAbout:(id)sender;
- (IBAction)showTestWindow:(id)sender;
- (void)statusItemClicked;
- (void)statusItemRightClicked;
- (void)statusItemAltClicked;
- (void)refreshPermissions;
- (void)enableDiscreteScrollOptions;
- (void)logAppEvent:(NSString *)str;
@end