home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / Rhapsody / Graphics / Morph-2.0a / MorphDocument.h < prev    next >
Encoding:
Text File  |  1998-03-02  |  2.0 KB  |  77 lines

  1. // MorphDocument.h
  2. //
  3. // created by Martin Wennerberg on Sun 12-Nov-1995
  4. //
  5. // when        who    modification
  6.  
  7. #import "Document.h"
  8.  
  9. #define MORPH_DOC_EXTENTION @"morph2"
  10. #define XMOVIE_EXTENTION    @"xmovie"
  11. #define DICT_PATHCOMPONENT @"info.plist"
  12. #define DICT_IMAGE0_PATH_KEY @"firstImagePath"
  13. #define DICT_IMAGE1_PATH_KEY @"lastImagePath"
  14. #define DICT_MORPHLINES_KEY @"morphLines"
  15. #define DICT_VERSION_KEY @"version"
  16.  
  17. #define FILEVERSION   1
  18.  
  19. @class MorphLine;
  20. @class Editor;
  21. @class NSProgressIndicator;
  22. @class NSTextField;
  23. @class NSBox;
  24. @class NSView;
  25. @class NSImage;
  26. @class NSMatrix;
  27.  
  28. @interface MorphDocument : Document
  29. {
  30.     IBOutlet Editor              *firstEditor;
  31.     IBOutlet Editor           *lastEditor;
  32.     IBOutlet NSTextField   *frameCountField;
  33.     IBOutlet NSTextField   *frameHeightField;
  34.     IBOutlet NSTextField   *frameWidthField;
  35.     IBOutlet NSBox         *frameSettingsView;
  36.     IBOutlet NSBox           *previewBox;
  37.     IBOutlet NSProgressIndicator *progressIndicator;
  38.     IBOutlet NSView           *progressView;
  39.     NSMatrix               *previewMatrix;
  40.     NSImage                   *firstImage;
  41.     NSImage                   *lastImage;
  42.     NSMutableArray         *morphLines;
  43.     NSMutableArray         *selectedLines;
  44. }
  45.  
  46. // Methods from super class
  47.  
  48. + (NSSet *) readableFileTypes;
  49. - initWithContentsOfFile:(NSString *)file;
  50.  
  51. - (NSArray *) morphLines;
  52. - (void) addMorphLine:(MorphLine *)morphLine;
  53. - (void) deleteMorphLine:(MorphLine *)morphLine;
  54.  
  55.     // Access methods
  56. - (NSImage *) imageAtDelta:(float)delta;
  57. - (void) setImage:(NSImage *)image atDelta:(float)delta;
  58.  
  59. - (NSWindow *)window;
  60.  
  61.     // Actions
  62. - (void) calcPreview:sender;
  63.  
  64. - (void) save:sender;
  65. - (void) saveAs:sender;
  66. - (void) saveTo:sender;
  67. - (void) saveFrames:sender;
  68.  
  69. - (void) selectAll:sender;
  70. - (void) selectNone:sender;
  71. - (void) addToCurrentSelection:(id)obj;
  72. - (void) removeFromCurrentSelection:(id)obj;
  73. - (NSArray *) currentSelection;
  74.  
  75. - (void) calcFramesAndSaveToPath:(NSString *)dirPath count:(unsigned int)frameCount size:(NSSize)frameSize;
  76. @end
  77.