source: trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.h @ 133

Last change on this file since 133 was 133, checked in by Nicholas Riley, 16 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: 827 bytes
Line 
1//
2//  NJRQTMediaPopUpButton.h
3//  Pester
4//
5//  Created by Nicholas Riley on Sat Oct 26 2002.
6//  Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import <AppKit/AppKit.h>
10#import "BDAlias.h"
11
12extern NSString * const NJRQTMediaPopUpButtonMovieChangedNotification;
13
14@interface NJRQTMediaPopUpButton : NSPopUpButton {
15    IBOutlet NSMovieView *preview;
16    BOOL movieCanRepeat, movieHasAudio;
17    NSMenuItem *otherItem;
18    BDAlias *selectedAlias, *previousAlias;
19    NSMutableArray *recentMediaAliasData;
20    BOOL dragAccepted;
21    BOOL savedVolume;
22    float outputVolume;
23}
24
25- (BDAlias *)selectedAlias;
26- (void)setAlias:(BDAlias *)alias;
27- (float)outputVolume;
28- (void)setOutputVolume:(float)volume withPreview:(BOOL)doPreview;
29
30- (BOOL)canRepeat;
31- (BOOL)hasAudio;
32
33- (IBAction)stopSoundPreview:(id)sender;
34
35@end
Note: See TracBrowser for help on using the repository browser.