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.
transverterdialog.cpp
Go to the documentation of this file.
1 // Copyright (C) 2017 F4EXB //
3 // written by Edouard Griffiths //
4 // //
5 // OpenGL interface modernization. //
6 // See: http://doc.qt.io/qt-5/qopenglshaderprogram.html //
7 // //
8 // This program is free software; you can redistribute it and/or modify //
9 // it under the terms of the GNU General Public License as published by //
10 // the Free Software Foundation as version 3 of the License, or //
11 // (at your option) any later version. //
12 // //
13 // This program is distributed in the hope that it will be useful, //
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
16 // GNU General Public License V3 for more details. //
17 // //
18 // You should have received a copy of the GNU General Public License //
19 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
21 
22 #include "transverterdialog.h"
23 
24 #include "ui_transverterdialog.h"
25 
26 
27 TransverterDialog::TransverterDialog(qint64& deltaFrequency, bool& deltaFrequencyActive, QWidget* parent) :
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 }
40 
42 {
43  delete ui;
44 }
45 
47 {
48  m_deltaFrequency = ui->deltaFrequency->getValueNew();
49  m_deltaFrequencyActive = ui->deltaFrequencyActive->isChecked();
50  QDialog::accept();
51 }
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
TransverterDialog(qint64 &deltaFrequency, bool &deltaFrequencyActive, QWidget *parent=0)
Ui::TransverterDialog * ui