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