OpenHantek
Loading...
Searching...
No Matches
TriggerDock Class Reference

Dock window for the trigger settings. It contains the settings for the trigger mode, source and slope. More...

#include <TriggerDock.h>

Inheritance diagram for TriggerDock:

Public Slots

void loadSettings (DsoSettingsScope *scope)
 Loads settings into GUI.
void timebaseChanged (double timebase)

Signals

void modeChanged (Dso::TriggerMode)
 The trigger mode has been changed.
void sourceChanged (int id)
 The trigger source has been changed.
void smoothChanged (int smooth)
 The trigger smoothing has been changed.
void slopeChanged (Dso::Slope)
 The trigger slope has been changed.

Public Member Functions

 TriggerDock (DsoSettingsScope *scope, const Dso::ControlSpecification *mSpec, QWidget *parent)
 Initializes the trigger settings docking window.
void setMode (Dso::TriggerMode mode)
 Changes the trigger mode if the new mode is supported.
void setSource (int id)
 Changes the trigger source if the new source is supported.
void setSmooth (int smooth)
 Changes the trigger smoothing.
void setSlope (Dso::Slope slope)
 Changes the trigger slope if the new slope is supported.

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 Don't close the dock, just hide it.

Protected Attributes

QGridLayout * dockLayout
 The main layout for the dock window.
QWidget * dockWidget
 The main widget for the dock window.
QLabel * modeLabel
 The label for the trigger mode combobox.
QLabel * sourceLabel
 The label for the trigger source combobox.
QLabel * slopeLabel
 The label for the trigger slope combobox.
QComboBox * modeComboBox
 Select the triggering mode.
QComboBox * sourceComboBox
 Select the source for triggering.
QComboBox * smoothComboBox
 Select the filter for triggering.
QComboBox * slopeComboBox
 Select the slope that causes triggering.
DsoSettingsScopescope
 The settings provided by the parent class.
const Dso::ControlSpecificationmSpec
QStringList sourceStandardStrings
 Strings for the standard trigger sources.
QStringList smoothStandardStrings
 Strings for the standard trigger filtering.

Detailed Description

Dock window for the trigger settings. It contains the settings for the trigger mode, source and slope.

Constructor & Destructor Documentation

◆ TriggerDock()

TriggerDock::TriggerDock ( DsoSettingsScope * scope,
const Dso::ControlSpecification * mSpec,
QWidget * parent )

Initializes the trigger settings docking window.

Parameters
settingsThe target settings object.
spec
parentThe parent widget.
flagsFlags for the window manager.

Member Function Documentation

◆ closeEvent()

void TriggerDock::closeEvent ( QCloseEvent * event)
overrideprotected

Don't close the dock, just hide it.

Parameters
eventThe close event that should be handled.

◆ loadSettings

void TriggerDock::loadSettings ( DsoSettingsScope * scope)
slot

Loads settings into GUI.

Parameters
scopeSettings to load

◆ modeChanged

void TriggerDock::modeChanged ( Dso::TriggerMode )
signal

The trigger mode has been changed.

◆ setMode()

void TriggerDock::setMode ( Dso::TriggerMode mode)

Changes the trigger mode if the new mode is supported.

Parameters
modeThe trigger mode.

◆ setSlope()

void TriggerDock::setSlope ( Dso::Slope slope)

Changes the trigger slope if the new slope is supported.

Parameters
slopeThe trigger slope.

◆ setSmooth()

void TriggerDock::setSmooth ( int smooth)

Changes the trigger smoothing.

Parameters
smoothDon't trigger on glitches

◆ setSource()

void TriggerDock::setSource ( int id)

Changes the trigger source if the new source is supported.

Parameters
idThe number of the channel, that should be used as trigger.

◆ slopeChanged

void TriggerDock::slopeChanged ( Dso::Slope )
signal

The trigger slope has been changed.

◆ smoothChanged

void TriggerDock::smoothChanged ( int smooth)
signal

The trigger smoothing has been changed.

◆ sourceChanged

void TriggerDock::sourceChanged ( int id)
signal

The trigger source has been changed.

◆ timebaseChanged

void TriggerDock::timebaseChanged ( double timebase)
slot

Field Documentation

◆ dockLayout

QGridLayout* TriggerDock::dockLayout
protected

The main layout for the dock window.

◆ dockWidget

QWidget* TriggerDock::dockWidget
protected

The main widget for the dock window.

◆ modeComboBox

QComboBox* TriggerDock::modeComboBox
protected

Select the triggering mode.

◆ modeLabel

QLabel* TriggerDock::modeLabel
protected

The label for the trigger mode combobox.

◆ mSpec

const Dso::ControlSpecification* TriggerDock::mSpec
protected

◆ scope

DsoSettingsScope* TriggerDock::scope
protected

The settings provided by the parent class.

◆ slopeComboBox

QComboBox* TriggerDock::slopeComboBox
protected

Select the slope that causes triggering.

◆ slopeLabel

QLabel* TriggerDock::slopeLabel
protected

The label for the trigger slope combobox.

◆ smoothComboBox

QComboBox* TriggerDock::smoothComboBox
protected

Select the filter for triggering.

◆ smoothStandardStrings

QStringList TriggerDock::smoothStandardStrings
protected

Strings for the standard trigger filtering.

◆ sourceComboBox

QComboBox* TriggerDock::sourceComboBox
protected

Select the source for triggering.

◆ sourceLabel

QLabel* TriggerDock::sourceLabel
protected

The label for the trigger source combobox.

◆ sourceStandardStrings

QStringList TriggerDock::sourceStandardStrings
protected

Strings for the standard trigger sources.


The documentation for this class was generated from the following files: