|
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 |
Signals | |
| void | couplingChanged (ChannelID channel, Dso::Coupling coupling) |
| A coupling has been selected. | |
| void | gainChanged (ChannelID channel, double gain) |
| A gain has been selected. | |
| void | modeChanged (Dso::MathMode mode) |
| The mode for the math channels has been changed. | |
| void | usedChanged (ChannelID channel, bool used) |
| A channel has been enabled/disabled. | |
Public Member Functions | |
| VoltageDock (DsoSettingsScope *scope, const Dso::ControlSpecification *spec, QWidget *parent, Qt::WindowFlags flags=0) | |
| 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 | setMode (unsigned mathModeIndex) |
| Sets the mode for the math channel. More... | |
| void | setUsed (ChannelID channel, bool used) |
| Enables/disables a channel. 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. | |
| QWidget * | dockWidget |
| The main widget for the dock window. | |
| std::vector< ChannelBlock > | channelBlocks |
| DsoSettingsScope * | scope |
| The settings provided by the parent class. | |
| const Dso::ControlSpecification * | spec |
| QStringList | couplingStrings |
| The strings for the couplings. | |
| QStringList | modeStrings |
| The strings for the math mode. | |
| QStringList | gainStrings |
| String representations for the gain steps. | |
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 = 0 |
||
| ) |
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. |
| 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::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. |
1.8.14