comparison 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
comparison
equal deleted inserted replaced
187:e7cf6044c2a0 188:dd573e090eed
1892 if (recreateWholePixmapCache) { 1892 if (recreateWholePixmapCache) {
1893 x0 = 0; 1893 x0 = 0;
1894 x1 = v->width(); 1894 x1 = v->width();
1895 } 1895 }
1896 1896
1897 //!!! This width should really depend on how fast the machine is
1898 //at redrawing the spectrogram. We could fairly easily time that,
1899 //in this function, and adjust accordingly. The following is
1900 //probably about as small as the block width should go.
1897 int paintBlockWidth = (300000 / zoomLevel); 1901 int paintBlockWidth = (300000 / zoomLevel);
1898 if (paintBlockWidth < 20) paintBlockWidth = 20; 1902 if (paintBlockWidth < 20) paintBlockWidth = 20;
1899 1903
1900 if (cache.validArea.width() > 0) { 1904 if (cache.validArea.width() > 0) {
1901 1905