OpenHantek
Signals | Public Member Functions | Protected Member Functions | Protected Attributes
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:

Signals

void modeChanged (Dso::TriggerMode)
 The trigger mode has been changed.
 
void sourceChanged (bool special, unsigned int id)
 The trigger source 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, Qt::WindowFlags flags=0)
 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 (bool special, unsigned 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.
 
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 * 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 sourceSpecialStrings
 Strings for the special trigger sources.
 

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 = 0 
)

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.

◆ 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 ( bool  special,
unsigned int  id 
)

Changes the trigger source if the new source is supported.

Parameters
specialtrue for a special channel (EXT, ...) as trigger source.
idThe number of the channel, that should be used as trigger.

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