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.
freedvdemodgui.h
Go to the documentation of this file.
1 // Copyright (C) 2019 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 #ifndef INCLUDE_FREEDVDEMODGUI_H
19 #define INCLUDE_FREEDVDEMODGUI_H
20 
21 #include <QIcon>
22 
24 #include "gui/rollupwidget.h"
25 #include "dsp/channelmarker.h"
26 #include "dsp/movingaverage.h"
27 #include "util/messagequeue.h"
28 #include "freedvdemodsettings.h"
29 
30 class PluginAPI;
31 class DeviceUISet;
32 
33 class AudioFifo;
34 class FreeDVDemod;
35 class SpectrumVis;
36 class BasebandSampleSink;
37 
38 namespace Ui {
39  class FreeDVDemodGUI;
40 }
41 
43  Q_OBJECT
44 
45 public:
46  static FreeDVDemodGUI* create(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel);
47  virtual void destroy();
48 
49  void setName(const QString& name);
50  QString getName() const;
51  virtual qint64 getCenterFrequency() const;
52  virtual void setCenterFrequency(qint64 centerFrequency);
53 
54  void resetToDefaults();
55  QByteArray serialize() const;
56  bool deserialize(const QByteArray& data);
57  virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
58  virtual bool handleMessage(const Message& message);
59 
60 public slots:
61  void channelMarkerChangedByCursor();
62  void channelMarkerHighlightedByCursor();
63 
64 private:
65  Ui::FreeDVDemodGUI* ui;
77 
81 
82  QIcon m_iconDSBUSB;
83  QIcon m_iconDSBLSB;
84 
85  explicit FreeDVDemodGUI(PluginAPI* pluginAPI, DeviceUISet* deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = 0);
86  virtual ~FreeDVDemodGUI();
87 
88  bool blockApplySettings(bool block);
89  void applySettings(bool force = false);
90  void applyBandwidths(int spanLog2, bool force = false);
91  void displayBandwidths(int spanLog2);
92  void displaySettings();
93 
94  void leaveEvent(QEvent*);
95  void enterEvent(QEvent*);
96 
97 private slots:
98  void on_deltaFrequency_changed(qint64 value);
99  void on_reSync_clicked(bool checked);
100  void on_freeDVMode_currentIndexChanged(int index);
101  void on_volume_valueChanged(int value);
102  void on_volumeIn_valueChanged(int value);
103  void on_agc_toggled(bool checked);
104  void on_audioMute_toggled(bool checked);
105  void on_spanLog2_valueChanged(int value);
106  void onWidgetRolled(QWidget* widget, bool rollDown);
107  void onMenuDialogCalled(const QPoint& p);
108  void handleInputMessages();
109  void audioSelect();
110  void tick();
111 };
112 
113 #endif // INCLUDE_FREEDVDEMODGUI_H
bool m_audioFlipChannels
Ui::FreeDVDemodGUI * ui
SpectrumVis * m_spectrumVis
DeviceUISet * m_deviceUISet
virtual MessageQueue * getInputMessageQueue()
unsigned int uint32_t
Definition: rtptypes_win.h:46
uint32_t m_tickCount
void * create(QString type)
PluginAPI * m_pluginAPI
FreeDVDemodSettings m_settings
MessageQueue m_inputMessageQueue
ChannelMarker m_channelMarker
FreeDVDemod * m_freeDVDemod