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

  1. //
  2. //    MiscValueCell.h -- a TextFieldCell subclass that adds arrow buttons
  3. //       Written by David Fedchenko. Copyright 1994 by David Fedchenko.
  4. //                    Version 2.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/appkit.h>
  15.  
  16. @interface MiscValueCell:TextFieldCell
  17.     {
  18.     id      (idUp);
  19.     id      (idDown);
  20.     
  21.     id      stringList;
  22.     
  23.     double  actualValue;
  24.     double  limitMinValue;
  25.     double  limitMaxValue;
  26.     double  limitMinBound;
  27.     double  limitMaxBound;
  28.     double  sizeStep;
  29.     double  sizeAltStep;
  30.     BOOL    fExpandLow;
  31.     BOOL    fExpandHigh;
  32.     
  33.     BOOL    fLoop;
  34.     BOOL    fValidRect;
  35.     int     fAltKeyDown;
  36.     NXRect  rectFrame;
  37.     }
  38.  
  39. - initTextCell:(const char *)sz;
  40. - copyFromZone:(NXZone *)zone;
  41.  
  42. - drawInside:(const NXRect *)aRect inView:controlView;
  43. - drawSelf:(const NXRect *)cellFrame inView:controlView;
  44. - resetCursorRect:(const NXRect *)cellFrame inView:aView;
  45.  
  46. - calcCellSize:(NXSize *)theSize inRect:(const NXRect *)aRect;
  47. - edit:(const NXRect *)aRect inView:controlView editor:textObj
  48.     delegate:anObject event:(NXEvent *)theEvent;
  49. - getDrawRect:(NXRect *)theRect;
  50. - getTitleRect:(NXRect *)theRect;
  51. - highlight:(const NXRect *)cellFrame inView:aView lit:(BOOL)flag;
  52. - select:(const NXRect *)aRect inView:aView editor:aTextObject
  53.     delegate:anObject start:(int)selStart length:(int)selLength;
  54. - setBezeled:(BOOL)flag;
  55. - setBordered:(BOOL)flag;
  56. - setEditable:(BOOL)flag;
  57.  
  58. - setDoubleValue:(double)aDouble;
  59. - setFloatValue:(float)aFloat;
  60. - setIntValue:(int)anInt;
  61. - setStringValue:(const char *)aString;
  62. -(int) intValue;
  63. -(float) floatValue;
  64. -(double) doubleValue;
  65.  
  66. - increment:sender;
  67. - decrement:sender;
  68.  
  69. - setMinValue:(double)value;
  70. - setMaxValue:(double)value;
  71. - setMinBoundary:(double)value;
  72. - setMaxBoundary:(double)value;
  73. -(double) minValue;
  74. -(double) maxValue;
  75. -(double) minBoundary;
  76. -(double) maxBoundary;
  77. - setStepSize:(double)size;
  78. - setAltStepSize:(double)size;
  79. -(double) stepSize;
  80. -(double) altStepSize;
  81. - setExpandMin:(BOOL)flag;
  82. - setExpandMax:(BOOL)flag;
  83. -(BOOL) expandMin;
  84. -(BOOL) expandMax;
  85.  
  86. - setStringList:anObject;
  87. - stringList;
  88.  
  89. - write:(NXTypedStream *)stream;
  90. - read:(NXTypedStream *)stream;
  91. - awake;
  92. - awakeFromNib;
  93.  
  94. @end
  95.  
  96. @interface Object(MiscValueDelegate)
  97. -(const char *) stringAt:(int)item;
  98. @end
  99.