Last change
on this file since 614 was 584, checked in by Nicholas Riley, 15 years ago |
Better solution for volume popup in 10.6: use a menu.
|
File size:
825 bytes
|
Rev | Line | |
---|
[133] | 1 | //
|
---|
| 2 | // PSVolumeController.h
|
---|
| 3 | // Pester
|
---|
| 4 | //
|
---|
| 5 | // Created by Nicholas Riley on Tue Apr 08 2003.
|
---|
| 6 | // Copyright (c) 2003 Nicholas Riley. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | #import <AppKit/AppKit.h>
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | @interface PSVolumeController : NSWindowController {
|
---|
| 13 | id delegate;
|
---|
| 14 | IBOutlet NSView *contentView;
|
---|
| 15 | IBOutlet NSSlider *volumeSlider;
|
---|
[584] | 16 | NSMenu *menu;
|
---|
[133] | 17 | }
|
---|
| 18 |
|
---|
| 19 | + (PSVolumeController *)controllerWithVolume:(float)volume delegate:(id)aDelegate;
|
---|
| 20 |
|
---|
| 21 | - (id)initWithVolume:(float)volume delegate:(id)aDelegate;
|
---|
| 22 |
|
---|
| 23 | - (IBAction)volumeSet:(NSSlider *)sender;
|
---|
| 24 |
|
---|
| 25 | @end
|
---|
| 26 |
|
---|
| 27 | @interface NSObject (PSVolumeControllerDelegate)
|
---|
| 28 |
|
---|
| 29 | - (void)volumeController:(PSVolumeController *)controller didSetVolume:(float)volume;
|
---|
| 30 | - (void)volumeControllerDidDismiss:(PSVolumeController *)controller;
|
---|
| 31 | - (NSView *)volumeControllerLaunchingView:(PSVolumeController *)controller;
|
---|
| 32 |
|
---|
| 33 | @end |
---|
Note:
See
TracBrowser
for help on using the repository browser.