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

Last change on this file since 136 was 133, checked in by Nicholas Riley, 21 years ago

VERSION: Updated for 1.1b4.

PSMovieAlertController.[hm]: Set output volume from alert; save and
restore output volume (bug 27).

PSBeepAlert.[hm]: Save and set volume, disabled pending a
synchronous equivalent to NSBeep().

NJRQTMediaPopUpButton.[hm]: Save movieHasAudio (does not include
beeps, pending the above fix, since they don't permit volume
adjustment). savedVolume indicates whether the volume has been saved
but not restored yet; outputVolume stores the set volume (eventually
incorporated into a PSMediaAlert).

PSMediaAlert.[hm]: Stores repetitions and volume information for audio
alerts. New superclass of PSBeepAlert and PSMovieAlert.

PSPreferencesController.m: Fixed bug where hot keys still appeared
even after they couldn't be set - last of bug 29. Add Command-comma
to the list of disallowed equivalents, as it's reserved for
Preferences now (still a bug - it'll show the entire set key
equivalent at the left side of the window when you press
command-comma; ah well.)

Volume [0123].png: Volume-indicating small icons from QuickTime 6.

NJRSoundManager.[hm]: Interface to volume saving, restoring, setting -
necessary because the QuickTime call to SetDefaultOutputVolume sets
the right channel volume only (bug 27).

PSVolumeController.h: Controller for volume popup window (bug 27).
Not your average NSWindowController, but it works. Keyboard control
of volume is still necessary; filed as bug 31.

PSAlarmSetController.[hm]: Added references to sound volume button and
showVolume: action. Added volume setting support (bug 27); mostly
similar interface to calendar, though we need direct calls to
NJRSoundManager to restore sound volume at times. Only enable sound
volume button if selected media file has audio component (and isn't the
system alert sound, which I discussed above). Take advantage of
PSMediaAlert to factor some code in _readAlerts:. Save and restore
volume as part of alerts.

Read Me.rtfd: Updated release notes; fixed some bizarre text
formatting problems; search/replace "* " bullet-space with "*\t"
bullet-tab to improve alignment in release notes.

PSMovieAlert.[hm]: Factored code into PSMediaAlert. Describe output
volume as percentage of maximum.

NJRHotKey.m: Fixed some odd spacing left over from Ecky's code.

PSApplication.m: Restore saved output volume on quit.

English.lproj/MainMenu.nib: Added volume button.

English.lproj/Volume.nib: Volume nib (bug 27).

PSCalendarController.m: Removed casts from a copy/paste error. Fixed
variable names in some code inherited from my TextExtras incremental
search modifications - it's not always a text field now.

File size: 2.2 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 NJRVoicePopUpButton;
16
17@interface PSAlarmSetController : NSWindowController <NSUserInterfaceValidations> {
18 IBOutlet NSTextField *messageField;
19 IBOutlet NSMatrix *inAtMatrix;
20 IBOutlet NJRIntervalField *timeInterval;
21 IBOutlet NSPopUpButton *timeIntervalUnits;
22 IBOutlet NSButton *timeIntervalRepeats;
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
26 IBOutlet NSButton *timeCalendarButton;
27 IBOutlet NSButtonCell *editAlert;
28 IBOutlet NSTextField *alertView;
29 IBOutlet NSTabView *alertTabs;
30 IBOutlet NSButtonCell *displayMessage;
31 IBOutlet NSButton *bounceDockIcon;
32 IBOutlet NSButtonCell *playSound;
33 IBOutlet NJRQTMediaPopUpButton *sound;
34 IBOutlet NSButton *soundVolumeButton;
35 IBOutlet NSTextField *soundRepetitions;
36 IBOutlet NSStepper *soundRepetitionStepper;
37 IBOutlet NSTextField *soundRepetitionsLabel;
38 IBOutlet NSButtonCell *doScript;
39 IBOutlet NJRFSObjectSelector *script;
40 IBOutlet NSButtonCell *doSpeak;
41 IBOutlet NJRVoicePopUpButton *voice;
42 IBOutlet NSButton *scriptSelectButton;
43 IBOutlet NSButtonCell *wakeUp;
44 IBOutlet NSTextField *timeSummary;
45 IBOutlet NSButton *cancelButton;
46 IBOutlet NSButton *setButton;
47 NSString *status;
48 NSTimer *updateTimer;
49 PSAlarm *alarm;
50 BOOL isInterval;
51}
52
53- (IBAction)update:(id)sender;
54- (IBAction)dateCompleted:(NSPopUpButton *)sender;
55- (IBAction)showCalendar:(NSButton *)sender;
56- (IBAction)inAtChanged:(id)sender;
57- (IBAction)toggleAlertEditor:(id)sender;
58- (IBAction)editAlertChanged:(id)sender;
59- (IBAction)playSoundChanged:(id)sender;
60- (IBAction)showVolume:(NSButton *)sender;
61- (IBAction)doScriptChanged:(id)sender;
62- (IBAction)doSpeakChanged:(id)sender;
63- (IBAction)setAlarm:(NSButton *)sender;
64- (IBAction)setSoundRepetitionCount:(id)sender;
65
66- (IBAction)silence:(id)sender;
67
68@end
Note: See TracBrowser for help on using the repository browser.