[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;
|
---|
[364] | 15 | @class NJRValidatingField;
|
---|
[34] | 16 | @class NJRVoicePopUpButton;
|
---|
[622] | 17 | @class PSDateFieldEditor;
|
---|
[34] | 18 |
|
---|
[102] | 19 | @interface PSAlarmSetController : NSWindowController <NSUserInterfaceValidations> {
|
---|
[21] | 20 | IBOutlet NSTextField *messageField;
|
---|
[361] | 21 | IBOutlet NSButton *removeMessageButton;
|
---|
[21] | 22 | IBOutlet NSMatrix *inAtMatrix;
|
---|
[53] | 23 | IBOutlet NJRIntervalField *timeInterval;
|
---|
[21] | 24 | IBOutlet NSPopUpButton *timeIntervalUnits;
|
---|
[34] | 25 | IBOutlet NSButton *timeIntervalRepeats;
|
---|
[21] | 26 | IBOutlet NSTextField *timeOfDay;
|
---|
| 27 | IBOutlet NSTextField *timeDate;
|
---|
| 28 | IBOutlet NSPopUpButton *timeDateCompletions; // XXX should go away when bug preventing both formatters and popup menus from existing is fixed
|
---|
[102] | 29 | IBOutlet NSButton *timeCalendarButton;
|
---|
[579] | 30 | IBOutlet NSButton *editAlert;
|
---|
[53] | 31 | IBOutlet NSTextField *alertView;
|
---|
| 32 | IBOutlet NSTabView *alertTabs;
|
---|
[34] | 33 | IBOutlet NSButtonCell *displayMessage;
|
---|
[522] | 34 | IBOutlet NSButtonCell *bounceDockIcon;
|
---|
[34] | 35 | IBOutlet NSButtonCell *playSound;
|
---|
[39] | 36 | IBOutlet NJRQTMediaPopUpButton *sound;
|
---|
[133] | 37 | IBOutlet NSButton *soundVolumeButton;
|
---|
[364] | 38 | IBOutlet NJRValidatingField *soundRepetitions;
|
---|
[34] | 39 | IBOutlet NSStepper *soundRepetitionStepper;
|
---|
| 40 | IBOutlet NSTextField *soundRepetitionsLabel;
|
---|
| 41 | IBOutlet NSButtonCell *doScript;
|
---|
| 42 | IBOutlet NJRFSObjectSelector *script;
|
---|
| 43 | IBOutlet NSButtonCell *doSpeak;
|
---|
| 44 | IBOutlet NJRVoicePopUpButton *voice;
|
---|
| 45 | IBOutlet NSButton *scriptSelectButton;
|
---|
[53] | 46 | IBOutlet NSButtonCell *wakeUp;
|
---|
[21] | 47 | IBOutlet NSTextField *timeSummary;
|
---|
[53] | 48 | IBOutlet NSButton *cancelButton;
|
---|
[21] | 49 | IBOutlet NSButton *setButton;
|
---|
[26] | 50 | NSString *status;
|
---|
| 51 | NSTimer *updateTimer;
|
---|
[24] | 52 | PSAlarm *alarm;
|
---|
[622] | 53 | PSDateFieldEditor *dateFieldEditor;
|
---|
[26] | 54 | BOOL isInterval;
|
---|
[21] | 55 | }
|
---|
| 56 |
|
---|
| 57 | - (IBAction)update:(id)sender;
|
---|
| 58 | - (IBAction)dateCompleted:(NSPopUpButton *)sender;
|
---|
[102] | 59 | - (IBAction)showCalendar:(NSButton *)sender;
|
---|
[21] | 60 | - (IBAction)inAtChanged:(id)sender;
|
---|
[102] | 61 | - (IBAction)toggleAlertEditor:(id)sender;
|
---|
[53] | 62 | - (IBAction)editAlertChanged:(id)sender;
|
---|
[34] | 63 | - (IBAction)playSoundChanged:(id)sender;
|
---|
[133] | 64 | - (IBAction)showVolume:(NSButton *)sender;
|
---|
[34] | 65 | - (IBAction)doScriptChanged:(id)sender;
|
---|
| 66 | - (IBAction)doSpeakChanged:(id)sender;
|
---|
[21] | 67 | - (IBAction)setAlarm:(NSButton *)sender;
|
---|
[41] | 68 | - (IBAction)setSoundRepetitionCount:(id)sender;
|
---|
[21] | 69 |
|
---|
[34] | 70 | - (IBAction)silence:(id)sender;
|
---|
| 71 |
|
---|
[21] | 72 | @end
|
---|