home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Palettes / CircularSlider / CircularSlider.subproj / CircularSliderCell.h < prev    next >
Encoding:
Text File  |  1993-02-03  |  2.0 KB  |  74 lines

  1. /*
  2.  *    Filename:    CircularSliderCell.h 
  3.  *    Created :    Sun Oct 18 16:56:22 1992 
  4.  *    Author  :    Vince DeMarco
  5.  *        <vince@whatnxt.cuc.ab.ca>
  6.  *    LastEditDate was "Sun Oct 25 13:47:43 1992"
  7.  */
  8.  
  9.  
  10. #import <appkit/ActionCell.h>
  11.  
  12. @interface CircularSliderCell:ActionCell
  13. {
  14.     float   value;             /* Current Value of Cell */
  15.     float   maxValue;          /* Maximum Value of Cell */
  16.     float   minValue;          /* Mimimum Value of Cell */
  17.     BOOL    pieChart;          /* Display CircularSlider as a pieChart */
  18.     BOOL    jumpToMousePoint;  /* Have the CircularSlider jump to the first mouse
  19.                 * down event (YES) or have the CircularSlider object
  20.                 * move in relation to the mouse
  21.                 */
  22.     BOOL    hidden;            /* Is the Cell Hidden? */
  23.     float   currentang;        /* Current angle being displayed (ranges from 0 to 360)
  24.                 * This is usefull in subclasses of CircularSliderCell
  25.                 */
  26.  
  27.     float   radius;            /* The radius of the Cell */
  28.     NXPoint center;            /* The center point of the Cell, x,y coordinates */
  29.  
  30. @private                       /* Private variables */
  31.     float   deltaAngle;
  32.     float   scale_value;
  33.     float   scalex;
  34.     float   scaley;
  35.     BOOL    imFlipped;
  36. }
  37.  
  38. + (BOOL)prefersTrackingUntilMouseUp;
  39. - init;
  40. - drawSelf:(const NXRect *)cellFrame inView:controlView;
  41. - drawInside:(const NXRect *)cellFrame inView:aView; 
  42.  
  43. - (BOOL)startTrackingAt:(const NXPoint *)startPoint inView:aView;
  44. - (BOOL)trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)cellFrame ofView:aView;
  45.  
  46. - highlight:(const NXRect *)cellFrame inView:aView lit:(BOOL)flag;
  47.  
  48. - (float)floatValue;
  49. - (double)doubleValue;
  50. - (int)intValue;
  51.  
  52. - setDoubleValue:(double)value;
  53. - setFloatValue:(float)value;
  54. - setIntValue:(int)value;
  55.  
  56. - (float)minValue;
  57. - setMinValue:(float)aFloat;
  58. - (float)maxValue;
  59. - setMaxValue:(float)aFloat;
  60.  
  61. - setDrawAsPieChart:(BOOL)aBOOL;
  62. - (BOOL)drawAsPieChart;
  63.  
  64. - setJumpToMousePoint:(BOOL)aBOOL;
  65. - (BOOL)jumpToMousePoint;
  66.  
  67. - setHidden:(BOOL)aBOOL;
  68. - (BOOL)hidden;
  69.  
  70. - read:(NXTypedStream *)stream;
  71. - write:(NXTypedStream *)stream;
  72.  
  73. @end
  74.