SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Slots | Private Attributes | List of all members
IntervalSliderGUI Class Reference

#include <intervalslidergui.h>

+ Inheritance diagram for IntervalSliderGUI:
+ Collaboration diagram for IntervalSliderGUI:

Public Member Functions

 IntervalSliderGUI (QWidget *parent=0)
 
virtual ~IntervalSliderGUI ()
 
void setLabel (const QString &text)
 
void setUnits (const QString &units)
 
void setInterval (double minimum, double maximum)
 
virtual double getCurrentValue ()
 
virtual void setValue (double value)
 
- Public Member Functions inherited from ItemSettingGUI
 ItemSettingGUI (QWidget *parent=0)
 
virtual ~ItemSettingGUI ()
 

Private Slots

void on_intervalSlider_valueChanged (int value)
 

Private Attributes

Ui::IntervalSliderGUI * ui
 
double m_minimum
 
double m_maximum
 

Additional Inherited Members

- Signals inherited from ItemSettingGUI
void valueChanged (double value)
 

Detailed Description

Definition at line 31 of file intervalslidergui.h.

Constructor & Destructor Documentation

◆ IntervalSliderGUI()

IntervalSliderGUI::IntervalSliderGUI ( QWidget *  parent = 0)
explicit

Definition at line 23 of file intervalslidergui.cpp.

References ui.

23  :
24  ItemSettingGUI(parent),
25  ui(new Ui::IntervalSliderGUI),
26  m_minimum(0),
27  m_maximum(0)
28 {
29  ui->setupUi(this);
30 }
ItemSettingGUI(QWidget *parent=0)
Ui::IntervalSliderGUI * ui

◆ ~IntervalSliderGUI()

IntervalSliderGUI::~IntervalSliderGUI ( )
virtual

Definition at line 32 of file intervalslidergui.cpp.

References ui.

33 {
34  delete ui;
35 }
Ui::IntervalSliderGUI * ui

Member Function Documentation

◆ getCurrentValue()

double IntervalSliderGUI::getCurrentValue ( )
virtual

Implements ItemSettingGUI.

Definition at line 57 of file intervalslidergui.cpp.

References ui.

Referenced by SoapySDRInputGui::displaySettings(), and SoapySDROutputGui::displaySettings().

58 {
59  return ui->intervalSlider->value();
60 }
Ui::IntervalSliderGUI * ui
+ Here is the caller graph for this function:

◆ on_intervalSlider_valueChanged

void IntervalSliderGUI::on_intervalSlider_valueChanged ( int  value)
privateslot

Definition at line 68 of file intervalslidergui.cpp.

References arg(), ui, and ItemSettingGUI::valueChanged().

69 {
70  ui->valueText->setText(QString("%1").arg(value));
71  emit ItemSettingGUI::valueChanged(value);
72 }
void valueChanged(double value)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
Ui::IntervalSliderGUI * ui
+ Here is the call graph for this function:

◆ setInterval()

void IntervalSliderGUI::setInterval ( double  minimum,
double  maximum 
)

Definition at line 47 of file intervalslidergui.cpp.

References m_maximum, m_minimum, and ui.

Referenced by SoapySDRInputGui::createGlobalGainControl(), SoapySDROutputGui::createGlobalGainControl(), SoapySDRInputGui::createIndividualGainsControl(), and SoapySDROutputGui::createIndividualGainsControl().

48 {
49  ui->intervalSlider->blockSignals(true);
50  ui->intervalSlider->setMinimum(minimum);
51  ui->intervalSlider->setMaximum(maximum);
52  ui->intervalSlider->blockSignals(false);
53  m_minimum = minimum;
54  m_maximum = maximum;
55 }
Ui::IntervalSliderGUI * ui
+ Here is the caller graph for this function:

◆ setLabel()

void IntervalSliderGUI::setLabel ( const QString &  text)

Definition at line 37 of file intervalslidergui.cpp.

References ui.

Referenced by SoapySDRInputGui::createGlobalGainControl(), SoapySDROutputGui::createGlobalGainControl(), SoapySDRInputGui::createIndividualGainsControl(), and SoapySDROutputGui::createIndividualGainsControl().

38 {
39  ui->intervalLabel->setText(text);
40 }
Ui::IntervalSliderGUI * ui
+ Here is the caller graph for this function:

◆ setUnits()

void IntervalSliderGUI::setUnits ( const QString &  units)

Definition at line 42 of file intervalslidergui.cpp.

References ui.

Referenced by SoapySDRInputGui::createGlobalGainControl(), SoapySDROutputGui::createGlobalGainControl(), SoapySDRInputGui::createIndividualGainsControl(), and SoapySDROutputGui::createIndividualGainsControl().

43 {
44  ui->intervalUnits->setText(units);
45 }
Ui::IntervalSliderGUI * ui
+ Here is the caller graph for this function:

◆ setValue()

void IntervalSliderGUI::setValue ( double  value)
virtual

Implements ItemSettingGUI.

Definition at line 62 of file intervalslidergui.cpp.

References arg(), and ui.

Referenced by SoapySDRInputGui::displaySettings(), and SoapySDROutputGui::displaySettings().

63 {
64  ui->intervalSlider->setValue(value);
65  ui->valueText->setText(QString("%1").arg(ui->intervalSlider->value()));
66 }
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
Ui::IntervalSliderGUI * ui
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_maximum

double IntervalSliderGUI::m_maximum
private

Definition at line 50 of file intervalslidergui.h.

Referenced by setInterval().

◆ m_minimum

double IntervalSliderGUI::m_minimum
private

Definition at line 49 of file intervalslidergui.h.

Referenced by setInterval().

◆ ui

Ui::IntervalSliderGUI* IntervalSliderGUI::ui
private

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