forked from robbiehanson/AlarmClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StopwatchController.h
47 lines (39 loc) · 993 Bytes
/
StopwatchController.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
/* StopwatchController */
#import <Cocoa/Cocoa.h>
#import "TransparentController.h"
@interface StopwatchController : NSWindowController <TransparentController>
{
// Timer
NSTimer *timer;
// For tracking time
BOOL isStarted;
float lapElapsedTime;
float splitElapsedTime;
NSDate *startDate;
// For storing lap/split info
BOOL isLapMode;
int lapSplitIndex;
NSMutableArray *laps;
NSMutableArray *splits;
NSDateFormatter *timeFormatter;
// Localized and stored strings
NSString *titleStr;
NSString *readyStr;
NSString *startedAtStr;
NSString *lapXStr;
NSString *splitXStr;
NSString *startStr;
NSString *pauseStr;
NSString *resetStr;
NSString *lapSplitStr;
// Timer for updating window when minituarized
NSTimer *miniWindowTimer;
NSBitmapImageRep *bmpImageRep;
NSImage *miniWindowImage;
IBOutlet id alwaysOnTopButton;
IBOutlet id configPanel;
IBOutlet id nameField;
IBOutlet id transparentView;
}
- (IBAction)closeConfigPanel:(id)sender;
@end