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.
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
DynamicItemSettingGUI Class Reference

#include <dynamicitemsettinggui.h>

Inherits QObject.

+ Collaboration diagram for DynamicItemSettingGUI:

Signals

void valueChanged (QString itemName, double value)
 

Public Member Functions

 DynamicItemSettingGUI (ItemSettingGUI *itemSettingGUI, const QString &name, QObject *parent=0)
 
 ~DynamicItemSettingGUI ()
 
const QString & getName () const
 
double getValue () const
 
void setValue (double value)
 

Private Slots

void processValueChanged (double value)
 

Private Attributes

ItemSettingGUIm_itemSettingGUI
 
QString m_name
 

Detailed Description

Definition at line 24 of file dynamicitemsettinggui.h.

Constructor & Destructor Documentation

◆ DynamicItemSettingGUI()

DynamicItemSettingGUI::DynamicItemSettingGUI ( ItemSettingGUI itemSettingGUI,
const QString &  name,
QObject *  parent = 0 
)

Definition at line 20 of file dynamicitemsettinggui.cpp.

References m_itemSettingGUI, processValueChanged(), and valueChanged().

20  :
21  QObject(parent),
22  m_itemSettingGUI(itemSettingGUI),
23  m_name(name)
24 {
25  connect(m_itemSettingGUI, SIGNAL(valueChanged(double)), this, SLOT(processValueChanged(double)));
26 }
ItemSettingGUI * m_itemSettingGUI
void processValueChanged(double value)
void valueChanged(QString itemName, double value)
+ Here is the call graph for this function:

◆ ~DynamicItemSettingGUI()

DynamicItemSettingGUI::~DynamicItemSettingGUI ( )

Definition at line 28 of file dynamicitemsettinggui.cpp.

References m_itemSettingGUI, processValueChanged(), and valueChanged().

29 {
30  disconnect(m_itemSettingGUI, SIGNAL(valueChanged(double)), this, SLOT(processValueChanged(double)));
31 }
ItemSettingGUI * m_itemSettingGUI
void processValueChanged(double value)
void valueChanged(QString itemName, double value)
+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const QString& DynamicItemSettingGUI::getName ( ) const
inline

Definition at line 31 of file dynamicitemsettinggui.h.

31 { return m_name; }

◆ getValue()

double DynamicItemSettingGUI::getValue ( ) const
inline

Definition at line 32 of file dynamicitemsettinggui.h.

32 { return m_itemSettingGUI->getCurrentValue(); }
ItemSettingGUI * m_itemSettingGUI
virtual double getCurrentValue()=0

◆ processValueChanged

void DynamicItemSettingGUI::processValueChanged ( double  value)
privateslot

Definition at line 33 of file dynamicitemsettinggui.cpp.

References m_name, and valueChanged().

Referenced by DynamicItemSettingGUI(), and ~DynamicItemSettingGUI().

33  {
34  emit valueChanged(m_name, value);
35 }
void valueChanged(QString itemName, double value)
+ Here is the caller graph for this function:

◆ setValue()

void DynamicItemSettingGUI::setValue ( double  value)
inline

Definition at line 33 of file dynamicitemsettinggui.h.

33 { m_itemSettingGUI->setValue(value); }
virtual void setValue(double value)=0
ItemSettingGUI * m_itemSettingGUI

◆ valueChanged

void DynamicItemSettingGUI::valueChanged ( QString  itemName,
double  value 
)
signal

Referenced by DynamicItemSettingGUI(), processValueChanged(), and ~DynamicItemSettingGUI().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_itemSettingGUI

ItemSettingGUI* DynamicItemSettingGUI::m_itemSettingGUI
private

Definition at line 42 of file dynamicitemsettinggui.h.

Referenced by DynamicItemSettingGUI(), and ~DynamicItemSettingGUI().

◆ m_name

QString DynamicItemSettingGUI::m_name
private

Definition at line 43 of file dynamicitemsettinggui.h.

Referenced by processValueChanged().


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