home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / BPM / CounterView.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.1 KB  |  45 lines

  1. //        Written by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  2. //                Version 1.0.  All rights reserved.
  3. //
  4. //        This notice may not be removed from this source code.
  5. //
  6. //    This object is included in the MiscKit by permission from the author
  7. //    and its use is governed by the MiscKit license, found in the file
  8. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  9. //    for a list of all applicable permissions and restrictions.
  10. //    
  11.  
  12. #import <appkit/appkit.h>
  13. #import <misckit/misckit.h>
  14.  
  15. @interface CounterView:View
  16. {
  17.     id    beatsPerMeasure;
  18.     id    beatsPerMinute;
  19.     id    measuresPerMinute;
  20.     id    secondsElapsed;
  21.     MiscStopwatch *counter;
  22.     int beatsCounted;
  23.     id clearButton;
  24.     id startButton;
  25.     id stopButton;
  26.     id tapButton;
  27.     BOOL running;
  28. }
  29.  
  30. - initFrame:(const NXRect *)frm;
  31. - drawSelf:(NXRect *)rects :(int)rectCount;
  32. - keyDown:(NXEvent *)myevent;
  33. - mouseDown:(NXEvent *)event;
  34. - reset;
  35. - clear:sender;
  36. - start:sender;
  37. - stop:sender;
  38. - tap:sender;
  39. - (MiscStopwatch *)counter;
  40. - enableButtons:(BOOL)cb :(BOOL)sb :(BOOL)sb2 :(BOOL)tb;
  41. - (BOOL)acceptsFirstMouse;
  42. - (BOOL)acceptsFirstResponder;
  43.  
  44. @end
  45.