home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscDragViews / MiscViews.subproj / MiscIconWell.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.8 KB  |  60 lines

  1. /**************************************************************************
  2.   CLASS:            MiscIconWell
  3.   INHERITS FROM:    MiscDragView
  4.   PROGRAMMERS:        Todd Thomas            (todd@avocado.supernet.ab.ca)
  5.                       Bruce McKenzie        (spuds@netcom.com)
  6.                     Stephen Fitzpatrick (sfitzp@elegabalus.cs.qub.ac.uk)
  7.   BEGAN:            May 24, 1994
  8.   LAST CHANGED:        November 26, 1994
  9.   VERSION:            1.4
  10.   CHANGES:            See the end of MiscIconWell.m.
  11.  
  12.  
  13.   This class (by default) allows both source and destination dragging of 
  14.   icon representations of files and folders and uses the NXFilenamePboardType
  15.   to pass the filename that is associated with the dragged icon.
  16.   Since we are inheriting the basic functionality from MiscDragView, we 
  17.   should not need to do much. 
  18.  
  19.   This object is included in the MiscKit by permission from the author
  20.   and its use is governed by the MiscKit license, found in the file
  21.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  22.   for a list of all applicable permissions and restrictions.
  23.  
  24.  * Copyright (C) 1995 Robert Todd Thomas
  25.  * Use is governed by the MiscKit license
  26.  ***************************************************************************/
  27.  
  28. #import <appkit/appkit.h>
  29. #import <misckit/MiscDragView.h>
  30.  
  31.  
  32. @interface MiscIconWell : MiscDragView
  33. {
  34.     char  *filename;        // to char* for easier palette loading in IB 
  35.     BOOL  allowDoubleClickLaunch;
  36. }
  37.  
  38. - initFrame: (const NXRect *)frameRect;
  39. - initDragTypes;
  40. - free;
  41.  
  42. - (const char *)filename;
  43. - setImage: (NXImage *)anImage;
  44. - setImageByFilename: (const char *)aFilename;
  45. - setAllowDoubleClickLaunch: (BOOL)aBool;
  46. - (BOOL)allowDoubleClickLaunch;
  47.  
  48. // Launch/open file in WS: BJM 5/24/94
  49. - launch:sender;
  50.  
  51. - mouseDown: (NXEvent *)theEvent;
  52. - (BOOL)setupForSourceDrag;
  53. - (BOOL)performDragOperation: sender;
  54. - concludeDragOperation: sender;
  55.  
  56. - read: (NXTypedStream *)stream;
  57. - write: (NXTypedStream *)stream;
  58.  
  59. @end
  60.