home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / SoundApps / aa_Intel_Only / EnvelopeEd1.04b / Source / EnvelopeView.h < prev    next >
Encoding:
Text File  |  1994-09-24  |  2.2 KB  |  87 lines

  1. //////////////////////////////////////////////////////////////
  2. //
  3. // EnvelopeView.h -- Interface for the EnvelopeView class
  4. // Copyright 1991-94 Fernando Lopez Lezcano All Rights Reserved
  5. //
  6. //////////////////////////////////////////////////////////////
  7.  
  8. #import <appkit/View.h>
  9. #import "UserPath.h"
  10.  
  11. @interface EnvelopeView : View
  12. {
  13.     id theController;            // object which controls the envelope view
  14.     id theEnvelope;                // the envelope object being viewed
  15.     id theCross;                // crosshairs cursor
  16.     id theFilledCross;            // crosshairs plus knob cursor
  17.     
  18.     int selected;                // current highlighted point in envelope
  19.         float defaultSmooth;                    // default smoothing read from the defaults database
  20.     float envColour;            // colour to draw envelope with
  21.     
  22.     float xMax;                    // coordinate system limits
  23.     float xMin;
  24.     float yMax;
  25.     float yMin;
  26.     
  27.     float xSnap;                // Snap increments
  28.     float ySnap;
  29.     
  30.     UserPath *userPath;            // user path for drawing segments
  31.     
  32.     int showSmooth;                // show or not smoothing in envelopes
  33.     int drawSegments;                // draw or not segments between points
  34. }
  35.  
  36. - resetCursorRects;
  37. - initFrame:(const NXRect *)frameRect;
  38. - controllerIs:sender;
  39. - drawSelf:(NXRect *)rects :(int)rectCount;
  40. - (int) hitKnobAt:(NXPoint)p border:(float)delta;
  41. - (int) movePoint:(int)n to: (NXPoint)p;
  42. - mouseDown:(NXEvent *)event;
  43.  
  44. - highlight;
  45. - dim;
  46. - (BOOL) acceptsFirstResponder;
  47. - becomeFirstResponder;
  48. - resignFirstResponder;
  49.  
  50. - copy:id;
  51. - paste:id;
  52.  
  53. - setPointTo: (int)i;
  54. - nextPoint;
  55. - previousPoint;
  56. - setXAt: (int)point to: (float)coord;
  57. - setYAt: (int)point to: (float)coord;
  58. - setYrAt: (int)point to: (float)coord;
  59. - setSmoothAt: (int)point to: (float)val;
  60. - setXMinTo: (float)coord;
  61. - setXMaxTo: (float)coord;
  62. - setXLimitsTo: (float)min : (float)max;
  63. - setYMinTo: (float)coord;
  64. - setYMaxTo: (float)coord;
  65. - setXSnapTo: (float)coord;
  66. - setYSnapTo: (float)coord;
  67. - setStickyAt:(int)point To:(int) state;
  68. - setShowSmooth: (int)state;
  69. - setDrawSegments: (int)state;
  70. - scaleLimits;
  71. - (int)getPoint;
  72. - (float)getX:(int)i;
  73. - (float)getY:(int)i;
  74. - (float)getYr:(int)i;
  75. - (float)getSmoothing:(int)i;
  76. - (int)getSticky:(int)i;
  77. - (float)getXMax;
  78. - (float)getXMin;
  79. - (float)getYMax;
  80. - (float)getYMin;
  81. - (float)getXSnap;
  82. - (float)getYSnap;
  83. - (int)getShowSmooth;
  84. - (int)getDrawSegments;
  85.  
  86. @end
  87.