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.
atvdemodgui.h
Go to the documentation of this file.
1 // Copyright (C) 2017 F4HKW //
3 // for F4EXB / SDRAngel //
4 // //
5 // This program is free software; you can redistribute it and/or modify //
6 // it under the terms of the GNU General Public License as published by //
7 // the Free Software Foundation as version 3 of the License, or //
8 // (at your option) any later version. //
9 // //
10 // This program is distributed in the hope that it will be useful, //
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13 // GNU General Public License V3 for more details. //
14 // //
15 // You should have received a copy of the GNU General Public License //
16 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
18 
19 #ifndef INCLUDE_ATVDEMODGUI_H
20 #define INCLUDE_ATVDEMODGUI_H
21 
23 #include "gui/rollupwidget.h"
24 #include "dsp/channelmarker.h"
25 #include "util/movingaverage.h"
26 #include "util/messagequeue.h"
27 
28 class PluginAPI;
29 class DeviceUISet;
30 class BasebandSampleSink;
31 class ATVDemod;
32 class ScopeVis;
33 
34 namespace Ui
35 {
36  class ATVDemodGUI;
37 }
38 
40 {
41  Q_OBJECT
42 
43 public:
44  static ATVDemodGUI* create(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel);
45  virtual void destroy();
46 
47  void setName(const QString& strName);
48  QString getName() const;
49  virtual qint64 getCenterFrequency() const;
50  virtual void setCenterFrequency(qint64 intCenterFrequency);
51 
52  void resetToDefaults();
53  QByteArray serialize() const;
54  bool deserialize(const QByteArray& arrData);
55  virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
56  virtual bool handleMessage(const Message& objMessage);
57 
58 public slots:
59  void channelMarkerChangedByCursor();
60  void channelMarkerHighlightedByCursor();
61 
62 private:
63  Ui::ATVDemodGUI* ui;
68 
70 
73 
75 
81 
82  explicit ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* objParent = 0);
83  virtual ~ATVDemodGUI();
84 
85  void blockApplySettings(bool blnBlock);
86  void applySettings();
87  void applyRFSettings();
88  void setChannelMarkerBandwidth();
89  void setRFFiltersSlidersRange(int sampleRate);
90  void lineTimeUpdate();
91  void topTimeUpdate();
92  static float getFps(int fpsIndex);
93  static float getNominalLineTime(int nbLinesIndex, int fpsIndex);
94  static int getNumberOfLines(int nbLinesIndex);
95 
96  void leaveEvent(QEvent*);
97  void enterEvent(QEvent*);
98 
99 private slots:
100  void handleSourceMessages();
101  void onWidgetRolled(QWidget* widget, bool rollDown);
102  void tick();
103  void on_synchLevel_valueChanged(int value);
104  void on_blackLevel_valueChanged(int value);
105  void on_lineTime_valueChanged(int value);
106  void on_topTime_valueChanged(int value);
107  void on_hSync_clicked();
108  void on_vSync_clicked();
109  void on_invertVideo_clicked();
110  void on_halfImage_clicked();
111  void on_modulation_currentIndexChanged(int index);
112  void on_nbLines_currentIndexChanged(int index);
113  void on_fps_currentIndexChanged(int index);
114  void on_standard_currentIndexChanged(int index);
115  void on_reset_clicked(bool checked);
116  void on_rfBW_valueChanged(int value);
117  void on_rfOppBW_valueChanged(int value);
118  void on_rfFiltering_toggled(bool checked);
119  void on_decimatorEnable_toggled(bool checked);
120  void on_deltaFrequency_changed(qint64 value);
121  void on_bfo_valueChanged(int value);
122  void on_fmDeviation_valueChanged(int value);
123  void on_screenTabWidget_currentChanged(int index);
124 };
125 
126 #endif // INCLUDE_ATVDEMODGUI_H
DeviceUISet * m_deviceUISet
Definition: atvdemodgui.h:65
Ui::ATVDemodGUI * ui
Definition: atvdemodgui.h:63
PluginAPI * m_pluginAPI
Definition: atvdemodgui.h:64
int m_inputSampleRate
Definition: atvdemodgui.h:79
int m_intTickCount
Definition: atvdemodgui.h:72
int m_rfSliderDivisor
Definition: atvdemodgui.h:78
void * create(QString type)
virtual MessageQueue * getInputMessageQueue()
Definition: atvdemodgui.h:55
float m_fltLineTimeMultiplier
Definition: atvdemodgui.h:76
MovingAverageUtil< double, double, 4 > m_objMagSqAverage
Definition: atvdemodgui.h:71
float m_fltTopTimeMultiplier
Definition: atvdemodgui.h:77
ScopeVis * m_scopeVis
Definition: atvdemodgui.h:74
ChannelMarker m_channelMarker
Definition: atvdemodgui.h:66
ATVDemod * m_atvDemod
Definition: atvdemodgui.h:67
MessageQueue m_inputMessageQueue
Definition: atvdemodgui.h:80
bool m_blnDoApplySettings
Definition: atvdemodgui.h:69