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

Last change on this file since 401 was 364, checked in by Nicholas Riley, 17 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
RevLine 
[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;
[53]29 IBOutlet NSButtonCell *editAlert;
30 IBOutlet NSTextField *alertView;
31 IBOutlet NSTabView *alertTabs;
[34]32 IBOutlet NSButtonCell *displayMessage;
33 IBOutlet NSButton *bounceDockIcon;
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
Note: See TracBrowser for help on using the repository browser.