Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 10:8f5b812baaee
* Hook up SV file i/o. You can now save and load sessions.
Some problems -- gain is not reloaded correctly for waveforms,
reloaded panes are not properly reconnected to the panner, and
no doubt plenty of others.
author | Chris Cannam |
---|---|
date | Tue, 17 Jan 2006 17:45:55 +0000 |
parents | 02aaea1ffaf7 |
children | 2d5005f2b3d9 |
comparison
equal
deleted
inserted
replaced
9:561be41ad083 | 10:8f5b812baaee |
---|---|
95 int | 95 int |
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 | |
101 int throwaway; | |
102 if (!min) min = &throwaway; | |
103 if (!max) max = &throwaway; | |
100 | 104 |
101 if (name == tr("Gain")) { | 105 if (name == tr("Gain")) { |
102 | 106 |
103 *min = -50; | 107 *min = -50; |
104 *max = 50; | 108 *max = 50; |