# HG changeset patch
# User Chris Cannam
# Date 1228321547 0
# Node ID e75f15c9ea1169c232922806b3465269ee9539ac
# Parent  035d62c4cddf3e78e974d86d075dab017eb41754
* Fix failure to include audio files in default open-file dialog invoked
  from toolbar button!
* Some adjustments to vertical scale presentation in colour 3d plot with
  a lot of vertical bins

diff -r 035d62c4cddf -r e75f15c9ea11 layer/Colour3DPlotLayer.cpp
--- a/layer/Colour3DPlotLayer.cpp	Tue Dec 02 17:17:25 2008 +0000
+++ b/layer/Colour3DPlotLayer.cpp	Wed Dec 03 16:25:47 2008 +0000
@@ -559,7 +559,7 @@
 
     QFont tf = paint.font();
     if (paint.fontMetrics().height() >= binHeight) {
-        tf.setPixelSize(binHeight > 4 ? binHeight - 2 : 2);
+        tf.setPixelSize(binHeight > 7 ? binHeight - 2 : 5);
         paint.setFont(tf);
     }
 
@@ -581,6 +581,13 @@
 
 	paint.drawLine(cw, y0, w, y0);
 
+        if (step > 1) {
+            paint.drawLine(w - 1, y0 - (step * binHeight) + 1,
+                           w - 1, y0 - binHeight - 1);
+            paint.drawLine(w - 2, y0 - (step * binHeight) + 1,
+                           w - 2, y0 - binHeight - 2);
+        }
+
 	int cy = int(y0 - (step * binHeight)/2);
 	int ty = cy + paint.fontMetrics().ascent()/2;
 
diff -r 035d62c4cddf -r e75f15c9ea11 widgets/FileFinder.cpp
--- a/widgets/FileFinder.cpp	Tue Dec 02 17:17:25 2008 +0000
+++ b/widgets/FileFinder.cpp	Wed Dec 03 16:25:47 2008 +0000
@@ -90,7 +90,7 @@
 
     case SessionOrAudioFile:
         settingsKey = "lastpath";
-        filter = tr("All supported files (*.sv %1)\nSonic Visualiser session files (*.sv)\nRDF files (%1)\nAudio files (%2)\nAll files (*.*)")
+        filter = tr("All supported files (*.sv %1 %2)\nSonic Visualiser session files (*.sv)\nAudio files (%2)\nRDF files (%1)\nAll files (*.*)")
             .arg(RDFImporter::getKnownExtensions())
             .arg(AudioFileReaderFactory::getKnownExtensions());
         break;