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 = 0 |
|
) |
| |
Initializes the horizontal axis docking window.
- Parameters
-
| settings | The target settings object. |
| parent | The parent widget. |
| flags | Flags for the window manager. |
◆ closeEvent()
| void HorizontalDock::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Don't close the dock, just hide it.
- Parameters
-
| event | The close event that should be handled. |
◆ 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. |
◆ frequencybaseSelected
| void HorizontalDock::frequencybaseSelected |
( |
double |
frequencybase | ) |
|
|
protectedslot |
Called when the frequencybase spinbox changes its value.
- Parameters
-
| frequencybase | The frequencybase in hertz. |
◆ recordLengthSelected
| void HorizontalDock::recordLengthSelected |
( |
int |
index | ) |
|
|
protectedslot |
Called when the record length combo box changes its value.
- Parameters
-
| index | The index of the combo box item. |
◆ samplerateSelected
| void HorizontalDock::samplerateSelected |
( |
double |
samplerate | ) |
|
|
protectedslot |
Called when the samplerate spinbox changes its value.
- Parameters
-
| samplerate | The samplerate in samples/second. |
◆ setAvailableRecordLengths()
| void HorizontalDock::setAvailableRecordLengths |
( |
const std::vector< unsigned > & |
recordLengths | ) |
|
Updates the available record lengths in the combo box.
- Parameters
-
| recordLengths | The available record lengths for the combo box. |
◆ setFormat()
| int HorizontalDock::setFormat |
( |
Dso::GraphFormat |
format | ) |
|
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()
| void 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. |
◆ timebaseSelected
| void HorizontalDock::timebaseSelected |
( |
double |
timebase | ) |
|
|
protectedslot |
Called when the timebase spinbox changes its value.
- Parameters
-
| timebase | The timebase in seconds. |
◆ formatComboBox
| QComboBox* HorizontalDock::formatComboBox |
|
protected |
Selects the way the sampled data is interpreted and shown
The documentation for this class was generated from the following files: