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.
|
| |
|
| | SpectrumDock (DsoSettingsScope *scope, QWidget *parent, Qt::WindowFlags flags=0) |
| | Initializes the spectrum view docking window.
|
| |
| int | setMagnitude (ChannelID channel, double magnitude) |
| | Sets the magnitude for a channel.
|
| |
| unsigned | setUsed (ChannelID channel, bool used) |
| | Enables/disables a channel.
|
| |
|
| void | closeEvent (QCloseEvent *event) |
| | Don't close the dock, just hide it.
|
| |
|
|
QGridLayout * | dockLayout |
| | The main layout for the dock window.
|
| |
|
QWidget * | dockWidget |
| | The main widget for the dock window.
|
| |
|
std::vector< ChannelBlock > | channelBlocks |
| |
|
DsoSettingsScope * | scope |
| | The settings provided by the parent class.
|
| |
|
std::vector< double > | magnitudeSteps |
| | The selectable magnitude steps in dB/div.
|
| |
|
QStringList | magnitudeStrings |
| | String representations for the magnitude steps.
|
| |
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: