Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/disable the channels.
More...
#include <SpectrumDock.h>
|
|
void | magnitudeChanged (ChannelID channel, double magnitude) |
| | A magnitude has been selected.
|
| |
|
void | usedChanged (ChannelID channel, bool used) |
| | A spectrum has been enabled/disabled.
|
| |
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 = 0 |
|
) |
| |
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. |
◆ 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.
The documentation for this class was generated from the following files: