8 #include "scopesettings.h" 39 unsigned setUsed(ChannelID channel,
bool used);
52 std::vector<ChannelBlock> channelBlocks;
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:47
unsigned setUsed(ChannelID channel, bool used)
Enables/disables a channel.
Definition: SpectrumDock.cpp:94
QWidget * dockWidget
The main widget for the dock window.
Definition: SpectrumDock.h:45
SpectrumDock(DsoSettingsScope *scope, QWidget *parent, Qt::WindowFlags flags=0)
Initializes the spectrum view docking window.
Definition: SpectrumDock.cpp:26
QCheckBox * usedCheckBox
Enable/disable a specific channel.
Definition: SpectrumDock.h:48
QComboBox * magnitudeComboBox
Select the vertical magnitude for the spectrums.
Definition: SpectrumDock.h:49
std::vector< double > magnitudeSteps
The selectable magnitude steps in dB/div.
Definition: SpectrumDock.h:56
QGridLayout * dockLayout
The main layout for the dock window.
Definition: SpectrumDock.h:44
int setMagnitude(ChannelID channel, double magnitude)
Sets the magnitude for a channel.
Definition: SpectrumDock.cpp:83
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:54
Holds the settings for the oscilloscope.
Definition: scopesettings.h:77
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:57
void closeEvent(QCloseEvent *event)
Don't close the dock, just hide it.
Definition: SpectrumDock.cpp:77