home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscClipTextPalette / MiscClipText.subproj / MiscClipTextFieldCell.h < prev    next >
Encoding:
Text File  |  1995-07-13  |  1.4 KB  |  67 lines

  1. //
  2. //    MiscClipTextFieldCell.h -- a cell for displaying long string values
  3. //        Written and Copyright (c) 1995 by Balazs Pataki. 
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <appkit/TextFieldCell.h>
  15.  
  16. @interface MiscClipTextFieldCell : TextFieldCell
  17.  
  18. {    
  19.     id        delegate;
  20.     
  21.     id        fullString;
  22.     id        clipper;
  23.     id        delimiters;
  24.     
  25.     BOOL    clipOnRight;
  26.     BOOL    clipEnabled;
  27. }
  28.  
  29. - init;
  30. - initTextCell:(const char*)aString;
  31. - copyFromZone:(NXZone *)zone;
  32.  
  33. - free;
  34.  
  35. - setDelegate:anObject;
  36.  
  37. - setClipOnRight:(BOOL)flag;
  38. - setClipperString:(const char*)aString;
  39. - setClipDelimiters:(const char*)delimiters;
  40. - setClipEnabled:(BOOL)flag;
  41.  
  42. - setStringValue:(const char *)aString;
  43. - takeStringValueFrom:sender;
  44. - resetStringValue:sender;
  45.  
  46. - (const char*) fullStringValue;
  47. - clipper;
  48. - delimiters;
  49. - delegate;
  50. - (BOOL) isWrapped;
  51. - (BOOL) isClipEnabled;
  52. - (BOOL) doesClipOnRight;
  53.  
  54. - write:(NXTypedStream *)stream;
  55. - read:(NXTypedStream *)stream;
  56. - awake;
  57.  
  58. @end
  59.  
  60. @interface Object (MiscClipDelegate)
  61. - stringWillBeClipped:theString;
  62. @end
  63.  
  64. @interface MiscClipTextFieldCell(IBStuff)
  65. - (const char *)getInspectorClassName;
  66. @end
  67.