comparison 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
comparison
equal deleted inserted replaced
337:a6fab10ff9e6 384:6f6ab834449d
26 { 26 {
27 public: 27 public:
28 Point(long frame, QString label); 28 Point(long frame, QString label);
29 Point(long frame, float value, QString label); 29 Point(long frame, float value, QString label);
30 Point(long frame, float value, size_t duration, QString label); 30 Point(long frame, float value, size_t duration, QString label);
31 Point(long frame, float value, size_t duration, float level, QString label);
31 Point(const Point &point); 32 Point(const Point &point);
32 Point &operator=(const Point &point); 33 Point &operator=(const Point &point);
33 34
34 bool haveFrame() const; 35 bool haveFrame() const;
35 long getFrame() const; 36 long getFrame() const;
41 size_t getDuration() const; 42 size_t getDuration() const;
42 43
43 bool haveLabel() const; 44 bool haveLabel() const;
44 QString getLabel() const; 45 QString getLabel() const;
45 46
47 bool haveLevel() const;
48 float getLevel() const;
49
50 bool haveReferenceFrame() const;
51 bool referenceFrameDiffers() const; // from point frame
52
53 long getReferenceFrame() const;
54 void setReferenceFrame(long);
55
46 private: 56 private:
47 bool m_haveFrame; 57 bool m_haveFrame;
48 long m_frame; 58 long m_frame;
49 bool m_haveValue; 59 bool m_haveValue;
50 float m_value; 60 float m_value;
51 bool m_haveDuration; 61 bool m_haveDuration;
52 size_t m_duration; 62 size_t m_duration;
53 bool m_haveLabel; 63 bool m_haveLabel;
54 QString m_label; 64 QString m_label;
65 bool m_haveLevel;
66 float m_level;
67 bool m_haveReferenceFrame;
68 long m_referenceFrame;
55 }; 69 };
56 70
57 Clipboard(); 71 Clipboard();
58 ~Clipboard(); 72 ~Clipboard();
59 73
63 bool empty() const; 77 bool empty() const;
64 const PointList &getPoints() const; 78 const PointList &getPoints() const;
65 void setPoints(const PointList &points); 79 void setPoints(const PointList &points);
66 void addPoint(const Point &point); 80 void addPoint(const Point &point);
67 81
82 bool haveReferenceFrames() const;
83 bool referenceFramesDiffer() const;
84
68 protected: 85 protected:
69 PointList m_points; 86 PointList m_points;
70 }; 87 };
71 88
72 #endif 89 #endif