-
Notifications
You must be signed in to change notification settings - Fork 84
/
ThymeAppDelegate.h
85 lines (64 loc) · 2.7 KB
/
ThymeAppDelegate.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//
// ThymeAppDelegate.h
// Thyme
//
// Created by João Moreno on 2/8/10.
//
#import <Growl/Growl.h>
#import <Cocoa/Cocoa.h>
#import "DDHotKeyCenter.h"
#import "Stopwatch.h"
#import "PreferencesWindowController.h"
#import "TagWindowController.h"
@interface ThymeAppDelegate : NSObject <NSApplicationDelegate, GrowlApplicationBridgeDelegate, StopwatchDelegate>
{
Stopwatch* stopwatch;
DDHotKeyCenter *hotKeyCenter;
NSPersistentStoreCoordinator *persistentStoreCoordinator;
NSManagedObjectModel *managedObjectModel;
NSManagedObjectContext *managedObjectContext;
NSWindow *window;
NSStatusItem *statusItem;
NSMenu *menu;
NSMenuItem *startPauseItem;
NSMenuItem *finishItem;
PreferencesWindowController *preferencesWindowController;
TagWindowController *tagWindowController;
NSMenuItem *sessionsMenuSeparator;
NSMenuItem *sessionsMenuExportItem;
NSMenuItem *sessionsMenuClearItem;
NSMutableArray *sessionsMenuItems;
BOOL startOnWake;
BOOL startOnScreensaverEnd;
}
@property(nonatomic, retain) Stopwatch *stopwatch;
@property(nonatomic, retain) DDHotKeyCenter *hotKeyCenter;
@property(nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property(nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property(nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property(nonatomic, retain) IBOutlet NSWindow *window;
@property(nonatomic, retain) NSStatusItem *statusItem;
@property(nonatomic, retain) IBOutlet NSMenu *menu;
@property(nonatomic, retain) IBOutlet NSMenuItem *startPauseItem;
@property(nonatomic, retain) IBOutlet NSMenuItem *restartItem;
@property(nonatomic, retain) IBOutlet NSMenuItem *finishItem;
@property(nonatomic, retain) PreferencesWindowController *preferencesWindowController;
@property(nonatomic, retain) TagWindowController *tagWindowController;
@property(nonatomic, retain) NSMenuItem *sessionsMenuSeparator;
@property(nonatomic, retain) NSMenuItem *sessionsMenuExportItem;
@property(nonatomic, retain) NSMenuItem *sessionsMenuClearItem;
@property(nonatomic, retain) NSMutableArray *sessionsMenuItems;
@property(nonatomic) NSTimeInterval lastStopWatchValue;
@property(nonatomic, retain) NSString *currentTag;
- (void)export;
- (void)startWithNotification:(Boolean)notification;
- (void)pauseWithNotification:(Boolean)notification;
- (void)toggleWithNotification:(Boolean)notification;
- (void)stopWithNotification:(Boolean)notification;
- (void)clearHotKeys;
- (void)resetHotKeys;
- (IBAction)onStartPauseClick:(id)sender;
- (IBAction)onFinishClick:(id)sender;
- (IBAction)onPreferencesClick:(id)sender;
- (IBAction)onAboutClick:(id)sender;
@end