diff base/Clipboard.h @ 384:6f6ab834449d spectrogram-cache-rejig

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents 47fd14e29813
children
line wrap: on
line diff
--- a/base/Clipboard.h	Thu Nov 15 14:03:56 2007 +0000
+++ b/base/Clipboard.h	Wed Feb 27 11:59:42 2008 +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,15 @@
         bool haveLabel() const;
         QString getLabel() const;
 
+        bool haveLevel() const;
+        float getLevel() const;
+
+        bool haveReferenceFrame() const;
+        bool referenceFrameDiffers() const; // from point frame
+
+        long getReferenceFrame() const;
+        void setReferenceFrame(long);
+
     private:
         bool m_haveFrame;
         long m_frame;
@@ -52,6 +62,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 +79,9 @@
     void setPoints(const PointList &points);
     void addPoint(const Point &point);
 
+    bool haveReferenceFrames() const;
+    bool referenceFramesDiffer() const;
+
 protected:
     PointList m_points;
 };