OpenHantek
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. More...
 

Signals

void modeChanged (Dso::TriggerMode)
 The trigger mode has been changed. More...
 
void sourceChanged (unsigned int id, bool smooth)
 The trigger source has been changed. More...
 
void slopeChanged (Dso::Slope)
 The trigger slope has been changed. More...
 

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

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,
Qt::WindowFlags  flags = nullptr 
)

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)
protected

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.

◆ 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.

◆ sourceChanged

void TriggerDock::sourceChanged ( unsigned int  id,
bool  smooth 
)
signal

The trigger source has been changed.

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.

◆ 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: