20 Q_DECLARE_METATYPE(std::vector<unsigned>)
21 Q_DECLARE_METATYPE(std::vector<double>)
void samplerateChanged(double samplerate)
The samplerate has been changed.
HorizontalDock(DsoSettingsScope *scope, QWidget *parent, Qt::WindowFlags flags=nullptr)
Initializes the horizontal axis docking window.
Definition: HorizontalDock.cpp:31
void setFrequencybase(double timebase)
Changes the frequencybase.
Definition: HorizontalDock.cpp:115
void formatSelected(int index)
Called when the format combo box changes its value.
Definition: HorizontalDock.cpp:253
SiSpinBox * samplerateSiSpinBox
Selects the samplerate for aquisitions.
Definition: HorizontalDock.h:78
void calculateSamplerateSteps(double timebase)
Definition: HorizontalDock.cpp:224
void loadSettings(DsoSettingsScope *scope)
Loads settings into GUI.
Definition: HorizontalDock.cpp:98
SiSpinBox * calfreqSiSpinBox
Selects the calibration frequency.
Definition: HorizontalDock.h:83
QLabel * calfreqLabel
The label for the calibration frequency spinbox.
Definition: HorizontalDock.h:77
double setTimebase(double timebase)
Changes the timebase.
Definition: HorizontalDock.cpp:133
void setRecordLength(unsigned int recordLength)
Changes the record length if the new value is supported.
QLabel * timebaseLabel
The label for the timebase spinbox.
Definition: HorizontalDock.h:74
QList< double > calfreqSteps
Steps for the calfreq spinbox.
Definition: HorizontalDock.h:87
void formatChanged(Dso::GraphFormat format)
The viewing format has been changed.
void timebaseChanged(double timebase)
The timebase has been changed.
GraphFormat
The possible viewing formats for the graphs on the scope.
Definition: enums.h:18
QStringList formatStrings
Strings for the formats.
Definition: HorizontalDock.h:90
QLabel * samplerateLabel
The label for the samplerate spinbox.
Definition: HorizontalDock.h:73
QLabel * frequencybaseLabel
The label for the frequencybase spinbox.
Definition: HorizontalDock.h:75
int setFormat(Dso::GraphFormat format)
Changes the format if the new value is supported.
Definition: HorizontalDock.cpp:151
QList< double > samplerateSteps
Possible sampe rates.
Definition: HorizontalDock.h:88
void frequencybaseChanged(double frequencybase)
The frequencybase has been changed.
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
void timebaseSelected(double timebase)
Called when the timebase spinbox changes its value.
Definition: HorizontalDock.cpp:216
double setSamplerate(double samplerate)
Changes the samplerate.
Definition: HorizontalDock.cpp:121
void closeEvent(QCloseEvent *event)
Don't close the dock, just hide it.
Definition: HorizontalDock.cpp:109
QWidget * dockWidget
The main widget for the dock window.
Definition: HorizontalDock.h:72
SiSpinBox * frequencybaseSiSpinBox
Selects the frequencybase for spectrum graphs.
Definition: HorizontalDock.h:80
void calfreqChanged(double calfreq)
The timebase has been changed.
QGridLayout * dockLayout
The main layout for the dock window.
Definition: HorizontalDock.h:71
void samplerateSelected(double samplerate)
Called when the samplerate spinbox changes its value.
Definition: HorizontalDock.cpp:207
QList< double > timebaseSteps
Steps for the timebase spinbox.
Definition: HorizontalDock.h:86
Holds the settings for the oscilloscope.
Definition: scopesettings.h:75
void setSamplerateSteps(int mode, QList< double > sampleSteps)
Updates the mode and steps of the samplerate spin box.
Definition: HorizontalDock.cpp:178
double setCalfreq(double calfreq)
Changes the calibration frequency.
Definition: HorizontalDock.cpp:161
Dock window for the horizontal axis. It contains the settings for the timebase and the display format...
Definition: HorizontalDock.h:25
SiSpinBox * timebaseSiSpinBox
Selects the timebase for voltage graphs.
Definition: HorizontalDock.h:79
void setSamplerateLimits(double minimum, double maximum)
Updates the minimum and maximum of the samplerate spin box.
Definition: HorizontalDock.cpp:168
QLabel * formatLabel
The label for the format combobox.
Definition: HorizontalDock.h:76
void calfreqSelected(double calfreq)
Called when the calfreq spinbox changes its value.
Definition: HorizontalDock.cpp:261
void frequencybaseSelected(double frequencybase)
Called when the frequencybase spinbox changes its value.
Definition: HorizontalDock.cpp:199
DsoSettingsScope * scope
The settings provided by the parent class.
Definition: HorizontalDock.h:85
QComboBox * formatComboBox
Definition: HorizontalDock.h:81
void recordLengthChanged(unsigned long recordLength)
The recordd length has been changed.