1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
/* MainDocument.h
* Chris Saldanha, June 1999
* Class to display fortunes in a simple window.
*/
#import <AppKit/AppKit.h>
#import "FortuneTextView.h"
@class PreferencesController;
@interface MainDocument : NSObject
{
IBOutlet NSWindow *mainWindow;
IBOutlet NSPanel *prefsPanel;
IBOutlet NSPanel *infoPanel;
IBOutlet PreferencesController *prefsController;
FortuneTextView *text;
}
- (void)activateMainWindow:(id)sender;
- (void)loadNewFortuneAndUpdateWindow:(id)sender;
- (void)copyFortune:(id)sender;
- (void)showPrefs:(id)sender;
- (void)showInfo:(id)sender;
- (void)printFortune:(id)sender;
- (NSString *)fortuneLocation;
- (NSString *)datfilesLocation;
- (NSFont*)fortuneFont;
- (BOOL)showOffensive;
@end
|