home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / NEXTARCH.TAR / NeXTArchie / MyOpenPanel.h < prev    next >
Encoding:
Text File  |  1992-01-22  |  1.1 KB  |  38 lines

  1. #import <objc/Object.h>
  2. #import  <sys/dir.h>
  3. #import <sys/param.h>
  4.  
  5. @interface MyOpenPanel:Object
  6. {
  7.     id browser;            // Files browser
  8.     id okButton;            // Ok button
  9.     id iconBtn;            // App icon
  10.     id form;                // Form displaying current selection
  11.     id panel;                // The panel
  12.     id panelTitle;        // Title of panel
  13.     char pathName[MAXPATHLEN];        // Full pathname of directory/file
  14.     int dirLevel;            // The number of levels directory is below root
  15.     int fileCount;            // The number of files in the last directory
  16.     struct direct **nameList[32];    // List of file names in directories
  17.     int nameCount[32];    // Number of files in nameList
  18.     BOOL dirFlag;        // Indicates wether directories are to be selected
  19.     BOOL isDirectory;    // Indicates wether the last selected path was a directory
  20. }
  21.  
  22. /* User interfacing methods */
  23. - setTitle: (char *) theTitle;
  24. - (int) runModal: (BOOL) selectDirs;
  25. - (int) runModal: (char *) directory :(BOOL) selectDirs;
  26. - (const char *) pathName;
  27.  
  28. /* Panel action methods */
  29. - goHome: sender;
  30. - cancel: sender;
  31. - ok: sender;
  32.  
  33. /* Private methods */
  34. - getSelectionPath;
  35. - doubleClick;
  36.  
  37. @end
  38.