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

  1. /**************************************************************************
  2.  * CLASS:        MiscIconWell
  3.  * PROGRAMMER:    Todd Thomas        (todd@avocado.cuc.ab.ca)
  4.  * DATE:        Feb 3, 1993
  5.  * VERSION:        0.3
  6.  *
  7.  *    This class (by default) allows both source and destination dragging of 
  8.  * icon representations of files and folders and uses the NXFilenamePboardType
  9.  * to pass the filename that is associated with the dragged icon.
  10.  * Since we are inheriting the basic functionality from MiscDragView, we 
  11.  * should not need to do much. 
  12.  *
  13.  * This object is included in the MiscKit by permission from the author
  14.  * and its use is governed by the MiscKit license, found in the file
  15.  * "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  16.  * for a list of all applicable permissions and restrictions.
  17.  ***************************************************************************/
  18.  
  19. #import <appkit/appkit.h>
  20. #import <misckit/MiscDragView.h>
  21.  
  22.  
  23. @interface MiscIconWell : MiscDragView
  24. {
  25.     id  filename;
  26.     BOOL  allowDoubleClickLaunch;
  27. }
  28.  
  29. - initFrame: (const NXRect *)frameRect;
  30. - awake;
  31. - free;
  32. - (char *)filename;
  33. - setImageByFilename: (char *)aFilename;
  34. - setAllowDoubleClickLaunch: (BOOL)aBool;
  35. - (BOOL)allowDoubleClickLaunch;
  36. - mouseDown: (NXEvent *)theEvent;
  37. - (BOOL)setupForSourceDrag;
  38. - (BOOL)performDragOperation: sender;
  39. - concludeDragOperation: sender;
  40. - read: (NXTypedStream *)stream;
  41. - write: (NXTypedStream *)stream;
  42.  
  43. @end
  44.