-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPunchDialog.h
44 lines (36 loc) · 1.15 KB
/
PunchDialog.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
//
// PunchDialog.h
// TimeClock
//
// Created by Matthew Baker on 10/16/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <CoreData/CoreData.h>
#import <UIKit/UIKit.h>
#import "TimeEntry.h"
@protocol PunchDialogDelegate;
@interface PunchDialog : UIViewController {
IBOutlet UISwitch *overtimeSwitch;
IBOutlet UILabel *overtimeLabel;
IBOutlet UIButton *breakButton;
IBOutlet UIButton *shiftButton;
TimeEntry *timeEntry;
id <PunchDialogDelegate> delegate;
}
@property (nonatomic, retain) TimeEntry *timeEntry;
@property (nonatomic, retain) UISwitch *overtimeSwitch;
@property (nonatomic, retain) UILabel *overtimeLabel;
@property (nonatomic, retain) UIButton *breakButton;
@property (nonatomic, retain) UIButton *shiftButton;
@property (nonatomic, assign) id <PunchDialogDelegate> delegate;
- (IBAction)breakPunch;
- (IBAction)shiftPunch;
- (IBAction)cancel:(id)sender;
- (void)displayControls;
- (void)setShiftButtonText;
- (void)setBreakButtonText;
@end
@protocol PunchDialogDelegate
- (void)punchDialogViewController:(PunchDialog *)controller didFinishWithCancel:(BOOL)cancel;
- (NSManagedObjectContext *)managedObjectContext;
@end