home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Palettes / MiscProgressPalette / MiscProgressView.subproj / MiscProgressView.h < prev    next >
Encoding:
Text File  |  1993-11-08  |  1.5 KB  |  51 lines

  1. //
  2. //    MiscProgressView.h -- a simple view class for displaying progress
  3. //        Written originally by Don Yacktman (c) 1993 by James Heiser.
  4. //                Modified from an example in the NeXT documentation.
  5. //                This file is maintained by James Heiser, jheiser@adobe.com.
  6. //                Version 1.0.  All rights reserved.
  7. //
  8. //        This notice may not be removed from this source code.
  9. //
  10. //    This object is included in the MiscKit by permission from the author
  11. //    and its use is governed by the MiscKit license, found in the file
  12. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  13. //    for a list of all applicable permissions and restrictions.
  14. //    
  15.  
  16. #import <appkit/appkit.h>
  17.  
  18. #define MISC_PROGRESS_DEFAULTSTEPSIZE 5
  19. #define MISC_PROGRESS_MAXSIZE 100
  20.  
  21. @interface MiscProgressView:View
  22. {
  23.     int total, count, stepSize;
  24.     float ratio;
  25.     NXColor bg, fg, bd; // foreground, background, border colors
  26. }
  27.  
  28. - initFrame:(const NXRect *)frameRect;
  29. - renderBackground;
  30. - renderBar;
  31. - renderBorder;
  32. - drawSelf:(const NXRect *)rects :(int)rectCount;
  33. - setStepSize:(int)value;
  34. - (int)stepSize;
  35. - (NXColor)backgroundColor;
  36. - (NXColor)foregroundColor;
  37. - (NXColor)borderColor;
  38. - setBackgroundColor:(NXColor)color;
  39. - setForegroundColor:(NXColor)color;
  40. - setBorderColor:(NXColor)color;
  41. - setRatio:(float)newRatio;
  42. - takeIntValueFrom:sender;
  43. - increment:sender;
  44. - takeFloatValueFrom:sender;
  45. - (const char *)getInspectorClassName;
  46. - clear:sender;
  47. - read:(NXTypedStream *)stream;
  48. - write:(NXTypedStream *)stream;
  49.  
  50. @end
  51.