home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Palettes / MiscValueFieldPalette / MiscSliderField.subproj / MiscSliderField.h < prev    next >
Encoding:
Text File  |  1994-02-21  |  1.3 KB  |  50 lines

  1. //
  2. //    MiscSliderField.h -- a TextField subclass that specializes in using
  3. //                           the MiscSliderCell.
  4. //       Written by David Fedchenko. Copyright 1994 by David Fedchenko.
  5. //                    Version 1.0  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 author
  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. #import <appkit/appkit.h>
  16.  
  17. @interface MiscSliderField:TextField
  18.     {
  19.     id stringList;
  20.     }
  21.  
  22. + initialize;
  23. + setCellClass:classId;
  24. - initFrame:(const NXRect *)frameRect;
  25.  
  26. // the methods to communicate with the cell
  27. - setMinValue:(double)value;
  28. - setMaxValue:(double)value;
  29. - setMinBoundary:(double)value;
  30. - setMaxBoundary:(double)value;
  31. -(double) minValue;
  32. -(double) maxValue;
  33. -(double) minBoundary;
  34. -(double) maxBoundary;
  35. - setExpandMin:(BOOL)flag;
  36. - setExpandMax:(BOOL)flag;
  37. -(BOOL) expandMin;
  38. -(BOOL) expandMax;
  39. - setPosition:(int)where;
  40. - setSplit:(int)percent;
  41. - setIntegerOnly:(BOOL)flag;
  42. -(int) position;
  43. -(int) split;
  44. -(BOOL) integerOnly;
  45.  
  46. - setStringList:anObject;
  47. - stringList;
  48.  
  49. @end
  50.