home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / Palettes / CircularSliderPalette / CircularSlider.h next >
Text File  |  1992-10-01  |  2KB  |  70 lines

  1. /*
  2.  *    Filename:    CircularSlider.h 
  3.  *    Created :    Sat Aug 24 21:25:44 1991
  4.  *    Author  :    Vince DeMarco
  5.  *        <vince@whatnxt.cuc.ab.ca>
  6.  * 
  7.  *    Version 1.0.1
  8.  */
  9.  
  10. /* Generated by Interface Builder */
  11.  
  12. #import <appkit/Control.h>
  13.  
  14. @interface CircularSlider:Control
  15. {
  16.     float currentang;
  17.     float maxang;
  18.     float radius;
  19.     float x,y;
  20.     struct _CircFlags {
  21.     unsigned int       continuous:1;
  22.         unsigned int       _RESERVED:15;
  23.     } CircFlags;
  24.  
  25.     id    _target;
  26.     SEL   _action;
  27. }
  28.  
  29. // if you disable the slider the mouseDown events will be ignore and
  30. // the slider will not sit on a raised background. 
  31. // this is done because if the slider is disabled then i assume that the programer will
  32. // be using it just to indicate how much more the user has to wait before whatever
  33. // is finished
  34.  
  35. // The rest of the methods below here are almost exactly the same a those for the
  36. // Slider Object.
  37.  
  38. - initFrame:(NXRect *)nf;
  39.  
  40. - setContinuous:(BOOL)flag;   
  41. - (BOOL)isContinuous;
  42.  
  43. - (float)floatValue;
  44. - (double)doubleValue;
  45. - (int)intValue;
  46. - setDoubleValue:(double)value;
  47. - setFloatValue:(float)value;
  48. - setIntValue:(int)value;
  49.  
  50. - setTheMaxValue:(float)afloat;
  51. - (float)theMaxValue;
  52.  
  53. //- takeDoubleValueFrom:sender;
  54. //- takeFloatValueFrom:sender;
  55. //- takeIntValueFrom:sender;
  56.  
  57. - setAction:(SEL)aSelector;
  58. - setTarget:anObject;
  59. - target;
  60. - (SEL)action;
  61.  
  62. - drawSelf:(const NXRect *)rects : (int)count;
  63. - mouseDown:(NXEvent *)theEvent;
  64.  
  65. - read:(NXTypedStream *)stream;
  66. - write:(NXTypedStream *)stream;
  67.  
  68. - (const char *)getInspectorClassName;
  69. @end
  70.