home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Palettes / MiscDragViews / MiscViews.subproj / MiscImageDragView.h < prev    next >
Encoding:
Text File  |  1994-03-17  |  1.3 KB  |  40 lines

  1. /***************************************************************************
  2.  * CLASS:        MiscImageDragView
  3.  * PROGRAMMER:    Todd Thomas
  4.  * DATE:        Feb 15, 1993
  5.  * VERSION        0.3
  6.  *
  7.  *    A class that allows you to drag and drop any images that NXImage
  8.  * understands. That includes data from NXTIFFPboardType, 
  9.  * NXFilenamePboardType, and NXPostScriptPboardType.
  10.  * I don't know how useful this class actually is, but it is here as
  11.  * more of an example of how to use MiscDragView. As for options, you have
  12.  * the option of either dragging the image in the view or just the icon
  13.  * representation (which will be the TIFF file). For now, though the well will 
  14.  * accept a lot of different types of data, it will only put TIFF data on
  15.  * the pasteboard in preparation of a source drag.
  16.  *        
  17.  ****************************************************************************/
  18.  
  19. #import <appkit/appkit.h>
  20. #import <misckit/MiscDragView.h>
  21.  
  22.  
  23. @interface MiscImageDragView : MiscDragView
  24. {
  25.     BOOL  dragIconRepresentation;
  26. }
  27.     
  28. - initFrame: (NXRect *)frameRect;
  29. - awake;
  30. - setDragIconRepresentation: (BOOL)aBool;
  31. - (BOOL)dragIconRepresentation;
  32. - (BOOL)setupForSourceDrag;
  33. - calculateDragPoint: (NXPoint *)dragPoint andOffset: (NXPoint *)offset;
  34. - (BOOL)prepareForDragOperation:sender;
  35. - (BOOL)performDragOperation: sender;
  36. - read: (NXTypedStream *)stream;
  37. - write: (NXTypedStream *)stream;
  38.  
  39.  
  40. @end