void usedChanged(ChannelID channel, bool used)
A spectrum has been enabled/disabled.
void magnitudeChanged(ChannelID channel, double magnitude)
A magnitude has been selected.
Definition: SpectrumDock.h:52
unsigned setUsed(ChannelID channel, bool used)
Enables/disables a channel.
Definition: SpectrumDock.cpp:105
QWidget * dockWidget
The main widget for the dock window.
Definition: SpectrumDock.h:50
QCheckBox * usedCheckBox
Enable/disable a specific channel.
Definition: SpectrumDock.h:53
QComboBox * magnitudeComboBox
Select the vertical magnitude for the spectrums.
Definition: SpectrumDock.h:54
std::vector< double > magnitudeSteps
The selectable magnitude steps in dB/div.
Definition: SpectrumDock.h:61
QGridLayout * dockLayout
The main layout for the dock window.
Definition: SpectrumDock.h:49
int setMagnitude(ChannelID channel, double magnitude)
Sets the magnitude for a channel.
Definition: SpectrumDock.cpp:94
A spin box with SI prefix support. This spin box supports the SI prefixes (k/M/G/T) after its value a...
Definition: sispinbox.h:14
DsoSettingsScope * scope
The settings provided by the parent class.
Definition: SpectrumDock.h:59
void loadSettings(DsoSettingsScope *scope)
Loads settings into GUI.
Definition: SpectrumDock.cpp:78
unsigned ChannelID
Definition: types.h:6
SpectrumDock(DsoSettingsScope *scope, QWidget *parent, Qt::WindowFlags flags=nullptr)
Initializes the spectrum view docking window.
Definition: SpectrumDock.cpp:27
std::vector< ChannelBlock > channelBlocks
Definition: SpectrumDock.h:57
Holds the settings for the oscilloscope.
Definition: scopesettings.h:75
Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/di...
Definition: SpectrumDock.h:19
QStringList magnitudeStrings
String representations for the magnitude steps.
Definition: SpectrumDock.h:62
void closeEvent(QCloseEvent *event)
Don't close the dock, just hide it.
Definition: SpectrumDock.cpp:88