[21] | 1 | //
|
---|
| 2 | // PSAlarmSetController.h
|
---|
| 3 | // Pester
|
---|
| 4 | //
|
---|
| 5 | // Created by Nicholas Riley on Tue Oct 08 2002.
|
---|
| 6 | // Copyright (c) 2002 Nicholas Riley. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | #import <AppKit/AppKit.h>
|
---|
[24] | 10 | #import "PSAlarm.h"
|
---|
[21] | 11 |
|
---|
[34] | 12 | @class NJRFSObjectSelector;
|
---|
[53] | 13 | @class NJRIntervalField;
|
---|
[39] | 14 | @class NJRQTMediaPopUpButton;
|
---|
[34] | 15 | @class NJRVoicePopUpButton;
|
---|
| 16 |
|
---|
[102] | 17 | @interface PSAlarmSetController : NSWindowController <NSUserInterfaceValidations> {
|
---|
[21] | 18 | IBOutlet NSTextField *messageField;
|
---|
| 19 | IBOutlet NSMatrix *inAtMatrix;
|
---|
[53] | 20 | IBOutlet NJRIntervalField *timeInterval;
|
---|
[21] | 21 | IBOutlet NSPopUpButton *timeIntervalUnits;
|
---|
[34] | 22 | IBOutlet NSButton *timeIntervalRepeats;
|
---|
[21] | 23 | IBOutlet NSTextField *timeOfDay;
|
---|
| 24 | IBOutlet NSTextField *timeDate;
|
---|
| 25 | IBOutlet NSPopUpButton *timeDateCompletions; // XXX should go away when bug preventing both formatters and popup menus from existing is fixed
|
---|
[102] | 26 | IBOutlet NSButton *timeCalendarButton;
|
---|
[53] | 27 | IBOutlet NSButtonCell *editAlert;
|
---|
| 28 | IBOutlet NSTextField *alertView;
|
---|
| 29 | IBOutlet NSTabView *alertTabs;
|
---|
[34] | 30 | IBOutlet NSButtonCell *displayMessage;
|
---|
| 31 | IBOutlet NSButton *bounceDockIcon;
|
---|
| 32 | IBOutlet NSButtonCell *playSound;
|
---|
[39] | 33 | IBOutlet NJRQTMediaPopUpButton *sound;
|
---|
[34] | 34 | IBOutlet NSTextField *soundRepetitions;
|
---|
| 35 | IBOutlet NSStepper *soundRepetitionStepper;
|
---|
| 36 | IBOutlet NSTextField *soundRepetitionsLabel;
|
---|
| 37 | IBOutlet NSButtonCell *doScript;
|
---|
| 38 | IBOutlet NJRFSObjectSelector *script;
|
---|
| 39 | IBOutlet NSButtonCell *doSpeak;
|
---|
| 40 | IBOutlet NJRVoicePopUpButton *voice;
|
---|
| 41 | IBOutlet NSButton *scriptSelectButton;
|
---|
[53] | 42 | IBOutlet NSButtonCell *wakeUp;
|
---|
[21] | 43 | IBOutlet NSTextField *timeSummary;
|
---|
[53] | 44 | IBOutlet NSButton *cancelButton;
|
---|
[21] | 45 | IBOutlet NSButton *setButton;
|
---|
[26] | 46 | NSString *status;
|
---|
| 47 | NSTimer *updateTimer;
|
---|
[24] | 48 | PSAlarm *alarm;
|
---|
[26] | 49 | BOOL isInterval;
|
---|
[21] | 50 | }
|
---|
| 51 |
|
---|
| 52 | - (IBAction)update:(id)sender;
|
---|
| 53 | - (IBAction)dateCompleted:(NSPopUpButton *)sender;
|
---|
[102] | 54 | - (IBAction)showCalendar:(NSButton *)sender;
|
---|
[21] | 55 | - (IBAction)inAtChanged:(id)sender;
|
---|
[102] | 56 | - (IBAction)toggleAlertEditor:(id)sender;
|
---|
[53] | 57 | - (IBAction)editAlertChanged:(id)sender;
|
---|
[34] | 58 | - (IBAction)playSoundChanged:(id)sender;
|
---|
| 59 | - (IBAction)doScriptChanged:(id)sender;
|
---|
| 60 | - (IBAction)doSpeakChanged:(id)sender;
|
---|
[21] | 61 | - (IBAction)setAlarm:(NSButton *)sender;
|
---|
[41] | 62 | - (IBAction)setSoundRepetitionCount:(id)sender;
|
---|
[21] | 63 |
|
---|
[34] | 64 | - (IBAction)silence:(id)sender;
|
---|
| 65 |
|
---|
[21] | 66 | @end
|
---|