forked from robbiehanson/AlarmClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TimerController.h
53 lines (43 loc) · 1.19 KB
/
TimerController.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
/* TimerController */
#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>
#import "TransparentController.h"
@interface TimerController : NSWindowController <TransparentController>
{
// Timer
NSTimer *timer;
// For tracking time
BOOL isStarted;
float totalTime;
float elapsedTime;
NSDate *startDate;
// Options
BOOL useAlarmVolume;
// Movie for playing sound
QTMovie *movie;
// Initial system volumes
// This is the volume the system was at before the alarm went off
// We store this, so that after the alarm is stopped, we can restore the system volume for the user
float initialLeftVolume;
float initialRightVolume;
// Stored and Localized strings
NSString *titleStr;
NSString *totalTimeStr;
NSString *startStr;
NSString *pauseStr;
NSString *resetStr;
NSString *editStr;
// Timer for updating window when minituarized
NSTimer *miniWindowTimer;
NSBitmapImageRep *bmpImageRep;
NSImage *miniWindowImage;
IBOutlet id alwaysOnTopButton;
IBOutlet id configPanel;
IBOutlet id nameField;
IBOutlet id timeField;
IBOutlet id transparentView;
IBOutlet id useAlarmVolumeButton;
}
- (IBAction)closeConfigPanel:(id)sender;
- (IBAction)nameDidChange:(id)sender;
@end