# HG changeset patch # User Chris Cannam # Date 1202132111 0 # Node ID 007b01b971a66293a12b34b2e63c079874a93849 # Parent bef4604d82fae0d22e3d22f737a48933adc2e785 * function rename & notes diff -r bef4604d82fa -r 007b01b971a6 base/Clipboard.cpp --- a/base/Clipboard.cpp Tue Jan 29 19:54:54 2008 +0000 +++ b/base/Clipboard.cpp Mon Feb 04 13:35:11 2008 +0000 @@ -24,7 +24,7 @@ m_label(label), m_haveLevel(false), m_level(0.f), - m_haveReferenceFrame(false), + m_referenceFramesDiffer(false), m_referenceFrame(frame) { } @@ -39,7 +39,7 @@ m_label(label), m_haveLevel(false), m_level(0.f), - m_haveReferenceFrame(false), + m_referenceFramesDiffer(false), m_referenceFrame(frame) { } @@ -55,7 +55,7 @@ m_label(label), m_haveLevel(false), m_level(0.f), - m_haveReferenceFrame(false), + m_referenceFramesDiffer(false), m_referenceFrame(frame) { } @@ -71,7 +71,7 @@ m_label(label), m_haveLevel(true), m_level(level), - m_haveReferenceFrame(false), + m_referenceFramesDiffer(false), m_referenceFrame(frame) { } @@ -87,7 +87,7 @@ m_label(point.m_label), m_haveLevel(point.m_haveLevel), m_level(point.m_level), - m_haveReferenceFrame(point.m_haveReferenceFrame), + m_referenceFramesDiffer(point.m_referenceFramesDiffer), m_referenceFrame(point.m_referenceFrame) { } @@ -106,7 +106,7 @@ m_label = point.m_label; m_haveLevel = point.m_haveLevel; m_level = point.m_level; - m_haveReferenceFrame = point.m_haveReferenceFrame; + m_referenceFramesDiffer = point.m_referenceFramesDiffer; m_referenceFrame = point.m_referenceFrame; return *this; } @@ -172,9 +172,9 @@ } bool -Clipboard::Point::haveReferenceFrame() const +Clipboard::Point::referenceFramesDiffer() const { - return m_haveReferenceFrame; + return m_referenceFramesDiffer; } long @@ -186,7 +186,7 @@ void Clipboard::Point::setReferenceFrame(long f) { - if (f != m_frame) m_haveReferenceFrame = true; + if (f != m_frame) m_referenceFramesDiffer = true; m_referenceFrame = f; } @@ -224,11 +224,11 @@ } bool -Clipboard::haveReferenceFrames() const +Clipboard::referenceFramesDiffer() const { for (PointList::const_iterator i = m_points.begin(); i != m_points.end(); ++i) { - if (i->haveReferenceFrame()) return true; + if (i->referenceFramesDiffer()) return true; } return false; } diff -r bef4604d82fa -r 007b01b971a6 base/Clipboard.h --- a/base/Clipboard.h Tue Jan 29 19:54:54 2008 +0000 +++ b/base/Clipboard.h Mon Feb 04 13:35:11 2008 +0000 @@ -47,7 +47,7 @@ bool haveLevel() const; float getLevel() const; - bool haveReferenceFrame() const; + bool referenceFramesDiffer() const; long getReferenceFrame() const; void setReferenceFrame(long); @@ -62,7 +62,7 @@ QString m_label; bool m_haveLevel; float m_level; - bool m_haveReferenceFrame; + bool m_referenceFramesDiffer; long m_referenceFrame; }; @@ -77,7 +77,7 @@ void setPoints(const PointList &points); void addPoint(const Point &point); - bool haveReferenceFrames() const; + bool referenceFramesDiffer() const; protected: PointList m_points;