comparison 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
comparison
equal deleted inserted replaced
339:ba30f4a3e3be 340:516819f2b97b
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 long getReferenceFrame() const;
52 void setReferenceFrame(long);
53
46 private: 54 private:
47 bool m_haveFrame; 55 bool m_haveFrame;
48 long m_frame; 56 long m_frame;
49 bool m_haveValue; 57 bool m_haveValue;
50 float m_value; 58 float m_value;
51 bool m_haveDuration; 59 bool m_haveDuration;
52 size_t m_duration; 60 size_t m_duration;
53 bool m_haveLabel; 61 bool m_haveLabel;
54 QString m_label; 62 QString m_label;
63 bool m_haveLevel;
64 float m_level;
65 bool m_haveReferenceFrame;
66 long m_referenceFrame;
55 }; 67 };
56 68
57 Clipboard(); 69 Clipboard();
58 ~Clipboard(); 70 ~Clipboard();
59 71
63 bool empty() const; 75 bool empty() const;
64 const PointList &getPoints() const; 76 const PointList &getPoints() const;
65 void setPoints(const PointList &points); 77 void setPoints(const PointList &points);
66 void addPoint(const Point &point); 78 void addPoint(const Point &point);
67 79
80 bool haveReferenceFrames() const;
81
68 protected: 82 protected:
69 PointList m_points; 83 PointList m_points;
70 }; 84 };
71 85
72 #endif 86 #endif