File: MainDocument.h

package info (click to toggle)
fortunate.app 3.1-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 508 kB
  • sloc: ansic: 2,697; objc: 470; makefile: 23
file content (32 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
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