home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / LazyScrollDir / DirWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-08  |  1.7 KB  |  67 lines

  1. //=============================================================================
  2. //
  3. //        Copyright (C) 1995,1996 by Paul S. McCarthy and Eric Sunshine.
  4. //                Written by Paul S. McCarthy and Eric Sunshine.
  5. //                            All Rights Reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //        This object is included in the MiscKit by permission from the authors
  10. //        and its use is governed by the MiscKit license, found in the file
  11. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  12. //        for a list of all applicable permissions and restrictions.
  13. //
  14. //=============================================================================
  15. //-----------------------------------------------------------------------------
  16. // DirWindow.h
  17. //
  18. //        Manages window which displays directory listing.
  19. //
  20. //-----------------------------------------------------------------------------
  21. //-----------------------------------------------------------------------------
  22. // $Id$
  23. // $Log$
  24. //-----------------------------------------------------------------------------
  25. #import <appkit/appkit.h>
  26. #import "DirArray.h"
  27.  
  28. @class MiscTableScroll;
  29.  
  30. enum
  31.     {
  32.     ICON_SLOT,
  33.     NAME_SLOT,
  34.     SIZE_SLOT,
  35.     MODIFIED_SLOT,
  36.     PERMS_SLOT,
  37.     OWNER_SLOT,
  38.     GROUP_SLOT,
  39.     HARDLINKS_SLOT,
  40.     SOFTLINK_SLOT,
  41.     MESSAGE_SLOT
  42.     };
  43. #define MAX_SLOT (MESSAGE_SLOT + 1)
  44.  
  45.  
  46. @interface DirWindow:Object
  47.     {
  48.     MiscTableScroll*    scroll;
  49.     Window*                window;
  50.     Button*                autoSortSwitch;
  51.     Button*                cdButton;
  52.     Button*                hiddenFilesSwitch;
  53.     Button*                highlightSwitch;
  54.     Button*                updateButton;
  55.     TextField*            countField;
  56.     char*                path;
  57.     BOOL                autoSort;
  58.     BOOL                showHidden;
  59.     BOOL                highlightDirs;
  60.     DirArray*            dir_array;
  61.     id                    lazy_row[ MAX_SLOT ];
  62.     }
  63.  
  64. + launchDir:(char const*) dirname;
  65.  
  66. @end
  67.