changeset 369:007b01b971a6

* function rename & notes
author Chris Cannam
date Mon, 04 Feb 2008 13:35:11 +0000
parents bef4604d82fa
children e73a1a1e8f24
files base/Clipboard.cpp base/Clipboard.h
diffstat 2 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
--- 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;