home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Graphics / ToyViewer-2.6a / src / ToyWin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-08  |  1.5 KB  |  75 lines

  1. #import <objc/Object.h>
  2. #import "common.h"
  3.  
  4. @class NXImage, Window, ToyView;
  5.  
  6. #define  mini_YET    0
  7. #define  mini_DEMINI    1
  8. #define  mini_MINI    2
  9.  
  10. extern BOOL displayOverKeyWindowFlag;
  11.  
  12. @interface ToyWin: Object
  13. {
  14.     id    thiswindow;
  15.     id    scView;
  16.     id    commentText;
  17.     id    parental;
  18.     int     operation;
  19.     float    scaleFactor;
  20.     char    *imageFilename;
  21.     id    scalePanel;
  22.     id    scaleText;
  23.     int    miniFlag;
  24.     BOOL    makeMapOnly;
  25. }
  26.  
  27. + (BOOL)displayOverKeyWindow:(BOOL)flag;
  28. - init;
  29. - init: parent by:(int)op;
  30. - initMapOnly;
  31. - free;
  32. - (const char *)filename;
  33. - resetFilename:(const char *)fileName;
  34. - (Window *)window;
  35. - toyView;
  36. - parent;
  37. - (int)madeby;
  38. - reScale: sender;
  39. - setScale: sender;
  40. - initLocateWindow:(const char *)fileName width:(int)width height:(int)height;
  41. - scrollProperly;
  42.  
  43. /* delegate methods */
  44. - windowWillMiniaturize:sender toMiniwindow:miniwindow;
  45. - windowDidDeminiaturize:sender;
  46. - windowWillClose:sender;
  47. - windowDidBecomeKey:sender;
  48. - windowDidExpose:sender;
  49. - windowDidMove:sender;
  50.  
  51. @end
  52.  
  53.  
  54. @interface ToyWin (Drawing)
  55.  
  56. - (commonInfo *)drawToyWin:(const char *)fileName type:(int)type
  57.     map:(unsigned char **)map err:(int *)err;
  58. - drawView:(unsigned char **)map info:(commonInfo *)cinf;
  59. - (int)drawFromFile:(const char *)fileName or:(NXStream *)stream;
  60. - makeComment:(commonInfo *)cinf;
  61. - makeComment:(commonInfo *)cinf from:(const commonInfo *)originfo;
  62.  
  63. @end
  64.  
  65.  
  66. @interface ToyWin (Saving)
  67.  
  68. - (NXStream *)openEPSStream;
  69. - (int)getBitmap:(unsigned char **)map info:(commonInfo **)infp;
  70. - freeTempBitmap;
  71.     /* freeTempBitmap must be called after getBitmap:info: */
  72. - print: sender;
  73.  
  74. @end
  75.