Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 188:dd573e090eed
* Add range input dialog
* Make Panner support middle-click/ctrl-left-click to reset and emit
doubleClicked when doubleClicked instead of resetting
* Use range input dialog to enter new values for panner on double-click
author | Chris Cannam |
---|---|
date | Fri, 12 Jan 2007 21:52:56 +0000 |
parents | e7cf6044c2a0 |
children | 57c2350a8c40 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Fri Jan 12 14:49:18 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Fri Jan 12 21:52:56 2007 +0000 @@ -1894,6 +1894,10 @@ x1 = v->width(); } + //!!! This width should really depend on how fast the machine is + //at redrawing the spectrogram. We could fairly easily time that, + //in this function, and adjust accordingly. The following is + //probably about as small as the block width should go. int paintBlockWidth = (300000 / zoomLevel); if (paintBlockWidth < 20) paintBlockWidth = 20;