diff view/View.h @ 313:1517c76cd678

* Make View getStartFrame etc non-virtual for easier inlining * Make getStartFrame use getFrameForX instead of vice versa
author Chris Cannam
date Tue, 16 Oct 2007 15:13:41 +0000
parents 5636eeacc467
children c30a7cd29f4a
line wrap: on
line diff
--- a/view/View.h	Wed Oct 10 15:18:02 2007 +0000
+++ b/view/View.h	Tue Oct 16 15:13:41 2007 +0000
@@ -61,13 +61,13 @@
      * This is a calculated value based on the centre-frame, widget
      * width and zoom level.  The result may be negative.
      */
-    virtual long getStartFrame() const;
+    long getStartFrame() const;
 
     /**
      * Set the widget pan based on the given first visible frame.  The
      * frame value may be negative.
      */
-    virtual void setStartFrame(long);
+    void setStartFrame(long);
 
     /**
      * Return the centre frame of the visible widget.  This is an
@@ -75,19 +75,19 @@
      * frame values (start, end) are calculated from this based on the
      * zoom and other factors.
      */
-    virtual size_t getCentreFrame() const { return m_centreFrame; }
+    size_t getCentreFrame() const { return m_centreFrame; }
 
     /**
      * Set the centre frame of the visible widget.
      */
-    virtual void setCentreFrame(size_t f) { setCentreFrame(f, true); }
+    void setCentreFrame(size_t f) { setCentreFrame(f, true); }
 
     /**
      * Retrieve the last visible sample frame on the widget.
      * This is a calculated value based on the centre-frame, widget
      * width and zoom level.
      */
-    virtual size_t getEndFrame() const;
+    size_t getEndFrame() const;
 
     /**
      * Return the pixel x-coordinate corresponding to a given sample