Dock window for the horizontal axis. It contains the settings for the timebase and the display format.
More...
#include <HorizontalDock.h>
Dock window for the horizontal axis. It contains the settings for the timebase and the display format.
◆ HorizontalDock()
| HorizontalDock::HorizontalDock |
( |
DsoSettingsScope * |
scope, |
|
|
QWidget * |
parent, |
|
|
Qt::WindowFlags |
flags = nullptr |
|
) |
| |
Initializes the horizontal axis docking window.
- Parameters
-
| settings | The target settings object. |
| parent | The parent widget. |
| flags | Flags for the window manager. |
◆ calculateSamplerateSteps()
| void HorizontalDock::calculateSamplerateSteps |
( |
double |
timebase | ) |
|
◆ calfreqChanged
| void HorizontalDock::calfreqChanged |
( |
double |
calfreq | ) |
|
|
signal |
The timebase has been changed.
◆ calfreqSelected
| void HorizontalDock::calfreqSelected |
( |
double |
calfreq | ) |
|
|
protectedslot |
Called when the calfreq spinbox changes its value.
- Parameters
-
| calfreq | The calibration frequency in hertz. |
◆ closeEvent()
| void HorizontalDock::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Don't close the dock, just hide it.
- Parameters
-
| event | The close event that should be handled. |
◆ formatChanged
The viewing format has been changed.
◆ formatSelected
| void HorizontalDock::formatSelected |
( |
int |
index | ) |
|
|
protectedslot |
Called when the format combo box changes its value.
- Parameters
-
| index | The index of the combo box item. |
◆ frequencybaseChanged
| void HorizontalDock::frequencybaseChanged |
( |
double |
frequencybase | ) |
|
|
signal |
The frequencybase has been changed.
◆ frequencybaseSelected
| void HorizontalDock::frequencybaseSelected |
( |
double |
frequencybase | ) |
|
|
protectedslot |
Called when the frequencybase spinbox changes its value.
- Parameters
-
| frequencybase | The frequencybase in hertz. |
◆ loadSettings
Loads settings into GUI.
- Parameters
-
◆ recordLengthChanged
| void HorizontalDock::recordLengthChanged |
( |
unsigned long |
recordLength | ) |
|
|
signal |
The recordd length has been changed.
◆ samplerateChanged
| void HorizontalDock::samplerateChanged |
( |
double |
samplerate | ) |
|
|
signal |
The samplerate has been changed.
◆ samplerateSelected
| void HorizontalDock::samplerateSelected |
( |
double |
samplerate | ) |
|
|
protectedslot |
Called when the samplerate spinbox changes its value.
- Parameters
-
| samplerate | The samplerate in samples/second. |
◆ setCalfreq()
| double HorizontalDock::setCalfreq |
( |
double |
calfreq | ) |
|
Changes the calibration frequency.
- Parameters
-
| calfreq | The calibration frequency in hertz. |
◆ setFormat()
Changes the format if the new value is supported.
- Parameters
-
| format | The format for the horizontal axis. |
- Returns
- Index of format-value, -1 on error.
◆ setFrequencybase()
| void HorizontalDock::setFrequencybase |
( |
double |
timebase | ) |
|
Changes the frequencybase.
- Parameters
-
| frequencybase | The frequencybase in hertz. |
◆ setRecordLength()
| void HorizontalDock::setRecordLength |
( |
unsigned int |
recordLength | ) |
|
Changes the record length if the new value is supported.
- Parameters
-
| recordLength | The record length in samples. |
◆ setSamplerate()
| double HorizontalDock::setSamplerate |
( |
double |
samplerate | ) |
|
Changes the samplerate.
- Parameters
-
| samplerate | The samplerate in seconds. |
◆ setSamplerateLimits()
| void HorizontalDock::setSamplerateLimits |
( |
double |
minimum, |
|
|
double |
maximum |
|
) |
| |
Updates the minimum and maximum of the samplerate spin box.
- Parameters
-
| minimum | The minimum value the spin box should accept. |
| maximum | The minimum value the spin box should accept. |
◆ setSamplerateSteps()
| void HorizontalDock::setSamplerateSteps |
( |
int |
mode, |
|
|
QList< double > |
sampleSteps |
|
) |
| |
Updates the mode and steps of the samplerate spin box.
- Parameters
-
| mode | The mode value the spin box should accept. |
| steps | The steps value the spin box should accept. |
◆ setTimebase()
| double HorizontalDock::setTimebase |
( |
double |
timebase | ) |
|
Changes the timebase.
- Parameters
-
| timebase | The timebase in seconds. |
◆ timebaseChanged
| void HorizontalDock::timebaseChanged |
( |
double |
timebase | ) |
|
|
signal |
The timebase has been changed.
◆ timebaseSelected
| void HorizontalDock::timebaseSelected |
( |
double |
timebase | ) |
|
|
protectedslot |
Called when the timebase spinbox changes its value.
- Parameters
-
| timebase | The timebase in seconds. |
◆ calfreqLabel
| QLabel* HorizontalDock::calfreqLabel |
|
protected |
The label for the calibration frequency spinbox.
◆ calfreqSiSpinBox
Selects the calibration frequency.
◆ calfreqSteps
| QList<double> HorizontalDock::calfreqSteps |
|
protected |
Steps for the calfreq spinbox.
◆ dockLayout
| QGridLayout* HorizontalDock::dockLayout |
|
protected |
The main layout for the dock window.
◆ dockWidget
| QWidget* HorizontalDock::dockWidget |
|
protected |
The main widget for the dock window.
◆ formatComboBox
| QComboBox* HorizontalDock::formatComboBox |
|
protected |
Selects the way the sampled data is interpreted and shown
◆ formatLabel
| QLabel* HorizontalDock::formatLabel |
|
protected |
The label for the format combobox.
◆ formatStrings
| QStringList HorizontalDock::formatStrings |
|
protected |
◆ frequencybaseLabel
| QLabel* HorizontalDock::frequencybaseLabel |
|
protected |
The label for the frequencybase spinbox.
◆ frequencybaseSiSpinBox
| SiSpinBox* HorizontalDock::frequencybaseSiSpinBox |
|
protected |
Selects the frequencybase for spectrum graphs.
◆ samplerateLabel
| QLabel* HorizontalDock::samplerateLabel |
|
protected |
The label for the samplerate spinbox.
◆ samplerateSiSpinBox
| SiSpinBox* HorizontalDock::samplerateSiSpinBox |
|
protected |
Selects the samplerate for aquisitions.
◆ samplerateSteps
| QList<double> HorizontalDock::samplerateSteps |
|
protected |
◆ scope
The settings provided by the parent class.
◆ timebaseLabel
| QLabel* HorizontalDock::timebaseLabel |
|
protected |
The label for the timebase spinbox.
◆ timebaseSiSpinBox
Selects the timebase for voltage graphs.
◆ timebaseSteps
| QList<double> HorizontalDock::timebaseSteps |
|
protected |
Steps for the timebase spinbox.
The documentation for this class was generated from the following files: