home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / NSSavePanel.h < prev    next >
Text File  |  1994-09-29  |  3KB  |  91 lines

  1. /*
  2.     SavePanel.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "NSPanel.h"
  8.  
  9. /* Tags of views in the SavePanel */
  10.  
  11. enum {
  12.     NSFileHandlingPanelImageButton    = 150,
  13.     NSFileHandlingPanelTitleField    = 151,
  14.     NSFileHandlingPanelBrowser        = 152,
  15.     NSFileHandlingPanelCancelButton    = NSCancelButton,
  16.     NSFileHandlingPanelOKButton        = NSOKButton,
  17.     NSFileHandlingPanelForm        = 155
  18. };
  19.  
  20. @interface NSSavePanel : NSPanel
  21. {
  22.     id                  form;
  23.     id                  browser;
  24.     id                  okButton;
  25.     id                  accessoryView;
  26.     id                  separator;
  27.     char               *filename;
  28.     char               *directory;
  29.     const char        **filenames;
  30.     char               *requiredType;
  31.     void           *_columns;
  32.     NXHashTable        *_typeTable;
  33.     struct _spFlags {
  34.     unsigned int        opening:1;
  35.     unsigned int        exitOk:1;
  36.     unsigned int        allowMultiple:1;
  37.     unsigned int        dirty:1;
  38.     unsigned int        invalidateMatrices:1;
  39.     unsigned int        filtered:1;
  40.     unsigned int        _chooseFolders:1;
  41.     unsigned int        _ignoreFilePackages:1;
  42.     unsigned int        _largeFS:1;
  43.     unsigned int        _delegateValidatesNew:1;
  44.     unsigned int        _delegateValidatesOld:1;
  45.     unsigned int        _checkCase:1;
  46.     unsigned int        _cancd:1;
  47.     unsigned int        _UnixExpert:1;
  48.     unsigned int        _backwards:1;
  49.     unsigned int        _forwards:1;
  50.     }                   spFlags;
  51.     unsigned short      directorySize;
  52.     int                 _cdcolumn;
  53.     IMP                 _filterMethod;
  54.     id                  _homeButton;
  55.     id                  _scroller;
  56.     IMP            _fncmp;
  57.     id            _removableDeviceButton;
  58. }
  59.  
  60.  
  61. + (NSSavePanel *)savePanel;
  62.  
  63. - ok:sender;
  64. - cancel:sender;
  65. - (int)runModalForDirectory:(NSString *)path file:(NSString *)name;
  66. - (int)runModal;
  67. - (NSString *)filename;
  68. - (NSString *)directory;
  69. - setDirectory:(NSString *)path;
  70. - setPrompt:(NSString *)prompt;
  71. - setTitle:(NSString *)title;
  72. - (NSString *)requiredFileType;
  73. - setRequiredFileType:(NSString *)type;
  74. - setTreatsFilePackagesAsDirectories:(BOOL)flag;
  75. - (BOOL)doesTreatFilePackagesAsDirectories;
  76. - accessoryView;
  77. - setAccessoryView:aView;
  78. - selectText:sender;
  79. - textDidEnd:textObject endChar:(unsigned short)endChar;
  80. - textDidGetKeys:textObject isEmpty:(BOOL)flag;
  81. - (BOOL)performKeyEquivalent:(NSEvent *)theEvent;
  82. - setDelegate:anObject;
  83.  
  84. @end
  85.  
  86. @interface NSObject(SavePanelDelegate)
  87. - (BOOL)panelValidateFilenames:sender;
  88. - (BOOL)panel:sender filterFile:(NSString *)filename inDirectory:(NSString *)directory;
  89. - (int)panel:sender compareFilenames:(NSString *)file1 :(NSString *)file2 checkCase:(BOOL)caseSensitive;
  90. @end
  91.