Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 56:fedaf3ffe80a
* Add menu for re-adding existing layers
* Fix layer tree window so that it at least approximates correct
* Add bundled operations in command history, for use with things like
multiple consecutive changes to a parameter value
* Disambiguate plugins that happen to have identical descriptions
* Add spectral centroid plugin (could use some parameters!)
* Some other fixes
| author | Chris Cannam |
|---|---|
| date | Fri, 17 Mar 2006 17:38:28 +0000 |
| parents | ad214997dddb |
| children | 01ab51f72e84 |
comparison
equal
deleted
inserted
replaced
| 55:128ebfeeebee | 56:fedaf3ffe80a |
|---|---|
| 96 WaveformLayer::getPropertyRangeAndValue(const PropertyName &name, | 96 WaveformLayer::getPropertyRangeAndValue(const PropertyName &name, |
| 97 int *min, int *max) const | 97 int *min, int *max) const |
| 98 { | 98 { |
| 99 int deft = 0; | 99 int deft = 0; |
| 100 | 100 |
| 101 int throwaway; | 101 int garbage0, garbage1; |
| 102 if (!min) min = &throwaway; | 102 if (!min) min = &garbage0; |
| 103 if (!max) max = &throwaway; | 103 if (!max) max = &garbage1; |
| 104 | 104 |
| 105 if (name == tr("Gain")) { | 105 if (name == tr("Gain")) { |
| 106 | 106 |
| 107 *min = -50; | 107 *min = -50; |
| 108 *max = 50; | 108 *max = 50; |
