source: releases/Pester/1.1a3/Source/PSAlarmSetController.h@ 592

Last change on this file since 592 was 41, checked in by Nicholas Riley, 22 years ago

Popup triangle.tiff: Needed display component of NJRFSObjectSelector.
This one appears to use transparency unlike the one I prepared for
Process Exhibits, so it should be preferred.

NSMovie-NJRExtensions: Added -isStatic to identify whether the movie
contains dynamic components. If the movie is static, it most likely
contains only an image and shouldn't be 'played' as such, otherwise
the duration will be so short that the image won't be useful.

NJRFSObjectSelector: Fixed -drawRect: to draw the drag feedback
rectangle inside the bounds of the control, not inside whatever dirty
rectangle is passed to the method (often they are the same, but not
always). Only draw the popup arrow if the control is enabled.
Properly draw the popup arrow with transparency. Display the 'make
alias' cursor as additional drag feedback.

PSMovieAlertController: Only repeat movie and auto-close after movie
finished if it contains time-based media, otherwise just display the
movie (an image) until the window is closed or alarms are cancelled.

NSImage-NJRExtensions: Include code to actually scale icons from
F-Script Anywhere, otherwise the menu ends up with 32x32 (or
potentially larger) icons if smaller variations are not provided.
There's some more code in FSA that chooses which representation to
select; this code may still not be properly handling representations,
but it works better now. A good test case is the icon for Tex-Edit
Plus documents.

NJRQTMediaPopUpButton: Added notification for movie change (needed to
update interface). Changed -_validatePreview to
-_validateWithPreview: - preview is now optional. This will be needed
when I add archiving support for the selected item; we'll need to
validate it before updating the interface, but we don't want sounds to
play. Added some #pragma mark lines to separate methods by
functionality. Call -validateWithPreview: NO in awakeFromNib (again,
this logic will become more sophisticated later). Commented some
debugging logic since I'm pretty happy with the code. Added
-canRepeat accessor and setters, notification support in the
validation method. Added drag feedback.

PSAlarmSetController: Notification support, -setSoundRepetitionCount:
to avoid flashing with repetition text field control as NSStepper is
adjusted

English.lproj/MainMenu.nib: Switched action method for the NSStepper
stuff discussed above.

AM /Users/nicholas/Documents/Development/Cocoa/Pester/Source/Popup triangle.tiff
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NSMovie-NJRExtensions.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NJRFSObjectSelector.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/PSMovieAlertController.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NSImage-NJRExtensions.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NJRQTMediaPopUpButton.h
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/.DS_Store
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/English.lproj/MainMenu.nib/objects.nib
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/English.lproj/MainMenu.nib/info.nib
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/English.lproj/MainMenu.nib/classes.nib
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/Pester.pbproj/nicholas.pbxuser
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/Pester.pbproj/project.pbxproj
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/PSAlarmSetController.h
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/PSAlarmSetController.m
M /Users/nicholas/Documents/Development/Cocoa/Pester/Source/NSMovie-NJRExtensions.h

File size: 1.8 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 NJRQTMediaPopUpButton;
14@class NJRVoicePopUpButton;
15
16@interface PSAlarmSetController : NSWindowController {
17 IBOutlet NSTextField *messageField;
18 IBOutlet NSMatrix *inAtMatrix;
19 IBOutlet NSTextField *timeInterval;
20 IBOutlet NSPopUpButton *timeIntervalUnits;
21 IBOutlet NSButton *timeIntervalRepeats;
22 IBOutlet NSTextField *timeOfDay;
23 IBOutlet NSTextField *timeDate;
24 IBOutlet NSPopUpButton *timeDateCompletions; // XXX should go away when bug preventing both formatters and popup menus from existing is fixed
25 IBOutlet NSButtonCell *displayMessage;
26 IBOutlet NSButton *bounceDockIcon;
27 IBOutlet NSButtonCell *playSound;
28 IBOutlet NJRQTMediaPopUpButton *sound;
29 IBOutlet NSTextField *soundRepetitions;
30 IBOutlet NSStepper *soundRepetitionStepper;
31 IBOutlet NSTextField *soundRepetitionsLabel;
32 IBOutlet NSButtonCell *doScript;
33 IBOutlet NJRFSObjectSelector *script;
34 IBOutlet NSButtonCell *doSpeak;
35 IBOutlet NJRVoicePopUpButton *voice;
36 IBOutlet NSButton *scriptSelectButton;
37 IBOutlet NSTextField *timeSummary;
38 IBOutlet NSButton *setButton;
39 NSString *status;
40 NSTimer *updateTimer;
41 PSAlarm *alarm;
42 BOOL isInterval;
43}
44
45- (IBAction)update:(id)sender;
46- (IBAction)dateCompleted:(NSPopUpButton *)sender;
47- (IBAction)inAtChanged:(id)sender;
48- (IBAction)playSoundChanged:(id)sender;
49- (IBAction)doScriptChanged:(id)sender;
50- (IBAction)doSpeakChanged:(id)sender;
51- (IBAction)setAlarm:(NSButton *)sender;
52- (IBAction)setSoundRepetitionCount:(id)sender;
53
54- (IBAction)silence:(id)sender;
55
56@end
Note: See TracBrowser for help on using the repository browser.