source: trunk/Cocoa/Pester/Source/PSAlarmSetController.h @ 516

Last change on this file since 516 was 364, checked in by Nicholas Riley, 13 years ago

English.lproj/Alarms.nib: Specify alternating row coloring in the nib,
now we're 10.4+.

English.lproj/InfoPlist.strings: Updated for 1.1b6.

English.lproj/Localizable.strings: Quote alarm message in pretty
description (used in tooltip). Change voice error now it no longer
incorporates OSStatus.

English.lproj/MainMenu.nib: Add speech prefs again; turn repetitions
field into a NJRValidatingField and hook up its delegate.

Info-Pester.plist: Updated for 1.1b6.

NJRHotKey.m: Switch to new Objective-C exception style.

NJRIntervalField.[hm]: Now a subclass of NJRValidatingField.

NJRTableDelegate.m: Get rid of our own tooltip support as NSTableView
now supports them (though with a minor visual glitch on the first
tooltip).

NJRTableView.[hm]: Remove tooltip support. Remove alternating row
coloring support.

NJRValidatingField.[hm]: Contains validation sheet stuff from
NJRIntervalField.

NJRVoicePopUpButton.[hm]: Switch to NSSpeechSynthesizer.

PSAlarm.m: Quote alarm message in pretty description (used in
tooltip). Fix repeating alarms not restoring as repeating if they
didn't expire while Pester was not running. No longer set timer on
Pester 1.0 alarm import, to help make importing atomic.

PSAlarmSetController.[hm]: Use NJRValidatingField for repetitions
field. Switch to new Objective-C exception style. Fix validation
issues on in/at changing. Temporary changes to restore speech support
and allow the sound popup to be removed entirely from the nib (rather
than being dragged out of the visible area, as it was in 1.1b5).
Changes for NSSpeechSynthesizer, which uses different voice names.

PSAlarms.m: Switch to new Objective-C exception style. Fix
duplication and error handling in Pester 1.0 alarm import, making
atomic.

PSAlarmsController.m: Use new tooltip support (since it's implemented
in the delegate rather than the data source, we have to proxy it).

PSAlerts.m: Wrap initialization in exception block so we don't leak.

PSApplication.m: Switch to new Objective-C exception style.

PSMediaAlert.m: Clamp repetitions at 1..99 so the user can't type an
invalid value, then quit and have it saved.

PSSpeechAlert.[hm]: Switch to NSSpeechSynthesizer. Throw an
intelligible exception if the voice is unavailable.

PSTimer.m: Switch to new Objective-C exception style.

Pester.xcodeproj: Remove VERSION generation; rename targets to be more
understandable.

Read Me.rtfd: Updated for 1.1b6.

SUSpeaker.[hm]: Gone in switch to NSSpeechSynthesizer.

VERSION: Gone - we use agvtool for everything now.

Updates/release-notes.html: Updated for 1.1b6.

Updates/updates.xml: Updated for 1.1b6.

package-Pester.sh: Use agvtool to get version. Atomically update
file on Web server to avoid partial downloads.

File size: 2.3 KB
Line 
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>
10#import "PSAlarm.h"
11
12@class NJRFSObjectSelector;
13@class NJRIntervalField;
14@class NJRQTMediaPopUpButton;
15@class NJRValidatingField;
16@class NJRVoicePopUpButton;
17
18@interface PSAlarmSetController : NSWindowController <NSUserInterfaceValidations> {
19    IBOutlet NSTextField *messageField;
20    IBOutlet NSButton *removeMessageButton;
21    IBOutlet NSMatrix *inAtMatrix;
22    IBOutlet NJRIntervalField *timeInterval;
23    IBOutlet NSPopUpButton *timeIntervalUnits;
24    IBOutlet NSButton *timeIntervalRepeats;
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
28    IBOutlet NSButton *timeCalendarButton;
29    IBOutlet NSButtonCell *editAlert;
30    IBOutlet NSTextField *alertView;
31    IBOutlet NSTabView *alertTabs;
32    IBOutlet NSButtonCell *displayMessage;
33    IBOutlet NSButton *bounceDockIcon;
34    IBOutlet NSButtonCell *playSound;
35    IBOutlet NJRQTMediaPopUpButton *sound;
36    IBOutlet NSButton *soundVolumeButton;
37    IBOutlet NJRValidatingField *soundRepetitions;
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;
45    IBOutlet NSButtonCell *wakeUp;
46    IBOutlet NSTextField *timeSummary;
47    IBOutlet NSButton *cancelButton;
48    IBOutlet NSButton *setButton;
49    NSString *status;
50    NSTimer *updateTimer;
51    PSAlarm *alarm;
52    BOOL isInterval;
53}
54
55- (IBAction)update:(id)sender;
56- (IBAction)dateCompleted:(NSPopUpButton *)sender;
57- (IBAction)showCalendar:(NSButton *)sender;
58- (IBAction)inAtChanged:(id)sender;
59- (IBAction)toggleAlertEditor:(id)sender;
60- (IBAction)editAlertChanged:(id)sender;
61- (IBAction)playSoundChanged:(id)sender;
62- (IBAction)showVolume:(NSButton *)sender;
63- (IBAction)doScriptChanged:(id)sender;
64- (IBAction)doSpeakChanged:(id)sender;
65- (IBAction)setAlarm:(NSButton *)sender;
66- (IBAction)setSoundRepetitionCount:(id)sender;
67
68- (IBAction)silence:(id)sender;
69
70@end
Note: See TracBrowser for help on using the repository browser.