Mercurial > hg > svcore
diff base/Clipboard.h @ 340:516819f2b97b
* Add Erase tool and mode
* Add icons for Normalize buttons in property boxes, and for Show Peaks
* Add support for velocity in notes -- not yet reflected in display or
editable in the note edit dialog, but they are imported from MIDI,
played, and exported
* Begin work on making pastes align pasted times (subtler than I thought)
author | Chris Cannam |
---|---|
date | Fri, 23 Nov 2007 16:48:23 +0000 |
parents | 47fd14e29813 |
children | 007b01b971a6 94fc0591ea43 |
line wrap: on
line diff
--- a/base/Clipboard.h Thu Nov 22 14:17:19 2007 +0000 +++ b/base/Clipboard.h Fri Nov 23 16:48:23 2007 +0000 @@ -28,6 +28,7 @@ Point(long frame, QString label); Point(long frame, float value, QString label); Point(long frame, float value, size_t duration, QString label); + Point(long frame, float value, size_t duration, float level, QString label); Point(const Point &point); Point &operator=(const Point &point); @@ -43,6 +44,13 @@ bool haveLabel() const; QString getLabel() const; + bool haveLevel() const; + float getLevel() const; + + bool haveReferenceFrame() const; + long getReferenceFrame() const; + void setReferenceFrame(long); + private: bool m_haveFrame; long m_frame; @@ -52,6 +60,10 @@ size_t m_duration; bool m_haveLabel; QString m_label; + bool m_haveLevel; + float m_level; + bool m_haveReferenceFrame; + long m_referenceFrame; }; Clipboard(); @@ -65,6 +77,8 @@ void setPoints(const PointList &points); void addPoint(const Point &point); + bool haveReferenceFrames() const; + protected: PointList m_points; };