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

#include <externalclockdialog.h>

Inherits QDialog.

Public Member Functions

 ExternalClockDialog (qint64 &externalClockFrequency, bool &externalClockFrequencyActive, QWidget *parent=0)
 
 ~ExternalClockDialog ()
 

Private Slots

void accept ()
 

Private Attributes

Ui::ExternalClockDialog * ui
 
qint64 & m_externalClockFrequency
 
bool & m_externalClockFrequencyActive
 

Detailed Description

Definition at line 33 of file externalclockdialog.h.

Constructor & Destructor Documentation

◆ ExternalClockDialog()

ExternalClockDialog::ExternalClockDialog ( qint64 &  externalClockFrequency,
bool &  externalClockFrequencyActive,
QWidget *  parent = 0 
)
explicit

Definition at line 26 of file externalclockdialog.cpp.

References ColorMapper::GrayGold, and ui.

26  :
27  QDialog(parent),
28  ui(new Ui::ExternalClockDialog),
29  m_externalClockFrequency(externalClockFrequency),
30  m_externalClockFrequencyActive(externalClockFrequencyActive)
31 {
32  ui->setupUi(this);
33  ui->externalClockFrequencyLabel->setText("f");
34  ui->externalClockFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
35  ui->externalClockFrequency->setValueRange(true, 9, 5000000L, 300000000L);
36  ui->externalClockFrequency->setValue(externalClockFrequency);
37  ui->externalClockFrequencyActive->setChecked(externalClockFrequencyActive);
38 }
Ui::ExternalClockDialog * ui

◆ ~ExternalClockDialog()

ExternalClockDialog::~ExternalClockDialog ( )

Definition at line 40 of file externalclockdialog.cpp.

References ui.

41 {
42  delete ui;
43 }
Ui::ExternalClockDialog * ui

Member Function Documentation

◆ accept

void ExternalClockDialog::accept ( )
privateslot

Definition at line 45 of file externalclockdialog.cpp.

References m_externalClockFrequency, m_externalClockFrequencyActive, and ui.

46 {
47  m_externalClockFrequency = ui->externalClockFrequency->getValueNew();
48  m_externalClockFrequencyActive = ui->externalClockFrequencyActive->isChecked();
49  QDialog::accept();
50 }
Ui::ExternalClockDialog * ui

Member Data Documentation

◆ m_externalClockFrequency

qint64& ExternalClockDialog::m_externalClockFrequency
private

Definition at line 42 of file externalclockdialog.h.

Referenced by accept().

◆ m_externalClockFrequencyActive

bool& ExternalClockDialog::m_externalClockFrequencyActive
private

Definition at line 43 of file externalclockdialog.h.

Referenced by accept().

◆ ui

Ui::ExternalClockDialog* ExternalClockDialog::ui
private

Definition at line 41 of file externalclockdialog.h.

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


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