changeset 276:21c7152ddba8

* attempt to ensure zoom-to-fit actually makes things fit (not obscured by the scale) -- not working * attempt to add vertical scrollbar optionally in main window -- not working -- no time to fix now
author Chris Cannam
date Mon, 02 Jul 2007 14:58:34 +0000
parents bbe57afe9d7d
children 8acd30ed735c
files view/Pane.cpp view/Pane.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/view/Pane.cpp	Mon Jul 02 14:57:01 2007 +0000
+++ b/view/Pane.cpp	Mon Jul 02 14:58:34 2007 +0000
@@ -466,6 +466,13 @@
     paint.end();
 }
 
+size_t
+Pane::getVerticalScaleWidth() const
+{
+    if (m_scaleWidth > 0) return m_scaleWidth;
+    else return 0;
+}
+
 void
 Pane::drawVerticalScale(QRect r, Layer *topLayer, QPainter &paint)
 {
--- a/view/Pane.h	Mon Jul 02 14:57:01 2007 +0000
+++ b/view/Pane.h	Mon Jul 02 14:58:34 2007 +0000
@@ -50,6 +50,8 @@
 
     virtual size_t getFirstVisibleFrame() const;
 
+    virtual size_t getVerticalScaleWidth() const;
+
     virtual QImage *toNewImage(size_t f0, size_t f1);
     virtual QImage *toNewImage() { return View::toNewImage(); }
     virtual QSize getImageSize(size_t f0, size_t f1);