home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / SliderDualActing / SliderCellFine.h < prev    next >
Text File  |  1993-01-19  |  1KB  |  51 lines

  1. /*************************************************************************
  2. *        Copyright (c) 1989,1990 Stone Design Corp.  All rights reserved. 
  3. ***************************************************************************/
  4.  
  5.  
  6. #import <appkit/SliderCell.h>
  7.  
  8. @interface SliderCellFine:SliderCell
  9.     id  textPal;            // cached for speed & archive
  10.  
  11.     double altStep;            // these could be doubles
  12.     double defaultValue;
  13.     double defaultMax;
  14.     double defaultMin;
  15.     struct _scfFlags {
  16.         unsigned int isWhole:1;            /* whether integer format */
  17.         unsigned int isDecimal:1;        /* whether currently in decimal mode */
  18.         unsigned int allowLower:1;        /* whether can go lower than min */
  19.         unsigned int allowHigher:1;        /* whether can go higher than max */
  20.         unsigned int sendContinuously:1;/* whether we send action always */
  21.         unsigned int PADDING:11;        /* pad to 16 */
  22.     } scfFlags;
  23. }
  24.  
  25. + new;      
  26.  
  27. - increment;
  28. - decrement;
  29.  
  30. - (double)checkValue:(double)val;
  31. - (BOOL) isDecimal;
  32.  
  33. - (BOOL)continueTracking:(const NXPoint *)lastPoint   // here is the work!
  34.               at:(const NXPoint *)currentPoint
  35.               inView:controlView;
  36.               
  37. - setAltStep:(double)step whole:(BOOL)flag default:(double)val;
  38. - setMax:(double)max allowHigher:(BOOL)hi min:(double)min allowLower:(BOOL)lo;
  39.  
  40. // archive methods: 
  41.   
  42. - read:(NXTypedStream *)stream;
  43. - write:(NXTypedStream *)stream;
  44.  
  45. - _setAlwaysSendUpAction:(BOOL)flag;
  46.  
  47. - setDefault:(double) def;
  48. - setTextPal:anObject;
  49. @end
  50.