Mercurial > hg > svgui
comparison view/Pane.cpp @ 145:4d132a06db9b
* Add mono timestretch toggle button; some more work on getting blocksize etc
parameters through to plugins
author | Chris Cannam |
---|---|
date | Mon, 18 Sep 2006 16:43:17 +0000 |
parents | 10a82b2bbb8b |
children | b1a3a9400284 |
comparison
equal
deleted
inserted
replaced
144:d1e5cd4574a0 | 145:4d132a06db9b |
---|---|
978 //the ranges returned differ (likewise). Then, we know | 978 //the ranges returned differ (likewise). Then, we know |
979 //the height of the layer, so... | 979 //the height of the layer, so... |
980 | 980 |
981 //!!! this should have its own function | 981 //!!! this should have its own function |
982 | 982 |
983 //!!! want to do some cleverness to avoid dragging left/right | |
984 // at the same time as up/down when the user moves the mouse | |
985 // diagonally. | |
986 // e.g. have horizontal and vertical thresholds and a series | |
987 // of states: unknown, constrained, free | |
988 // | |
989 // -> when the mouse first moves we're in unknown state: | |
990 // what then? the thing we really want to avoid is moving | |
991 // a tiny amount in the wrong direction, because usually | |
992 // the problem is that to move at all is expensive -- so what | |
993 // do we do? | |
994 // | |
995 // -> when it's moved more than say 10px in h or v | |
996 // direction we lock into h or v constrained mode. If it | |
997 // moves more than say 20px in the other direction | |
998 // subsequently, then we switch into free mode. | |
999 | |
983 Layer *layer = 0; | 1000 Layer *layer = 0; |
984 if (getLayerCount() > 0) layer = getLayer(getLayerCount() - 1); | 1001 if (getLayerCount() > 0) layer = getLayer(getLayerCount() - 1); |
985 | 1002 |
986 if (layer) { | 1003 if (layer) { |
987 | 1004 |