ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
FloatControl Class Reference

#include <floatcontrol.h>

Inheritance diagram for FloatControl:
[legend]
Collaboration diagram for FloatControl:
[legend]

Signals

void ValueChanged (double value)
 

Public Member Functions

 FloatControl (QWidget *parent=nullptr)
 
void SetRange (std::pair< double, double > range)
 
void SetValue (double value)
 
double Value () const
 

Private Attributes

QHBoxLayout * m_layout {}
 
QSlider * m_slider {}
 
QDoubleSpinBox * m_spinBox {}
 

Static Private Attributes

static constexpr double m_sliderFInc = 1'000.0
 

Constructor & Destructor Documentation

◆ FloatControl()

FloatControl::FloatControl ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ SetRange()

void FloatControl::SetRange ( std::pair< double, double > range)

◆ SetValue()

void FloatControl::SetValue ( double value)

◆ Value()

double FloatControl::Value ( ) const

◆ ValueChanged

void FloatControl::ValueChanged ( double value)
signal

Member Data Documentation

◆ m_layout

QHBoxLayout* FloatControl::m_layout {}
private

◆ m_slider

QSlider* FloatControl::m_slider {}
private

◆ m_sliderFInc

double FloatControl::m_sliderFInc = 1'000.0
staticconstexprprivate

◆ m_spinBox

QDoubleSpinBox* FloatControl::m_spinBox {}
private

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