source: trunk/Cocoa/Pester/Source/PSApplication.h@ 458

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

PSPreferencesController.[hm]: Manage preferences window, just like in
HostLauncher (and DockCam, I guess, though I didn't check.)

NJRHotKeyField.[hm], NJRHotKeyFieldCell.[hm]: Implements a NSTextField
subclass which intercepts every keyboard event it can, and turns it
into a human-readable representation. Don't ask me how many hours of
work this was.

English.lproj/MainMenu.nib: Hook up Preferences menu item.

English.lproj/Preferences.nib: Simple Preferences panel. One
NJRHotKeyField, one button, a couple of static text fields.

NSString-NJRExtensions.[hm]: Added method from HostLauncher (modified
to output attributed string, as it's needed in order to get the right
mix of fonts), -keyEquivalentAttributedStringWithModifierMask:.
Greatly broadened the number of keys which this method can process to
pretty much the entire extended keyboard.

NSFont-NJRExtensions.[hm]: Provide a class method for obtaining a
theme font as a NSFont.

File size: 760 bytes
RevLine 
[26]1//
2// PSApplication.h
3// Pester
4//
5// Created by Nicholas Riley on Fri Oct 11 2002.
6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import <AppKit/AppKit.h>
10
11@class PSAlarmsController;
[28]12@class PSAlarmSetController;
[61]13@class PSTimer;
[129]14@class PSPreferencesController;
[26]15
16@interface PSApplication : NSApplication {
17 PSAlarmsController *alarmsController;
[28]18 IBOutlet PSAlarmSetController *alarmSetController;
[129]19 PSPreferencesController *preferencesController;
[61]20 PSTimer *dockUpdateTimer;
[28]21 NSTimeInterval dockUpdateInterval;
22 NSImage *appIconImage;
[26]23}
24
[28]25- (IBAction)orderFrontSetAlarmPanel:(id)sender;
[26]26- (IBAction)orderFrontAlarmsPanel:(id)sender;
[129]27- (IBAction)orderFrontPreferencesPanel:(id)sender;
[34]28- (IBAction)stopAlerts:(id)sender;
[26]29
30@end
Note: See TracBrowser for help on using the repository browser.