first commit of files
This commit is contained in:
parent
6bcf3d2582
commit
407f13b281
138 changed files with 10301 additions and 0 deletions
55
Timer.h
Normal file
55
Timer.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
//
|
||||
// Timer.h
|
||||
//
|
||||
// Created by Jeena on 15.12.09.
|
||||
// Copyright 2009 Jeena Paradies. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface Timer : NSObject {
|
||||
|
||||
IBOutlet NSButton *hour1;
|
||||
IBOutlet NSButton *hour2;
|
||||
IBOutlet NSButton *minute1;
|
||||
IBOutlet NSButton *minute2;
|
||||
IBOutlet NSButton *second1;
|
||||
IBOutlet NSButton *second2;
|
||||
IBOutlet NSButton *start;
|
||||
IBOutlet NSButton *clear;
|
||||
|
||||
NSMutableArray *digits;
|
||||
NSImage *colon;
|
||||
NSImage *no_colon;
|
||||
NSImage *start_button;
|
||||
NSImage *pause_button;
|
||||
NSImage *alarm_button;
|
||||
NSSound *alarmSound;
|
||||
NSSound *clickSound;
|
||||
NSSound *clearSound;
|
||||
|
||||
int remainingSeconds;
|
||||
bool pause;
|
||||
bool isAlarm;
|
||||
bool cleared;
|
||||
bool ongoing;
|
||||
|
||||
NSTimer *repeatingTimer;
|
||||
}
|
||||
|
||||
@property (assign) NSTimer *repeatingTimer;
|
||||
|
||||
- (id)init;
|
||||
- (void)applicationLoaded:(id)sender;
|
||||
- (void)alarm:(id)sender;
|
||||
- (void)setDigitsForTime:(int)time;
|
||||
- (void)clearNow;
|
||||
|
||||
- (IBAction)startOrPause:(NSButton *)sender;
|
||||
- (IBAction)changeDigit:(NSButton *)sender;
|
||||
- (IBAction)clearNow:(id)sender;
|
||||
|
||||
- (IBAction)startRepeatingTimer:(id)sender;
|
||||
- (IBAction)stopRepeatingTimer:(id)sender;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue