Fix range checks in WaveformWidgetFactory.
Move waveform preferences to a standalone preference page. Fixes Bug #1014258.