Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/disable the channels.
More...
#include <SpectrumDock.h>
Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/disable the channels.
◆ SpectrumDock()
| SpectrumDock::SpectrumDock |
( |
DsoSettingsScope * |
scope, |
|
|
QWidget * |
parent, |
|
|
Qt::WindowFlags |
flags = nullptr |
|
) |
| |
Initializes the spectrum view docking window.
- Parameters
-
| settings | The target settings object. |
| parent | The parent widget. |
| flags | Flags for the window manager. |
◆ closeEvent()
| void SpectrumDock::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Don't close the dock, just hide it.
- Parameters
-
| event | The close event that should be handled. |
◆ loadSettings
Loads settings into GUI.
- Parameters
-
◆ magnitudeChanged
| void SpectrumDock::magnitudeChanged |
( |
ChannelID |
channel, |
|
|
double |
magnitude |
|
) |
| |
|
signal |
A magnitude has been selected.
◆ setMagnitude()
| int SpectrumDock::setMagnitude |
( |
ChannelID |
channel, |
|
|
double |
magnitude |
|
) |
| |
Sets the magnitude for a channel.
- Parameters
-
| channel | The channel, whose magnitude should be set. |
| magnitude | The magnitude in dB. |
- Returns
- Index of magnitude-value, -1 on error.
◆ setUsed()
| unsigned SpectrumDock::setUsed |
( |
ChannelID |
channel, |
|
|
bool |
used |
|
) |
| |
Enables/disables a channel.
- Parameters
-
| channel | The channel, that should be enabled/disabled. |
| used | True if the channel should be enabled, false otherwise. |
- Returns
- Index of channel, INT_MAX on error.
◆ usedChanged
| void SpectrumDock::usedChanged |
( |
ChannelID |
channel, |
|
|
bool |
used |
|
) |
| |
|
signal |
A spectrum has been enabled/disabled.
◆ channelBlocks
◆ dockLayout
| QGridLayout* SpectrumDock::dockLayout |
|
protected |
The main layout for the dock window.
◆ dockWidget
| QWidget* SpectrumDock::dockWidget |
|
protected |
The main widget for the dock window.
◆ magnitudeSteps
| std::vector<double> SpectrumDock::magnitudeSteps |
|
protected |
The selectable magnitude steps in dB/div.
◆ magnitudeStrings
| QStringList SpectrumDock::magnitudeStrings |
|
protected |
String representations for the magnitude steps.
◆ scope
The settings provided by the parent class.
The documentation for this class was generated from the following files: