-
Notifications
You must be signed in to change notification settings - Fork 29
/
AppDelegate.h
64 lines (50 loc) · 1.65 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
59
60
61
62
63
64
//
// AppDelegate.h
// Jiggler
//
// Created by Ben Haller on Sat Aug 02 2003.
// Copyright (c) 2003 Stick Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject
{
BOOL jiggleMasterSwitch; // YES if we are enabled for jiggling (as set by the user)
BOOL jigglingActive; // YES if we are jiggling right now (conditions are met, delay has gone by, etc.)
// Jiggle timer
NSTimer *jiggleTimer;
NSDate *timeOfLastJiggle;
// Jiggle mouse location management
BOOL haveSetMouseLocation;
CGPoint lastSetMouseLocation;
BOOL haveGotUserMouseLocation;
CGPoint lastUserMouseLocation;
CGPoint avoidMouseLocation;
// Timed quit support
NSTimer *timedQuitTimer;
int minutesRemainingToTimedQuit;
// Spying on iTunes
BOOL iTunesIsPlaying;
BOOL jiggleConditionsLikelyToHaveChanged;
// Status bar icon variants
NSImage *scaledJigglerImage;
NSImage *scaledJigglerImageRed;
NSImage *scaledJigglerImageGreen;
// Prevent App Nap
id <NSObject> activityToken;
}
@property (retain) IBOutlet NSMenu *statusItemMenu;
@property (retain) IBOutlet NSMenuItem *masterSwitchItem;
@property (retain) IBOutlet NSMenuItem *timedQuitItem;
@property (retain) NSStatusItem *statusItem;
- (IBAction)showAbout:(id)sender;
- (IBAction)showReadMe:(id)sender;
- (IBAction)showProductHomePage:(id)sender;
- (IBAction)showStickSoftwarePage:(id)sender;
- (IBAction)sendStickSoftwareEmail:(id)sender;
- (IBAction)showPreferences:(id)sender;
- (IBAction)checkVersionNow:(id)sender;
- (IBAction)automaticVersionChecking:(id)sender;
- (IBAction)timedQuit:(id)sender;
- (IBAction)cancelTimedQuit:(id)sender;
- (IBAction)jiggleMasterSwitchChanged:(id)sender;
@end