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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
//
// MyDocument.h
// TA2 hot
//
// Created by matthew on Sat Apr 05 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MyDocument.h"
#import "myProject.h"
@interface myProject : NSDocument
{
int rawF, emptyF, exactF;
int simpleF;
int uniqueNumber;
IBOutlet id emptyButton;
IBOutlet id exactButton;
IBOutlet id rawButton;
IBOutlet id simpleButton;
NSMutableArray *openFiles, *searchFiles;
MyDocument *codeSource;
MWFile *initFile;
IBOutlet id codeListView;
IBOutlet id codeSourceView;
IBOutlet id codeSourceBox;
IBOutlet id fileListView;
IBOutlet id codeFileName;
IBOutlet id myWindow;
IBOutlet id searchListView;
IBOutlet id searchStringView;
IBOutlet id windowNameView;
IBOutlet id coderIDView;
IBOutlet id initFileName;
IBOutlet id setName;
IBOutlet id setMenu;
NSMutableDictionary *codeList;
}
-(int) rawF;
-(int) exactF;
-(int) emptyF;
-(int) simpleF;
-(NSMutableString *) getDefinition: (NSString *) what;
- (void) shoveWindow;
- (void)windowDidUpdate:(NSNotification *)aNotification;
- (BOOL) fileExists: (NSString *) who;
- (BOOL) isInitFile: (MWFile *) who;
-(void) newCode: (NSString *) what definition: (NSString *) info;
- (id)initWithWindowNibName:(NSString *)windowNibName;
- (NSMutableArray *) fileList;
- (NSMutableArray *) searchList;
//protocol for result documents
-(NSString *) theLimitString;
-(NSString *) uniqueString;
-(NSString *) theWindowName;
- (void)windowDidLoad;
-(void) displaySelData;
-(void) front;
-(void) back;
-(NSArray *) getHotCodeList;
-(NSString *) codersList;
-(NSArray *) hotCodeList;
-(void) openMWFile: (MWFile *) who;
-(BOOL) mwFileExists: (MWFile *) who;
-(MWFile *) getMWFile;
-(MWFile *) searchFileName;
- (IBAction) setInitFile: (id) sender;
- (IBAction)clearSearch:(id)sender;
- (IBAction)doAdd:(id)sender;
- (IBAction)doAddAll:(id)sender;
- (IBAction)doRefresh:(id)sender;
- (IBAction)doRemove:(id)sender;
- (IBAction)doRemoveAll:(id)sender;
- (IBAction)doSearch:(id)sender;
- (IBAction)myAction:(id)sender;
@end
#define FILEOPEN(X) [gWorkBench fileExists: X]
|