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
TransverterDialog Class Reference

#include <transverterdialog.h>

Inherits QDialog.

Public Member Functions

 TransverterDialog (qint64 &deltaFrequency, bool &deltaFrequencyActive, QWidget *parent=0)
 
 ~TransverterDialog ()
 

Private Slots

void accept ()
 

Private Attributes

Ui::TransverterDialog * ui
 
qint64 & m_deltaFrequency
 
bool & m_deltaFrequencyActive
 

Detailed Description

Definition at line 33 of file transverterdialog.h.

Constructor & Destructor Documentation

◆ TransverterDialog()

TransverterDialog::TransverterDialog ( qint64 &  deltaFrequency,
bool &  deltaFrequencyActive,
QWidget *  parent = 0 
)
explicit

Definition at line 27 of file transverterdialog.cpp.

References arg(), ColorMapper::GrayGold, m_deltaFrequency, m_deltaFrequencyActive, and ui.

27  :
28  QDialog(parent),
29  ui(new Ui::TransverterDialog),
30  m_deltaFrequency(deltaFrequency),
31  m_deltaFrequencyActive(deltaFrequencyActive)
32 {
33  ui->setupUi(this);
34  ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
35  ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
36  ui->deltaFrequency->setValueRange(false, 10, -9999999999L, 9999999999L);
37  ui->deltaFrequency->setValue(m_deltaFrequency);
38  ui->deltaFrequencyActive->setChecked(m_deltaFrequencyActive);
39 }
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
Ui::TransverterDialog * ui
+ Here is the call graph for this function:

◆ ~TransverterDialog()

TransverterDialog::~TransverterDialog ( )

Definition at line 41 of file transverterdialog.cpp.

References ui.

42 {
43  delete ui;
44 }
Ui::TransverterDialog * ui

Member Function Documentation

◆ accept

void TransverterDialog::accept ( )
privateslot

Definition at line 46 of file transverterdialog.cpp.

References m_deltaFrequency, m_deltaFrequencyActive, and ui.

47 {
48  m_deltaFrequency = ui->deltaFrequency->getValueNew();
49  m_deltaFrequencyActive = ui->deltaFrequencyActive->isChecked();
50  QDialog::accept();
51 }
Ui::TransverterDialog * ui

Member Data Documentation

◆ m_deltaFrequency

qint64& TransverterDialog::m_deltaFrequency
private

Definition at line 42 of file transverterdialog.h.

Referenced by accept(), and TransverterDialog().

◆ m_deltaFrequencyActive

bool& TransverterDialog::m_deltaFrequencyActive
private

Definition at line 43 of file transverterdialog.h.

Referenced by accept(), and TransverterDialog().

◆ ui

Ui::TransverterDialog* TransverterDialog::ui
private

Definition at line 41 of file transverterdialog.h.

Referenced by accept(), TransverterDialog(), and ~TransverterDialog().


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