1 /* PreferencesController.h created by chris on Wed 30-Jun-1999 */
2 
3 #import <AppKit/AppKit.h>
4 #import "MainDocument.h"
5 
6 extern NSString* kUseBundledFortune;
7 extern NSString* kFortuneLocation;
8 extern NSString* kUseBundledDatfiles;
9 extern NSString* kDatfilesLocation;
10 extern NSString* kShowOffensive;
11 extern NSString* kFortuneFontName;
12 extern NSString* kFortuneFontSize;
13 
14 @interface PreferencesController : NSObject
15 {
16     IBOutlet NSPanel *prefsPanel;
17     IBOutlet NSTextField *pathField;
18     IBOutlet NSTextField *datfilesPathField;
19     IBOutlet NSButton* useBundledFortuneCheckBox;
20     IBOutlet NSButton* useBundledDatfilesCheckBox;
21     IBOutlet NSTextField *fontField;
22     IBOutlet NSButton *offensiveCheckBox;
23     IBOutlet NSButton *selectFortuneButton;
24     IBOutlet NSButton *selectDatfilesButton;
25     IBOutlet MainDocument *mainDoc;
26 
27     NSFont *newFont;
28     BOOL fontChanged;
29 }
30 
31 - (void)showPrefs:(id)sender;
32 - (void)resetPrefs:(id)sender;
33 - (void)savePrefs:(id)sender;
34 - (void)cancelPrefs:(id)sender;
35 - (void)showOpenFortunePanel:(id)sender;
36 - (void)showOpenDatfilesPanel:(id)sender;
37 - (void)showFontPanel:(id)sender;
38 - (void)changeFont:(id)fontManager;
39 - (void)offensiveClicked:(id)sender;
40 - (void)useBundledFortuneClicked:(id)sender;
41 - (void)useBundledDatfilesClicked:(id)sender;
42 
43 @end
44