# HG changeset patch # User Chris Cannam # Date 1183388314 0 # Node ID 21c7152ddba8d444eb49f10a58f36d12ba315211 # Parent bbe57afe9d7dc7c96d322c1b8588ebe15d281715 * 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 diff -r bbe57afe9d7d -r 21c7152ddba8 view/Pane.cpp --- 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) { diff -r bbe57afe9d7d -r 21c7152ddba8 view/Pane.h --- 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);