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.
sdrgui
soapygui
complexfactorgui.h
Go to the documentation of this file.
1
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
3
// //
4
// This program is free software; you can redistribute it and/or modify //
5
// it under the terms of the GNU General Public License as published by //
6
// the Free Software Foundation as version 3 of the License, or //
7
// (at your option) any later version. //
8
// //
9
// This program is distributed in the hope that it will be useful, //
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12
// GNU General Public License V3 for more details. //
13
// //
14
// You should have received a copy of the GNU General Public License //
15
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
17
18
// This is an interface to an elementary GUI item used to get/set a normalized complex value from the GUI
19
// There is an automatic check to activate/deactivate possible automatic setting
20
// It is intended to be used primarily for DC offset and IQ imbalance corrections
21
22
#ifndef PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_COMPLEXFACTORGUI_H_
23
#define PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_COMPLEXFACTORGUI_H_
24
25
#include <QWidget>
26
#include <QString>
27
28
#include "
export.h
"
29
30
namespace
Ui
{
31
class
ComplexFactorGUI
;
32
}
33
34
class
SDRGUI_API
ComplexFactorGUI
:
public
QWidget
35
{
36
Q_OBJECT
37
public
:
38
explicit
ComplexFactorGUI
(QWidget *parent = 0);
39
~
ComplexFactorGUI
();
40
41
double
getModule()
const
;
42
double
getArgument()
const
;
43
bool
getAutomatic()
const
;
44
45
void
setModule(
double
value);
46
void
setArgument(
double
value);
47
void
setAutomatic(
bool
automatic);
48
void
setAutomaticEnable(
bool
enable);
49
50
void
setLabel(
const
QString& text);
51
void
setToolTip(
const
QString& text);
52
53
signals:
54
void
moduleChanged(
double
value);
55
void
argumentChanged(
double
value);
56
void
automaticChanged(
bool
value);
57
58
private
slots:
59
void
on_automatic_toggled(
bool
set
);
60
void
on_module_valueChanged(
int
value);
61
void
on_arg_valueChanged(
int
value);
62
63
private
:
64
Ui::ComplexFactorGUI*
ui
;
65
};
66
67
#endif
/* PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_COMPLEXFACTORGUI_H_ */
ComplexFactorGUI::ui
Ui::ComplexFactorGUI * ui
Definition:
complexfactorgui.h:64
export.h
Ui
Definition:
chanalyzergui.h:38
SDRGUI_API
#define SDRGUI_API
Definition:
export.h:52
ComplexFactorGUI
Definition:
complexfactorgui.h:34
Generated on Fri Aug 2 2019 17:56:34 for SDRAngel by
1.8.13