home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / OOP_Course / Examples / HelpEx / Help.h next >
Encoding:
Text File  |  1992-09-06  |  1.0 KB  |  41 lines

  1. /*
  2. #import <objc/Object.h>
  3. #import <appkit/graphics.h>
  4. #import <sys/param.h>  //for MAXPATHLEN
  5. */
  6. #import <appkit/appkit.h>
  7.  
  8.  
  9. @interface Help:Object
  10. {
  11.     id helpScrollView;            /* scrollView to put help text in */
  12.     id helpBrowser;            /* NXBrowser of help topics */
  13.     id helpPanel;            /* the help panel */
  14.     char helpDirectory[MAXPATHLEN];    /* the directory to find help files */
  15.     char noHelpFile[MAXPATHLEN];    /* the name of the "no help" file */
  16.     char appDirectory[MAXPATHLEN];
  17. }
  18.  
  19. /* INIT/FREE METHODS */
  20. - init;
  21. - setHelpBrowser:anObject;
  22. - (const char *)appDirectory;
  23.  
  24. /* TARGET/ACTION METHODS */
  25. - generalHelp:sender;
  26. - browserHit:sender;
  27. - print:sender;
  28.  
  29. /* HELP METHODS */
  30. - showHelpFile:(const char*)filename;
  31.  
  32. /* BROWSER DELEGATE METHODS */
  33. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  34. - browser:sender loadCell:cell atRow:(int)row inColumn:(int)column;
  35. - (BOOL)browser:sender selectCell:(const char *)title inColumn:(int)column;
  36.  
  37. /* WINDOW DELEGATE METHODS */
  38. - windowWillResize:sender toSize:(NXSize *)frameSize;
  39.  
  40. @end
  41.