home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Sessions / Traut / ZStrings / Source / MacOS / GraphicalTool / FileSelectionGroupView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-23  |  1.4 KB  |  59 lines

  1. /*==================================================================
  2.     File:        FileSelectionGroupView.h
  3.  
  4.     Contains:    Class that extends the standard PowerPlant
  5.                 group box to allow for drag and drop of files.
  6.  
  7.     Written by:    Eric Traut
  8.  
  9.     Copyright:    2000-2001 Connectix Corporation
  10.     
  11.     This source has been placed into the public domain by
  12.     Connectix Corporation. You have the right to modify, 
  13.     distribute or use this code without any legal limitations
  14.     or finanicial/licensing requirements. Connectix is not 
  15.     liable for any problems that result from the use of this 
  16.     code.
  17.     
  18.     If you have comments, feedback, questions, or would like
  19.     to submit bug fixes or updates to this code, please email
  20.     opensource@connectix.com.
  21. ==================================================================*/
  22.  
  23. #pragma once
  24.  
  25. #include <LTextGroupBox.h>
  26. #include <LDragAndDrop.h>
  27.  
  28.  
  29. class FileSelectionGroupView : public LTextGroupBox, public LDragAndDrop
  30. {
  31.     public:
  32.         enum { class_ID = FOUR_CHAR_CODE('FlTG') };
  33.  
  34.         FileSelectionGroupView(
  35.             LStream *        inStream);
  36.         
  37.         virtual
  38.         ~FileSelectionGroupView();
  39.  
  40.         virtual void
  41.         HiliteDropArea(
  42.             DragReference    inDragRef);
  43.  
  44.     protected:
  45.         virtual Boolean
  46.         ItemIsAcceptable(
  47.             DragReference        inDragRef,
  48.             ItemReference        inItemRef);
  49.  
  50.         virtual void
  51.         ReceiveDragItem(
  52.             DragReference        inDragRef,
  53.             DragAttributes        inDragAttrs,
  54.             ItemReference        inItemRef,
  55.             Rect&                inItemBounds);
  56. };
  57.  
  58.  
  59.