16#define ATTENUATION_MIN 1
17#define ATTENUATION_MAX 1000
51 void setMode(
unsigned mathModeIndex );
70 void closeEvent( QCloseEvent *event )
override;
A spin box with SI prefix support. This spin box supports the SI prefixes (k/M/G/T) after its value a...
Definition sispinbox.h:14
QWidget * dockWidget
The main widget for the dock window.
Definition VoltageDock.h:73
const Dso::ControlSpecification * spec
Definition VoltageDock.h:86
void setUsed(ChannelID channel, bool used)
Enables/disables a channel.
Definition VoltageDock.cpp:251
void couplingChanged(ChannelID channel, Dso::Coupling coupling)
A coupling has been selected.
QStringList couplingStrings
The strings for the couplings.
Definition VoltageDock.h:88
void invertedChanged(ChannelID channel, bool inverted)
A channel "inverted" has been toggled.
QStringList attnStrings
String representations for the probe attn steps.
Definition VoltageDock.h:92
void loadSettings(DsoSettingsScope *scope, const Dso::ControlSpecification *spec)
Loads settings into GUI.
Definition VoltageDock.cpp:156
void setCoupling(ChannelID channel, unsigned couplingIndex)
Sets the coupling for a channel.
Definition VoltageDock.cpp:184
void closeEvent(QCloseEvent *event) override
Don't close the dock, just hide it.
Definition VoltageDock.cpp:178
void setGain(ChannelID channel, unsigned gainStepIndex)
Sets the gain for a channel.
Definition VoltageDock.cpp:196
void setMode(unsigned mathModeIndex)
Sets the mode for the math channel.
Definition VoltageDock.cpp:243
DsoSettingsScope * scope
The settings provided by the parent class.
Definition VoltageDock.h:85
void setInverted(ChannelID channel, bool inverted)
Set channel inverted.
Definition VoltageDock.cpp:261
VoltageDock(DsoSettingsScope *scope, const Dso::ControlSpecification *spec, QWidget *parent)
Initializes the vertical axis docking window.
Definition VoltageDock.cpp:22
QStringList modeStrings
The strings for the math mode.
Definition VoltageDock.h:89
void modeChanged(Dso::MathMode mode)
The mode for the math channels has been changed.
void setAttn(ChannelID channel, double attnValue)
Sets the probe attenuation for a channel.
Definition VoltageDock.cpp:215
void updateGainStrings(double attnValue=1)
Definition VoltageDock.cpp:271
void usedChannelChanged(ChannelID channel, unsigned used)
A channel has been enabled/disabled.
QGridLayout * dockLayout
The main layout for the dock window.
Definition VoltageDock.h:72
std::vector< ChannelBlock > channelBlocks
Definition VoltageDock.h:83
void gainChanged(ChannelID channel, double gain)
A gain has been selected.
QStringList gainStrings
String representations for the gain steps.
Definition VoltageDock.h:90
void probeAttnChanged(ChannelID channel, double probeAttn)
A channel probe attenuation has been changed.
QStringList mathGainStrings
String representations for the math gain steps.
Definition VoltageDock.h:91
Coupling
The coupling modes for the channels.
Definition enums.h:27
MathMode
The different math modes for the math-channel.
Definition mathmodes.h:14
Holds the settings for the oscilloscope.
Definition scopesettings.h:100
Stores the specifications of the currently connected device.
Definition controlspecification.h:42
Definition VoltageDock.h:75
QSpinBox * attnSpinBox
Enter the attenuation probe value.
Definition VoltageDock.h:80
QCheckBox * invertCheckBox
Select if the channels should be displayed inverted.
Definition VoltageDock.h:79
QComboBox * gainComboBox
Select the vertical gain for the channels.
Definition VoltageDock.h:77
QComboBox * miscComboBox
Select coupling for real and mode for math channels.
Definition VoltageDock.h:78
QCheckBox * usedCheckBox
Enable/disable a specific channel.
Definition VoltageDock.h:76
unsigned ChannelID
Definition types.h:6