From f7fc865d93f8448779d320ce152f0fa44a64fcad Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 4 Sep 2023 19:06:44 +0100 Subject: New upstream version 0.0.0.67 --- QtSoundModem.h | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 QtSoundModem.h (limited to 'QtSoundModem.h') diff --git a/QtSoundModem.h b/QtSoundModem.h new file mode 100644 index 0000000..869ae25 --- /dev/null +++ b/QtSoundModem.h @@ -0,0 +1,106 @@ +#pragma once + +#include +#include "ui_QtSoundModem.h" +#include "ui_calibrateDialog.h" +#include "ui_devicesDialog.h" +#include "ui_filterWindow.h" +#include "ui_ModemDialog.h" +#include "QThread" +#include +#include +#include +#include +#include +#include + +#include "tcpCode.h" + + +class QtSoundModem : public QMainWindow +{ + Q_OBJECT + +public: + + QtSoundModem(QWidget *parent = Q_NULLPTR); + void changeEvent(QEvent * e); + void closeEvent(QCloseEvent * event); + ~QtSoundModem(); + + void RefreshWaterfall(int snd_ch, unsigned char * Data); + void initWaterfall(int chan, int state); + void show_grid(); + +private slots: + + void doDevices(); + void MinimizetoTray(); + void TrayActivated(QSystemTrayIcon::ActivationReason reason); + void CWIDTimer(); + void MyTimerSlot(); + void returnPressed(); + void clickedSlotI(int i); + void doModems(); + void doFilter(int Chan, int Filter); + void SoundModeChanged(bool State); + void DualPTTChanged(bool State); + void CATChanged(bool State); + void PTTPortChanged(int); + void deviceaccept(); + void devicereject(); + void modemaccept(); + void modemSave(); + void modemreject(); + void doRSIDA(); + void doRSIDB(); + void doRSIDC(); + void doRSIDD(); + void handleButton(int Port, int Act); + void doCalibrate(); + void doAbout(); + void doRestartWF(); + void doupdateDCD(int, int); + void sendtoTrace(char * Msg, int tx); + void preEmphAllAChanged(int); + void preEmphAllBChanged(int); + void preEmphAllCChanged(int state); + void preEmphAllDChanged(int state); + void menuChecked(); + void onTEselectionChanged(); + void clickedSlot(); + +protected: + + bool eventFilter(QObject * obj, QEvent * evt); + void resizeEvent(QResizeEvent *event) override; + +private: + Ui::QtSoundModemClass ui; + QTableWidget* sessionTable; + QStringList m_TableHeader; + + QMenu *setupMenu; + QMenu *viewMenu; + + QAction *actDevices; + QAction *actModems; + QAction *actMintoTray; + QAction *actCalib; + QAction *actAbout; + QAction *actRestartWF; + QAction *actWaterfall1; + QAction *actWaterfall2; + + + void RefreshSpectrum(unsigned char * Data); +}; + +class myResize : public QObject +{ + Q_OBJECT + +protected: + bool eventFilter(QObject *obj, QEvent *event) override; +}; + -- cgit v1.2.3