-
Notifications
You must be signed in to change notification settings - Fork 0
/
TaskDialogController.h
103 lines (77 loc) · 2.89 KB
/
TaskDialogController.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* TaskDialogController */
#import <Cocoa/Cocoa.h>
#import "TaskObject.h"
static NSString *TaskCreatedNotification __attribute__ ((unused)) = @"TaskCreated";
static NSString *TaskEditedNotification __attribute__ ((unused)) = @"TaskEdited";
static NSString *MinuteChangedNotification __attribute__ ((unused)) = @"MinuteChanged";
static NSString *HourChangedNotification __attribute__ ((unused)) = @"HourChanged";
static NSString *MdayChangedNotification __attribute__ ((unused)) = @"MdayChanged";
static NSString *MonthChangedNotification __attribute__ ((unused)) = @"MonthChanged";
static NSString *WdayChangedNotification __attribute__ ((unused)) = @"WdayChanged";
static NSString *CommandChangedNotification __attribute__ ((unused)) = @"CommandChanged";
static NSString *openCommand __attribute__ ((unused)) = @"/usr/bin/open";
@interface TaskDialogController : NSObject {
IBOutlet id anyHourCheckbox;
IBOutlet id anyMdayCheckbox;
IBOutlet id anyMinuteCheckbox;
IBOutlet id anyMonthCheckbox;
IBOutlet id anyWdayCheckbox;
IBOutlet id browseButton;
IBOutlet id commandTextField;
IBOutlet id frCheckbox;
IBOutlet id hourSlider;
IBOutlet id hourTextField;
IBOutlet id mdaySlider;
IBOutlet id mdayTextField;
IBOutlet id minuteSlider;
IBOutlet id minuteTextField;
IBOutlet id moCheckbox;
IBOutlet id monthSlider;
IBOutlet id monthTextField;
IBOutlet id openCheckbox;
IBOutlet id saCheckbox;
IBOutlet id simpleHourTextField;
IBOutlet id simpleMdayTextField;
IBOutlet id simpleMinuteTextField;
IBOutlet id simpleMonthTextField;
IBOutlet id suCheckbox;
IBOutlet id thCheckbox;
IBOutlet id tuCheckbox;
IBOutlet id wdayTextField;
IBOutlet id weCheckbox;
IBOutlet id submitButton;
IBOutlet id window;
TaskObject *task;
}
// constructors
//+ (id)sharedInstance;
//- (id)initWithTask: (TaskObject *)aTask;
// accessors
- (id)window;
- (TaskObject *)task;
- (void)setTask: (TaskObject *)aVal;
//workers
- (void)hideWindow;
- (void)modalForWindow: (NSWindow *)parent;
- (NSString *)generateWdayString;
- (void)checkOpenCheckboxState;
- (void)setWdayCheckboxState: (NSString *)string;
- (void)setWdayCheckboxStates: (BOOL)state;
// notification handlers
- (void)minuteChanged:(NSNotification *)aNotification;
- (void)hourChanged:(NSNotification *)aNotification;
- (void)mdayChanged:(NSNotification *)aNotification;
- (void)monthChanged:(NSNotification *)aNotification;
// IB actions
- (IBAction)acceptButtonClicked:(id)sender;
- (IBAction)cancelButtonClicked:(id)sender;
- (IBAction)browseButtonClicked:(id)sender;
- (IBAction)anyMinuteCheckboxClicked:(id)sender;
- (IBAction)anyHourCheckboxClicked:(id)sender;
- (IBAction)anyMdayCheckboxClicked:(id)sender;
- (IBAction)anyMonthCheckboxClicked:(id)sender;
- (IBAction)anyWdayCheckboxClicked:(id)sender;
- (IBAction)wdayCheckboxClicked:(id)sender;
- (IBAction)sliderMoved:(id)sender;
- (IBAction)openCheckboxClicked:(id)sender;
@end