-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMainMenuController.h
More file actions
46 lines (39 loc) · 1.21 KB
/
MainMenuController.h
File metadata and controls
46 lines (39 loc) · 1.21 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
#import <Cocoa/Cocoa.h>
#import <Growl/Growl.h>
@class PreferencesController;
@interface MainMenuController : NSObject <GrowlApplicationBridgeDelegate> {
PreferencesController *preferencesController;
IBOutlet NSTextField *timerLabel;
IBOutlet NSTextField *workTextField;
IBOutlet NSTextField *breakTextField;
IBOutlet NSTextField *cyclesTextField;
IBOutlet NSButton *startButton;
IBOutlet NSButton *stopButton;
NSInteger workSeconds;
NSInteger breakSeconds;
NSInteger cycles;
NSTimer *timer;
BOOL isWorkTime;
BOOL isBreakTime;
NSInteger cyclesCompleted;
NSDate *timerStarted;
}
@property NSInteger workSeconds;
@property NSInteger breakSeconds;
@property NSInteger cycles;
@property NSTimer *timer;
- (NSDictionary *) registrationDictionaryForGrowl;
- (IBAction) showPreferencesPanel: (id) sender;
- (IBAction) updateTimerFieldsFromPreset: (id) sender;
- (IBAction) startTimer: (id) sender;
- (void) startWorkTimer;
- (void) startBreakTimer;
- (IBAction) stopTimer: (id) sender;
- (void) stopWorkTimer;
- (void) stopBreakTimer;
- (void) updateTimer: (NSTimer *) notificationTimer;
- (BOOL) hasCompletedAllCycles;
- (void) alertEndOfWork;
- (void) alertEndOfBreak;
- (void) alertEndOfCycle;
@end