|
OpenHantek
|
Dock window for the voltage channel settings. It contains the settings for gain and coupling for both channels and allows to enable/disable the channels. More...
#include <VoltageDock.h>
Data Structures | |
| struct | ChannelBlock |
Public Slots | |
| void | loadSettings (DsoSettingsScope *scope, const Dso::ControlSpecification *spec) |
| Loads settings into GUI. More... | |
Signals | |
| void | couplingChanged (ChannelID channel, Dso::Coupling coupling) |
| A coupling has been selected. More... | |
| void | gainChanged (ChannelID channel, double gain) |
| A gain has been selected. More... | |
| void | modeChanged (Dso::MathMode mode) |
| The mode for the math channels has been changed. More... | |
| void | usedChanged (ChannelID channel, bool used) |
| A channel has been enabled/disabled. More... | |
| void | probeAttnChanged (ChannelID channel, double probeAttn) |
| A channel probe attenuation has been changed. More... | |
| void | invertedChanged (ChannelID channel, bool inverted) |
| A channel "inverted" has been toggled. More... | |
Public Member Functions | |
| VoltageDock (DsoSettingsScope *scope, const Dso::ControlSpecification *spec, QWidget *parent, Qt::WindowFlags flags=nullptr) | |
| Initializes the vertical axis docking window. More... | |
| void | setCoupling (ChannelID channel, unsigned couplingIndex) |
| Sets the coupling for a channel. More... | |
| void | setGain (ChannelID channel, unsigned gainStepIndex) |
| Sets the gain for a channel. More... | |
| void | setAttn (ChannelID channel, double attnValue) |
| Sets the probe attenuation for a channel. More... | |
| void | setMode (unsigned mathModeIndex) |
| Sets the mode for the math channel. More... | |
| void | setUsed (ChannelID channel, bool used) |
| Enables/disables a channel. More... | |
| void | setInverted (ChannelID channel, bool inverted) |
| Set channel inverted. More... | |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) |
| Don't close the dock, just hide it. More... | |
Protected Attributes | |
| QGridLayout * | dockLayout |
| The main layout for the dock window. More... | |
| QWidget * | dockWidget |
| The main widget for the dock window. More... | |
| std::vector< ChannelBlock > | channelBlocks |
| DsoSettingsScope * | scope |
| The settings provided by the parent class. More... | |
| const Dso::ControlSpecification * | spec |
| QStringList | couplingStrings |
| The strings for the couplings. More... | |
| QStringList | modeStrings |
| The strings for the math mode. More... | |
| QStringList | gainStrings |
| String representations for the gain steps. More... | |
| QStringList | attnStrings |
| String representations for the probe attn steps. More... | |
Dock window for the voltage channel settings. It contains the settings for gain and coupling for both channels and allows to enable/disable the channels.
| VoltageDock::VoltageDock | ( | DsoSettingsScope * | scope, |
| const Dso::ControlSpecification * | spec, | ||
| QWidget * | parent, | ||
| Qt::WindowFlags | flags = nullptr |
||
| ) |
Initializes the vertical axis docking window.
| settings | The target settings object. |
| parent | The parent widget. |
| flags | Flags for the window manager. |
|
protected |
Don't close the dock, just hide it.
| event | The close event that should be handled. |
|
signal |
A coupling has been selected.
|
signal |
A gain has been selected.
|
signal |
A channel "inverted" has been toggled.
|
slot |
Loads settings into GUI.
| scope | Settings to load |
| spec | Current scope specifications |
|
signal |
The mode for the math channels has been changed.
|
signal |
A channel probe attenuation has been changed.
| void VoltageDock::setAttn | ( | ChannelID | channel, |
| double | attnValue | ||
| ) |
Sets the probe attenuation for a channel.
| channel | The channel, whose attn should be set. |
| attn | The attn value. |
| void VoltageDock::setCoupling | ( | ChannelID | channel, |
| unsigned | couplingIndex | ||
| ) |
Sets the coupling for a channel.
| channel | The channel, whose coupling should be set. |
| couplingIndex | The coupling-mode index. |
| void VoltageDock::setGain | ( | ChannelID | channel, |
| unsigned | gainStepIndex | ||
| ) |
Sets the gain for a channel.
| channel | The channel, whose gain should be set. |
| gain | The gain in volts. |
| void VoltageDock::setInverted | ( | ChannelID | channel, |
| bool | inverted | ||
| ) |
Set channel inverted.
| channel | The channel, that should be inverted. |
| used | True if the channel should be inverted, false otherwise. |
| void VoltageDock::setMode | ( | unsigned | mathModeIndex | ) |
Sets the mode for the math channel.
| mathModeIndex | The math-mode index. |
| void VoltageDock::setUsed | ( | ChannelID | channel, |
| bool | used | ||
| ) |
Enables/disables a channel.
| channel | The channel, that should be enabled/disabled. |
| used | True if the channel should be enabled, false otherwise. |
|
signal |
A channel has been enabled/disabled.
|
protected |
String representations for the probe attn steps.
|
protected |
|
protected |
The strings for the couplings.
|
protected |
The main layout for the dock window.
|
protected |
The main widget for the dock window.
|
protected |
String representations for the gain steps.
|
protected |
The strings for the math mode.
|
protected |
The settings provided by the parent class.
|
protected |