2022-01-18 09:03:41 +00:00
|
|
|
#ifdef BUILD_WFSERVER
|
2022-01-17 17:23:55 +00:00
|
|
|
#include "servermain.h"
|
|
|
|
#else
|
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
#ifndef WFMAIN_H
|
|
|
|
#define WFMAIN_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2021-05-15 03:00:38 +00:00
|
|
|
#include <QCloseEvent>
|
2018-06-19 19:58:52 +00:00
|
|
|
#include <QThread>
|
|
|
|
#include <QString>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QTimer>
|
2018-11-24 08:10:05 +00:00
|
|
|
#include <QSettings>
|
2018-11-28 06:02:37 +00:00
|
|
|
#include <QShortcut>
|
2021-06-01 16:48:19 +00:00
|
|
|
#include <QThread>
|
2021-01-25 00:16:38 +00:00
|
|
|
#include <QMetaType>
|
2022-08-18 05:38:44 +00:00
|
|
|
#include <QMutex>
|
|
|
|
#include <QMutexLocker>
|
2022-08-19 16:41:13 +00:00
|
|
|
#include <QColorDialog>
|
|
|
|
#include <QColor>
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2021-02-07 20:07:26 +00:00
|
|
|
#include "logcategories.h"
|
2022-11-27 04:45:32 +00:00
|
|
|
#include "wfviewtypes.h"
|
|
|
|
#include "prefs.h"
|
2018-06-19 19:58:52 +00:00
|
|
|
#include "commhandler.h"
|
|
|
|
#include "rigcommander.h"
|
2021-11-23 00:39:10 +00:00
|
|
|
#include "rigstate.h"
|
2018-11-24 08:10:05 +00:00
|
|
|
#include "freqmemory.h"
|
2021-01-25 00:16:38 +00:00
|
|
|
#include "rigidentities.h"
|
2021-03-31 06:37:35 +00:00
|
|
|
#include "repeaterattributes.h"
|
2021-01-25 00:16:38 +00:00
|
|
|
|
2022-01-22 15:28:41 +00:00
|
|
|
#include "packettypes.h"
|
2021-02-11 05:22:38 +00:00
|
|
|
#include "calibrationwindow.h"
|
2021-03-31 06:37:35 +00:00
|
|
|
#include "repeatersetup.h"
|
2021-02-13 18:02:45 +00:00
|
|
|
#include "satellitesetup.h"
|
2021-07-06 06:56:24 +00:00
|
|
|
#include "transceiveradjustments.h"
|
2023-01-21 06:11:30 +00:00
|
|
|
#include "cwsender.h"
|
2023-02-10 21:03:37 +00:00
|
|
|
#include "bandbuttons.h"
|
2023-02-12 02:39:02 +00:00
|
|
|
#include "frequencyinputwidget.h"
|
2023-02-19 03:25:02 +00:00
|
|
|
#include "settingswidget.h"
|
2021-02-16 16:16:46 +00:00
|
|
|
#include "udpserver.h"
|
2021-03-01 16:26:59 +00:00
|
|
|
#include "qledlabel.h"
|
2021-04-19 16:26:26 +00:00
|
|
|
#include "rigctld.h"
|
2021-07-08 07:31:59 +00:00
|
|
|
#include "aboutbox.h"
|
2022-01-21 19:23:32 +00:00
|
|
|
#include "selectradio.h"
|
2022-08-21 07:17:44 +00:00
|
|
|
#include "colorprefs.h"
|
2022-09-15 00:07:23 +00:00
|
|
|
#include "loggingwindow.h"
|
2022-09-29 16:17:51 +00:00
|
|
|
#include "cluster.h"
|
2022-12-28 16:57:05 +00:00
|
|
|
#include "audiodevices.h"
|
2023-01-19 06:27:06 +00:00
|
|
|
#include "sidebandchooser.h"
|
2021-02-10 17:32:56 +00:00
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
#include <qcustomplot.h>
|
2018-11-24 08:10:05 +00:00
|
|
|
#include <qserialportinfo.h>
|
2022-04-22 10:11:21 +00:00
|
|
|
#include "usbcontroller.h"
|
2022-10-22 19:55:08 +00:00
|
|
|
#include "controllersetup.h"
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2021-06-21 07:36:57 +00:00
|
|
|
#include <deque>
|
2021-06-25 08:24:21 +00:00
|
|
|
#include <memory>
|
2021-06-21 07:36:57 +00:00
|
|
|
|
2022-05-12 00:46:20 +00:00
|
|
|
#include <portaudio.h>
|
2022-05-14 14:05:48 +00:00
|
|
|
#ifndef Q_OS_LINUX
|
2022-05-12 00:46:20 +00:00
|
|
|
#include "RtAudio.h"
|
|
|
|
#else
|
|
|
|
#include "rtaudio/RtAudio.h"
|
|
|
|
#endif
|
|
|
|
|
2022-08-21 23:47:17 +00:00
|
|
|
#define numColorPresetsTotal (5)
|
2022-05-12 00:46:20 +00:00
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
namespace Ui {
|
|
|
|
class wfmain;
|
|
|
|
}
|
|
|
|
|
|
|
|
class wfmain : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-23 16:42:36 +00:00
|
|
|
explicit wfmain(const QString settingsFile, const QString logFile, bool debugMode, QWidget *parent = 0);
|
2018-06-19 19:58:52 +00:00
|
|
|
~wfmain();
|
2022-09-15 00:07:23 +00:00
|
|
|
static void messageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg);
|
|
|
|
void handleLogText(QString text);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
signals:
|
2021-05-30 22:08:22 +00:00
|
|
|
// Basic to rig:
|
2021-05-31 06:26:36 +00:00
|
|
|
void setCIVAddr(unsigned char newRigCIVAddr);
|
2021-11-07 06:59:03 +00:00
|
|
|
void setRigID(unsigned char rigID);
|
2021-12-30 09:52:23 +00:00
|
|
|
void setRTSforPTT(bool enabled);
|
2021-05-30 22:08:22 +00:00
|
|
|
|
2022-09-26 00:44:49 +00:00
|
|
|
|
2021-04-20 05:55:39 +00:00
|
|
|
void sendPowerOn();
|
|
|
|
void sendPowerOff();
|
|
|
|
|
|
|
|
// Frequency, mode, band:
|
2018-06-19 19:58:52 +00:00
|
|
|
void getFrequency();
|
2021-08-29 10:51:53 +00:00
|
|
|
void setFrequency(unsigned char vfo, freqt freq);
|
2018-06-19 19:58:52 +00:00
|
|
|
void getMode();
|
2021-02-13 18:02:45 +00:00
|
|
|
void setMode(unsigned char modeIndex, unsigned char modeFilter);
|
2021-06-25 08:24:21 +00:00
|
|
|
void setMode(mode_info);
|
2023-01-27 20:44:23 +00:00
|
|
|
void selectVFO(vfo_t vfo);
|
|
|
|
void sendVFOSwap();
|
|
|
|
void sendVFOEqualAB();
|
|
|
|
void sendVFOEqualMS();
|
2021-05-09 06:46:44 +00:00
|
|
|
void setDataMode(bool dataOn, unsigned char filter);
|
2018-06-25 07:34:33 +00:00
|
|
|
void getDataMode();
|
2021-02-19 08:14:40 +00:00
|
|
|
void getModInput(bool dataOn);
|
|
|
|
void setModInput(rigInput input, bool dataOn);
|
2018-11-16 22:08:21 +00:00
|
|
|
void getBandStackReg(char band, char regCode);
|
2021-02-16 04:32:14 +00:00
|
|
|
void getDebug();
|
2021-04-24 07:31:51 +00:00
|
|
|
void getRitEnabled();
|
|
|
|
void getRitValue();
|
|
|
|
void setRitValue(int ritValue);
|
|
|
|
void setRitEnable(bool ritEnabled);
|
2021-02-16 04:32:14 +00:00
|
|
|
|
2021-04-07 05:06:08 +00:00
|
|
|
// Repeater:
|
|
|
|
void getDuplexMode();
|
2023-02-01 17:21:17 +00:00
|
|
|
void setQuickSplit(bool qsOn);
|
2021-04-07 05:06:08 +00:00
|
|
|
void getTone();
|
|
|
|
void getTSQL();
|
|
|
|
void getDTCS();
|
|
|
|
void getRptAccessMode();
|
2023-01-27 22:05:50 +00:00
|
|
|
void setRepeaterAccessMode(rptrAccessData_t rd);
|
|
|
|
void setTone(rptrTone_t t);
|
|
|
|
void setTSQL(rptrTone_t t);
|
2023-02-01 02:00:12 +00:00
|
|
|
void getToneEnabled();
|
|
|
|
void getTSQLEnabled();
|
2023-02-01 05:52:24 +00:00
|
|
|
void setToneEnabled(bool enabled);
|
|
|
|
void setTSQLEnabled(bool enabled);
|
2023-01-28 05:42:57 +00:00
|
|
|
void setRptDuplexOffset(freqt f);
|
|
|
|
void getRptDuplexOffset();
|
2021-04-07 05:06:08 +00:00
|
|
|
|
2021-02-16 04:32:14 +00:00
|
|
|
// Level get:
|
|
|
|
void getLevels(); // get all levels
|
2018-11-16 22:08:21 +00:00
|
|
|
void getRfGain();
|
2018-11-17 06:19:44 +00:00
|
|
|
void getAfGain();
|
2018-11-18 08:01:20 +00:00
|
|
|
void getSql();
|
2021-11-05 17:09:31 +00:00
|
|
|
void getIfShift();
|
|
|
|
void getTPBFInner();
|
|
|
|
void getTPBFOuter();
|
2021-02-16 04:32:14 +00:00
|
|
|
void getTxPower();
|
|
|
|
void getMicGain();
|
2021-02-16 06:33:21 +00:00
|
|
|
void getSpectrumRefLevel();
|
2021-02-20 08:05:23 +00:00
|
|
|
void getModInputLevel(rigInput input);
|
2023-01-13 18:14:11 +00:00
|
|
|
void getMeters(meterKind meter);
|
|
|
|
void getPassband();
|
2023-01-18 18:52:05 +00:00
|
|
|
void getCwPitch();
|
|
|
|
void getPskTone();
|
|
|
|
void getRttyMark();
|
2023-01-13 18:14:11 +00:00
|
|
|
|
2021-02-16 04:32:14 +00:00
|
|
|
// Level set:
|
2018-11-17 06:19:44 +00:00
|
|
|
void setRfGain(unsigned char level);
|
|
|
|
void setAfGain(unsigned char level);
|
2021-02-11 05:22:38 +00:00
|
|
|
void setSql(unsigned char level);
|
2021-11-05 17:09:31 +00:00
|
|
|
void setIFShift(unsigned char level);
|
|
|
|
void setTPBFInner(unsigned char level);
|
|
|
|
void setTPBFOuter(unsigned char level);
|
2023-01-13 18:14:11 +00:00
|
|
|
|
2021-11-05 17:09:31 +00:00
|
|
|
void setIFShiftWindow(unsigned char level);
|
|
|
|
void setTPBFInnerWindow(unsigned char level);
|
|
|
|
void setTPBFOuterWindow(unsigned char level);
|
2021-02-16 04:32:14 +00:00
|
|
|
void setMicGain(unsigned char);
|
|
|
|
void setCompLevel(unsigned char);
|
|
|
|
void setTxPower(unsigned char);
|
|
|
|
void setMonitorLevel(unsigned char);
|
|
|
|
void setVoxGain(unsigned char);
|
|
|
|
void setAntiVoxGain(unsigned char);
|
2021-02-16 05:40:31 +00:00
|
|
|
void setSpectrumRefLevel(int);
|
2021-02-20 08:05:23 +00:00
|
|
|
|
|
|
|
void setModLevel(rigInput input, unsigned char level);
|
|
|
|
void setACCGain(unsigned char level);
|
|
|
|
void setACCAGain(unsigned char level);
|
|
|
|
void setACCBGain(unsigned char level);
|
|
|
|
void setUSBGain(unsigned char level);
|
|
|
|
void setLANGain(unsigned char level);
|
2023-01-13 18:14:11 +00:00
|
|
|
void setPassband(quint16 pass);
|
2021-02-16 01:15:28 +00:00
|
|
|
|
2021-04-08 06:35:24 +00:00
|
|
|
// PTT, ATU, ATT, Antenna, Preamp:
|
|
|
|
void getPTT();
|
2023-01-21 06:11:30 +00:00
|
|
|
void setPTT(bool pttOn);
|
2021-04-08 06:35:24 +00:00
|
|
|
void getAttenuator();
|
|
|
|
void getPreamp();
|
|
|
|
void getAntenna();
|
|
|
|
void setAttenuator(unsigned char att);
|
|
|
|
void setPreamp(unsigned char pre);
|
2021-07-16 16:08:55 +00:00
|
|
|
void setAntenna(unsigned char ant, bool rx);
|
2018-11-17 06:19:44 +00:00
|
|
|
void startATU();
|
2018-11-17 07:13:59 +00:00
|
|
|
void setATU(bool atuEnabled);
|
2018-12-20 18:56:54 +00:00
|
|
|
void getATUStatus();
|
2021-04-08 06:35:24 +00:00
|
|
|
|
2023-01-21 06:11:30 +00:00
|
|
|
// CW Keying:
|
|
|
|
void sendCW(QString message);
|
|
|
|
void stopCW();
|
|
|
|
void getKeySpeed();
|
|
|
|
void setKeySpeed(unsigned char wpm);
|
2023-01-25 18:01:24 +00:00
|
|
|
void setCwPitch(unsigned char pitch);
|
2023-01-21 06:11:30 +00:00
|
|
|
void setCWBreakMode(unsigned char breakMode);
|
|
|
|
void getCWBreakMode();
|
|
|
|
|
2021-07-09 19:02:50 +00:00
|
|
|
// Time and date:
|
|
|
|
void setTime(timekind t);
|
|
|
|
void setDate(datekind d);
|
|
|
|
void setUTCOffset(timekind t);
|
|
|
|
|
2021-01-30 06:09:09 +00:00
|
|
|
void getRigID(); // this is the model of the rig
|
|
|
|
void getRigCIV(); // get the rig's CIV addr
|
2018-06-19 19:58:52 +00:00
|
|
|
void spectOutputEnable();
|
|
|
|
void spectOutputDisable();
|
|
|
|
void scopeDisplayEnable();
|
|
|
|
void scopeDisplayDisable();
|
2021-03-01 05:41:27 +00:00
|
|
|
void setScopeMode(spectrumMode spectMode);
|
2018-06-19 19:58:52 +00:00
|
|
|
void setScopeSpan(char span);
|
|
|
|
void setScopeEdge(char edge);
|
2021-02-06 07:58:17 +00:00
|
|
|
void setScopeFixedEdge(double startFreq, double endFreq, unsigned char edgeNumber);
|
2018-12-18 22:34:04 +00:00
|
|
|
void getScopeMode();
|
|
|
|
void getScopeEdge();
|
|
|
|
void getScopeSpan();
|
2019-02-01 20:21:54 +00:00
|
|
|
void sayFrequency();
|
|
|
|
void sayMode();
|
|
|
|
void sayAll();
|
2022-04-18 19:29:50 +00:00
|
|
|
void sendCommSetup(unsigned char rigCivAddr, QString rigSerialPort, quint32 rigBaudRate,QString vsp, quint16 tcp, quint8 wf);
|
2022-04-08 13:40:05 +00:00
|
|
|
void sendCommSetup(unsigned char rigCivAddr, udpPreferences prefs, audioSetup rxSetup, audioSetup txSetup, QString vsp, quint16 tcp);
|
2021-02-07 12:59:41 +00:00
|
|
|
void sendCloseComm();
|
2021-02-27 00:37:00 +00:00
|
|
|
void sendChangeLatency(quint16 latency);
|
2021-02-16 16:16:46 +00:00
|
|
|
void initServer();
|
2021-02-28 20:10:07 +00:00
|
|
|
void sendRigCaps(rigCapabilities caps);
|
2021-06-01 16:48:19 +00:00
|
|
|
void openShuttle();
|
2021-08-04 19:49:32 +00:00
|
|
|
void requestRigState();
|
2021-12-04 19:21:23 +00:00
|
|
|
void stateUpdated();
|
2023-02-07 09:32:33 +00:00
|
|
|
void initUsbController(int sens);
|
2022-09-18 16:42:41 +00:00
|
|
|
void sendUsbControllerCommands(QVector<COMMAND>* cmds);
|
2022-09-18 20:00:44 +00:00
|
|
|
void sendUsbControllerButtons(QVector<BUTTON>* buts);
|
2022-09-29 16:17:51 +00:00
|
|
|
void setClusterUdpPort(int port);
|
|
|
|
void setClusterEnableUdp(bool udp);
|
|
|
|
void setClusterEnableTcp(bool tcp);
|
2022-09-30 16:05:42 +00:00
|
|
|
void setClusterServerName(QString name);
|
|
|
|
void setClusterTcpPort(int port);
|
|
|
|
void setClusterUserName(QString name);
|
|
|
|
void setClusterPassword(QString pass);
|
|
|
|
void setClusterTimeout(int timeout);
|
2022-10-31 12:39:27 +00:00
|
|
|
void setClusterSkimmerSpots(bool enable);
|
2022-10-05 10:03:15 +00:00
|
|
|
void setFrequencyRange(double low, double high);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
private slots:
|
2023-02-20 02:29:22 +00:00
|
|
|
// Triggered from external preference changes:
|
|
|
|
void extChangedIfPrefs(int items);
|
|
|
|
void extChangedRaPrefs(int items);
|
|
|
|
void extChangedCtPrefs(int items);
|
|
|
|
void extChangedLanPrefs(int items);
|
|
|
|
void extChangedClusterPrefs(int items);
|
|
|
|
void extChangedUdpPrefs(int items);
|
|
|
|
|
|
|
|
void extChangedIfPref(prefIfItem i);
|
|
|
|
void extChangedRaPref(prefRaItem i);
|
|
|
|
void extChangedCtPref(prefCtItem i);
|
|
|
|
void extChangedLanPref(prefLanItem i);
|
|
|
|
void extChangedClusterPref(prefClusterItem i);
|
|
|
|
void extChangedUdpPref(udpPrefsItem i);
|
|
|
|
|
|
|
|
|
2023-01-12 18:50:18 +00:00
|
|
|
void setAudioDevicesUI();
|
2021-06-18 06:14:28 +00:00
|
|
|
void updateSizes(int tabIndex);
|
2018-11-28 06:02:37 +00:00
|
|
|
void shortcutF1();
|
|
|
|
void shortcutF2();
|
|
|
|
void shortcutF3();
|
|
|
|
void shortcutF4();
|
|
|
|
void shortcutF5();
|
2019-01-28 23:36:17 +00:00
|
|
|
|
|
|
|
void shortcutF6();
|
|
|
|
void shortcutF7();
|
|
|
|
void shortcutF8();
|
|
|
|
void shortcutF9();
|
|
|
|
void shortcutF10();
|
2019-02-01 20:21:54 +00:00
|
|
|
void shortcutF11();
|
|
|
|
void shortcutF12();
|
|
|
|
|
|
|
|
void shortcutControlT();
|
|
|
|
void shortcutControlR();
|
|
|
|
void shortcutControlI();
|
|
|
|
void shortcutControlU();
|
2019-01-28 23:36:17 +00:00
|
|
|
|
2018-11-28 06:02:37 +00:00
|
|
|
void shortcutStar();
|
2019-01-28 23:46:14 +00:00
|
|
|
void shortcutSlash();
|
2019-02-04 05:51:30 +00:00
|
|
|
void shortcutMinus();
|
|
|
|
void shortcutPlus();
|
2021-06-04 23:23:16 +00:00
|
|
|
void shortcutStepMinus();
|
|
|
|
void shortcutStepPlus();
|
2019-02-04 18:32:16 +00:00
|
|
|
void shortcutShiftMinus();
|
|
|
|
void shortcutShiftPlus();
|
2019-02-06 00:11:25 +00:00
|
|
|
void shortcutControlMinus();
|
|
|
|
void shortcutControlPlus();
|
2018-11-28 06:02:37 +00:00
|
|
|
|
2020-03-17 22:15:01 +00:00
|
|
|
void shortcutPageUp();
|
|
|
|
void shortcutPageDown();
|
|
|
|
|
2019-02-07 18:15:10 +00:00
|
|
|
void shortcutF();
|
|
|
|
void shortcutM();
|
|
|
|
|
2019-01-24 01:19:35 +00:00
|
|
|
void handlePttLimit(); // hit at 3 min transmit length
|
2018-11-28 06:02:37 +00:00
|
|
|
|
2021-08-19 09:21:09 +00:00
|
|
|
void doShuttle(bool up, unsigned char level);
|
2021-06-08 07:04:41 +00:00
|
|
|
|
2021-02-07 09:03:02 +00:00
|
|
|
void receiveCommReady();
|
2021-03-22 07:11:43 +00:00
|
|
|
void receiveFreq(freqt);
|
2021-02-14 07:42:51 +00:00
|
|
|
void receiveMode(unsigned char mode, unsigned char filter);
|
2018-06-19 19:58:52 +00:00
|
|
|
void receiveSpectrumData(QByteArray spectrum, double startFreq, double endFreq);
|
2021-03-01 05:41:27 +00:00
|
|
|
void receiveSpectrumMode(spectrumMode spectMode);
|
2021-04-11 07:42:25 +00:00
|
|
|
void receiveSpectrumSpan(freqt freqspan, bool isSub);
|
2023-01-31 17:35:55 +00:00
|
|
|
void handleScopeOutOfRange(bool outOfRange);
|
2018-11-07 23:54:03 +00:00
|
|
|
void receivePTTstatus(bool pttOn);
|
2018-11-16 22:08:21 +00:00
|
|
|
void receiveDataModeStatus(bool dataOn);
|
2023-02-10 21:03:37 +00:00
|
|
|
void handleBandStackReg(freqt f, char mode, char filter, bool dataOn); // freq, mode, (filter,) datamode
|
2021-04-25 07:23:52 +00:00
|
|
|
void receiveRITStatus(bool ritEnabled);
|
|
|
|
void receiveRITValue(int ritValHz);
|
2021-02-19 08:14:40 +00:00
|
|
|
void receiveModInput(rigInput input, bool dataOn);
|
2021-03-31 07:29:22 +00:00
|
|
|
//void receiveDuplexMode(duplexMode dm);
|
2022-10-28 19:04:14 +00:00
|
|
|
void receivePassband(quint16 pass);
|
2023-01-18 18:52:05 +00:00
|
|
|
void receiveCwPitch(unsigned char pitch);
|
2023-01-16 12:24:22 +00:00
|
|
|
void receiveTPBFInner(unsigned char level);
|
|
|
|
void receiveTPBFOuter(unsigned char level);
|
2021-02-16 01:15:28 +00:00
|
|
|
|
|
|
|
// Levels:
|
2018-11-17 06:19:44 +00:00
|
|
|
void receiveRfGain(unsigned char level);
|
|
|
|
void receiveAfGain(unsigned char level);
|
2018-11-18 08:01:20 +00:00
|
|
|
void receiveSql(unsigned char level);
|
2021-11-05 17:09:31 +00:00
|
|
|
void receiveIFShift(unsigned char level);
|
|
|
|
void receiveTBPFInner(unsigned char level);
|
|
|
|
void receiveTBPFOuter(unsigned char level);
|
|
|
|
// 'change' from data in transceiver controls window:
|
|
|
|
void changeIFShift(unsigned char level);
|
|
|
|
void changeTPBFInner(unsigned char level);
|
|
|
|
void changeTPBFOuter(unsigned char level);
|
2021-02-16 01:15:28 +00:00
|
|
|
void receiveTxPower(unsigned char power);
|
|
|
|
void receiveMicGain(unsigned char gain);
|
|
|
|
void receiveCompLevel(unsigned char compLevel);
|
|
|
|
void receiveMonitorGain(unsigned char monitorGain);
|
|
|
|
void receiveVoxGain(unsigned char voxGain);
|
|
|
|
void receiveAntiVoxGain(unsigned char antiVoxGain);
|
2021-02-16 06:33:21 +00:00
|
|
|
void receiveSpectrumRefLevel(int level);
|
2021-02-18 07:47:34 +00:00
|
|
|
void receiveACCGain(unsigned char level, unsigned char ab);
|
|
|
|
void receiveUSBGain(unsigned char level);
|
|
|
|
void receiveLANGain(unsigned char level);
|
2021-02-16 01:15:28 +00:00
|
|
|
|
|
|
|
// Meters:
|
2021-02-21 04:41:19 +00:00
|
|
|
void receiveMeter(meterKind meter, unsigned char level);
|
|
|
|
// void receiveSMeter(unsigned char level);
|
|
|
|
// void receivePowerMeter(unsigned char level);
|
|
|
|
// void receiveALCMeter(unsigned char level);
|
|
|
|
// void receiveCompMeter(unsigned char level);
|
|
|
|
|
2021-02-16 01:15:28 +00:00
|
|
|
|
2018-12-19 20:31:44 +00:00
|
|
|
void receiveATUStatus(unsigned char atustatus);
|
2021-04-11 05:48:32 +00:00
|
|
|
void receivePreamp(unsigned char pre);
|
|
|
|
void receiveAttenuator(unsigned char att);
|
2021-07-16 18:33:15 +00:00
|
|
|
void receiveAntennaSel(unsigned char ant, bool rx);
|
2021-01-25 00:16:38 +00:00
|
|
|
void receiveRigID(rigCapabilities rigCaps);
|
2021-01-30 06:09:09 +00:00
|
|
|
void receiveFoundRigID(rigCapabilities rigCaps);
|
2023-01-05 19:37:53 +00:00
|
|
|
void receivePortError(errorType err);
|
2022-01-22 15:12:36 +00:00
|
|
|
void receiveStatusUpdate(networkStatus status);
|
2022-08-24 05:24:05 +00:00
|
|
|
void receiveNetworkAudioLevels(networkAudioLevels l);
|
2018-06-19 19:58:52 +00:00
|
|
|
void handlePlotClick(QMouseEvent *);
|
2022-09-26 18:53:56 +00:00
|
|
|
void handlePlotMouseRelease(QMouseEvent *);
|
|
|
|
void handlePlotMouseMove(QMouseEvent *);
|
2018-06-19 19:58:52 +00:00
|
|
|
void handlePlotDoubleClick(QMouseEvent *);
|
|
|
|
void handleWFClick(QMouseEvent *);
|
|
|
|
void handleWFDoubleClick(QMouseEvent *);
|
2020-04-21 04:10:20 +00:00
|
|
|
void handleWFScroll(QWheelEvent *);
|
|
|
|
void handlePlotScroll(QWheelEvent *);
|
2021-06-20 20:34:32 +00:00
|
|
|
void sendRadioCommandLoop();
|
2018-11-07 23:54:03 +00:00
|
|
|
void showStatusBarText(QString text);
|
2021-05-21 15:30:52 +00:00
|
|
|
void receiveBaudRate(quint32 baudrate);
|
2022-01-21 19:23:32 +00:00
|
|
|
void radioSelection(QList<radio_cap_packet> radios);
|
2023-02-07 09:32:33 +00:00
|
|
|
void receiveUsbSensitivity(int val);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2022-04-22 10:11:21 +00:00
|
|
|
// Added for RC28/Shuttle support
|
|
|
|
void pttToggle(bool);
|
|
|
|
void stepUp();
|
|
|
|
void stepDown();
|
|
|
|
void changeFrequency(int value);
|
|
|
|
void setBand(int band);
|
|
|
|
|
2021-07-09 19:02:50 +00:00
|
|
|
void setRadioTimeDateSend();
|
2022-09-15 00:07:23 +00:00
|
|
|
void logCheck();
|
2022-09-15 16:42:19 +00:00
|
|
|
void setDebugLogging(bool debugModeOn);
|
2021-07-09 19:02:50 +00:00
|
|
|
|
2022-04-27 11:56:54 +00:00
|
|
|
void buttonControl(const COMMAND* cmd);
|
2021-07-09 19:02:50 +00:00
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
void on_clearPeakBtn_clicked();
|
|
|
|
|
2023-02-20 02:29:22 +00:00
|
|
|
void changeFullScreenMode(bool checked);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2022-05-17 07:53:24 +00:00
|
|
|
void on_usbControllerBtn_clicked();
|
2023-01-30 16:15:43 +00:00
|
|
|
void on_usbButtonsResetBtn_clicked();
|
|
|
|
void on_usbCommandsResetBtn_clicked();
|
2023-02-20 06:11:48 +00:00
|
|
|
void enableUsbControllers(bool enabled);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
void on_scopeBWCombo_currentIndexChanged(int index);
|
|
|
|
void on_scopeEdgeCombo_currentIndexChanged(int index);
|
2018-06-25 07:34:33 +00:00
|
|
|
void on_modeSelectCombo_activated(int index);
|
|
|
|
void on_freqDial_valueChanged(int value);
|
2018-11-16 22:08:21 +00:00
|
|
|
void on_aboutBtn_clicked();
|
|
|
|
|
2018-11-17 06:19:44 +00:00
|
|
|
void on_rfGainSlider_valueChanged(int value);
|
|
|
|
void on_afGainSlider_valueChanged(int value);
|
|
|
|
void on_tuneNowBtn_clicked();
|
2018-11-17 07:13:59 +00:00
|
|
|
void on_tuneEnableChk_clicked(bool checked);
|
2018-11-20 07:42:34 +00:00
|
|
|
void on_exitBtn_clicked();
|
2018-11-24 08:10:05 +00:00
|
|
|
void on_pttOnBtn_clicked();
|
|
|
|
void on_pttOffBtn_clicked();
|
2018-11-27 07:10:23 +00:00
|
|
|
void on_saveSettingsBtn_clicked();
|
2018-12-18 22:34:04 +00:00
|
|
|
void on_debugBtn_clicked();
|
2021-03-03 05:55:33 +00:00
|
|
|
void on_lanEnableBtn_clicked(bool checked);
|
2021-02-03 19:36:35 +00:00
|
|
|
void on_ipAddressTxt_textChanged(QString text);
|
|
|
|
void on_controlPortTxt_textChanged(QString text);
|
|
|
|
void on_usernameTxt_textChanged(QString text);
|
|
|
|
void on_passwordTxt_textChanged(QString text);
|
2023-01-27 01:41:35 +00:00
|
|
|
void on_audioDuplexCombo_currentIndexChanged(int value);
|
2021-05-16 20:16:59 +00:00
|
|
|
void on_audioOutputCombo_currentIndexChanged(int value);
|
|
|
|
void on_audioInputCombo_currentIndexChanged(int value);
|
2021-02-06 07:58:17 +00:00
|
|
|
void on_toFixedBtn_clicked();
|
2021-02-07 12:59:41 +00:00
|
|
|
void on_connectBtn_clicked();
|
2021-02-27 00:37:00 +00:00
|
|
|
void on_rxLatencySlider_valueChanged(int value);
|
|
|
|
void on_txLatencySlider_valueChanged(int value);
|
2021-02-09 12:43:28 +00:00
|
|
|
void on_audioRXCodecCombo_currentIndexChanged(int value);
|
|
|
|
void on_audioTXCodecCombo_currentIndexChanged(int value);
|
2022-08-22 22:09:09 +00:00
|
|
|
void on_audioSampleRateCombo_currentIndexChanged(int value);
|
2021-02-09 07:31:44 +00:00
|
|
|
void on_scopeEnableWFBtn_clicked(bool checked);
|
2021-02-11 05:22:38 +00:00
|
|
|
void on_sqlSlider_valueChanged(int value);
|
2021-02-11 17:21:17 +00:00
|
|
|
void on_modeFilterCombo_activated(int index);
|
2021-02-13 06:49:42 +00:00
|
|
|
void on_dataModeBtn_toggled(bool checked);
|
2021-02-15 04:45:48 +00:00
|
|
|
void on_transmitBtn_clicked();
|
2021-02-15 06:40:04 +00:00
|
|
|
void on_adjRefBtn_clicked();
|
|
|
|
void on_satOpsBtn_clicked();
|
2021-02-16 04:32:14 +00:00
|
|
|
void on_txPowerSlider_valueChanged(int value);
|
|
|
|
void on_micGainSlider_valueChanged(int value);
|
|
|
|
void on_scopeRefLevelSlider_valueChanged(int value);
|
2023-02-20 02:29:22 +00:00
|
|
|
void useSystemTheme(bool checked);
|
2021-02-19 08:14:40 +00:00
|
|
|
void on_modInputCombo_activated(int index);
|
|
|
|
void on_modInputDataCombo_activated(int index);
|
2021-02-22 07:58:23 +00:00
|
|
|
void on_tuneLockChk_clicked(bool checked);
|
2021-03-01 05:41:27 +00:00
|
|
|
void on_spectrumModeCombo_currentIndexChanged(int index);
|
2021-03-03 05:55:33 +00:00
|
|
|
void on_serialEnableBtn_clicked(bool checked);
|
2021-03-04 08:02:53 +00:00
|
|
|
void on_tuningStepCombo_currentIndexChanged(int index);
|
2022-08-22 22:09:09 +00:00
|
|
|
void on_serialDeviceListCombo_textActivated(const QString &arg1);
|
2021-03-31 06:37:35 +00:00
|
|
|
void on_rptSetupBtn_clicked();
|
2021-04-08 06:35:24 +00:00
|
|
|
void on_attSelCombo_activated(int index);
|
2021-04-09 17:04:20 +00:00
|
|
|
void on_preampSelCombo_activated(int index);
|
2021-04-09 22:57:16 +00:00
|
|
|
void on_antennaSelCombo_activated(int index);
|
2021-07-16 16:08:55 +00:00
|
|
|
void on_rxAntennaCheck_clicked(bool value);
|
2021-04-10 06:38:36 +00:00
|
|
|
void on_wfthemeCombo_activated(int index);
|
2021-04-20 05:55:39 +00:00
|
|
|
void on_rigPowerOnBtn_clicked();
|
|
|
|
void on_rigPowerOffBtn_clicked();
|
2021-04-24 07:31:51 +00:00
|
|
|
void on_ritTuneDial_valueChanged(int value);
|
|
|
|
void on_ritEnableChk_clicked(bool checked);
|
2021-05-18 07:29:06 +00:00
|
|
|
void on_rigCIVManualAddrChk_clicked(bool checked);
|
|
|
|
void on_rigCIVaddrHexLine_editingFinished();
|
2021-05-20 22:17:10 +00:00
|
|
|
void on_baudRateCombo_activated(int);
|
2021-05-31 06:26:36 +00:00
|
|
|
void on_wfLengthSlider_valueChanged(int value);
|
2021-07-14 05:42:55 +00:00
|
|
|
void on_wfAntiAliasChk_clicked(bool checked);
|
|
|
|
void on_wfInterpolateChk_clicked(bool checked);
|
2023-02-20 02:29:22 +00:00
|
|
|
void changeMeter2Type(meterKind m);
|
2022-04-18 19:29:50 +00:00
|
|
|
void on_waterfallFormatCombo_activated(int index);
|
2021-08-04 19:49:32 +00:00
|
|
|
void on_enableRigctldChk_clicked(bool checked);
|
2021-08-05 00:23:15 +00:00
|
|
|
void on_rigctldPortTxt_editingFinished();
|
2022-04-18 19:29:50 +00:00
|
|
|
void on_tcpServerPortTxt_editingFinished();
|
2021-11-06 00:12:19 +00:00
|
|
|
void on_moreControlsBtn_clicked();
|
2021-11-07 06:59:03 +00:00
|
|
|
void on_useCIVasRigIDChk_clicked(bool checked);
|
|
|
|
|
2021-12-04 19:21:23 +00:00
|
|
|
void receiveStateInfo(rigstate* state);
|
|
|
|
|
2021-12-24 03:45:58 +00:00
|
|
|
void on_settingsList_currentRowChanged(int currentRow);
|
2021-12-24 04:05:34 +00:00
|
|
|
void on_setClockBtn_clicked();
|
2021-12-30 00:48:39 +00:00
|
|
|
void on_serverEnableCheckbox_clicked(bool checked);
|
2021-12-30 11:17:54 +00:00
|
|
|
void on_serverControlPortText_textChanged(QString text);
|
|
|
|
void on_serverCivPortText_textChanged(QString text);
|
|
|
|
void on_serverAudioPortText_textChanged(QString text);
|
|
|
|
void on_serverTXAudioOutputCombo_currentIndexChanged(int value);
|
|
|
|
void on_serverRXAudioInputCombo_currentIndexChanged(int value);
|
2022-09-18 13:59:03 +00:00
|
|
|
void onServerUserFieldChanged();
|
|
|
|
void on_serverAddUserBtn_clicked();
|
2022-01-21 23:58:18 +00:00
|
|
|
void on_radioStatusBtn_clicked();
|
2022-05-12 00:46:20 +00:00
|
|
|
void on_audioSystemCombo_currentIndexChanged(int value);
|
2022-08-17 23:21:33 +00:00
|
|
|
void on_topLevelSlider_valueChanged(int value);
|
|
|
|
void on_botLevelSlider_valueChanged(int value);
|
2022-08-18 01:41:35 +00:00
|
|
|
void on_underlayBufferSlider_valueChanged(int value);
|
|
|
|
void on_underlayNone_toggled(bool checked);
|
|
|
|
void on_underlayPeakHold_toggled(bool checked);
|
|
|
|
void on_underlayPeakBuffer_toggled(bool checked);
|
|
|
|
void on_underlayAverageBuffer_toggled(bool checked);
|
|
|
|
|
2022-08-19 16:41:13 +00:00
|
|
|
void on_colorSetBtnGrid_clicked();
|
2022-08-19 17:32:06 +00:00
|
|
|
void on_colorSetBtnPlotBackground_clicked();
|
2022-08-21 07:17:44 +00:00
|
|
|
void on_colorSetBtnText_clicked();
|
|
|
|
void on_colorSetBtnSpecLine_clicked();
|
|
|
|
void on_colorSetBtnSpecFill_clicked();
|
|
|
|
void on_colorEditPlotBackground_editingFinished();
|
|
|
|
void on_colorPopOutBtn_clicked();
|
2022-08-21 23:47:17 +00:00
|
|
|
void on_colorPresetCombo_currentIndexChanged(int index);
|
|
|
|
void on_colorEditSpecLine_editingFinished();
|
|
|
|
void on_colorEditGrid_editingFinished();
|
|
|
|
void on_colorEditText_editingFinished();
|
|
|
|
void on_colorEditSpecFill_editingFinished();
|
2022-08-22 00:52:52 +00:00
|
|
|
void on_colorSetBtnAxis_clicked();
|
|
|
|
void on_colorEditAxis_editingFinished();
|
|
|
|
void on_colorSetBtnUnderlayLine_clicked();
|
|
|
|
void on_colorEditUnderlayLine_editingFinished();
|
|
|
|
void on_colorSetBtnUnderlayFill_clicked();
|
|
|
|
void on_colorEditUnderlayFill_editingFinished();
|
|
|
|
void on_colorSetBtnwfBackground_clicked();
|
|
|
|
void on_colorEditWfBackground_editingFinished();
|
|
|
|
void on_colorSetBtnWfGrid_clicked();
|
|
|
|
void on_colorEditWfGrid_editingFinished();
|
|
|
|
void on_colorSetBtnWfAxis_clicked();
|
|
|
|
void on_colorEditWfAxis_editingFinished();
|
|
|
|
void on_colorSetBtnWfText_clicked();
|
|
|
|
void on_colorEditWfText_editingFinished();
|
|
|
|
void on_colorSetBtnTuningLine_clicked();
|
|
|
|
void on_colorEditTuningLine_editingFinished();
|
2022-09-26 10:59:16 +00:00
|
|
|
void on_colorSetBtnPassband_clicked();
|
|
|
|
void on_colorEditPassband_editingFinished();
|
2023-02-05 13:21:12 +00:00
|
|
|
void on_colorSetBtnPBT_clicked();
|
|
|
|
void on_colorEditPBT_editingFinished();
|
2022-08-22 00:52:52 +00:00
|
|
|
void on_colorSetBtnMeterLevel_clicked();
|
|
|
|
void on_colorEditMeterLevel_editingFinished();
|
|
|
|
void on_colorSetBtnMeterAvg_clicked();
|
|
|
|
void on_colorEditMeterAvg_editingFinished();
|
|
|
|
void on_colorSetBtnMeterScale_clicked();
|
|
|
|
void on_colorEditMeterScale_editingFinished();
|
|
|
|
void on_colorSetBtnMeterText_clicked();
|
|
|
|
void on_colorEditMeterText_editingFinished();
|
2022-10-09 13:23:07 +00:00
|
|
|
void on_colorSetBtnClusterSpots_clicked();
|
|
|
|
void on_colorEditClusterSpots_editingFinished();
|
2022-08-22 16:44:00 +00:00
|
|
|
void on_colorRenamePresetBtn_clicked();
|
2022-08-23 00:57:54 +00:00
|
|
|
void on_colorRevertPresetBtn_clicked();
|
2022-08-23 04:22:01 +00:00
|
|
|
void on_colorSetBtnMeterPeakLevel_clicked();
|
|
|
|
void on_colorEditMeterPeakLevel_editingFinished();
|
|
|
|
void on_colorSetBtnMeterPeakScale_clicked();
|
|
|
|
void on_colorEditMeterPeakScale_editingFinished();
|
2022-08-23 17:35:59 +00:00
|
|
|
void on_colorSavePresetBtn_clicked();
|
|
|
|
|
2022-09-15 00:07:23 +00:00
|
|
|
void on_showLogBtn_clicked();
|
|
|
|
|
2022-09-16 20:43:01 +00:00
|
|
|
void on_audioSystemServerCombo_currentIndexChanged(int index);
|
|
|
|
|
2022-09-18 20:13:33 +00:00
|
|
|
void on_customEdgeBtn_clicked();
|
|
|
|
|
2022-09-30 16:05:42 +00:00
|
|
|
void on_clusterUdpEnable_clicked(bool enable);
|
|
|
|
void on_clusterTcpEnable_clicked(bool enable);
|
|
|
|
void on_clusterUdpPortLineEdit_editingFinished();
|
|
|
|
void on_clusterServerNameCombo_currentTextChanged(QString text);
|
|
|
|
void on_clusterServerNameCombo_currentIndexChanged(int index);
|
|
|
|
void on_clusterTcpPortLineEdit_editingFinished();
|
|
|
|
void on_clusterUsernameLineEdit_editingFinished();
|
|
|
|
void on_clusterPasswordLineEdit_editingFinished();
|
|
|
|
void on_clusterTimeoutLineEdit_editingFinished();
|
2022-10-09 13:32:09 +00:00
|
|
|
void on_clusterPopOutBtn_clicked();
|
2022-10-31 12:39:27 +00:00
|
|
|
void on_clusterSkimmerSpotsEnable_clicked(bool enable);
|
2022-10-09 13:32:09 +00:00
|
|
|
|
2022-10-11 12:17:23 +00:00
|
|
|
void on_clickDragTuningEnableChk_clicked(bool checked);
|
2022-09-30 16:05:42 +00:00
|
|
|
|
|
|
|
void receiveClusterOutput(QString text);
|
2022-10-05 10:03:15 +00:00
|
|
|
void receiveSpots(QList<spotData> spots);
|
2022-09-29 16:17:51 +00:00
|
|
|
|
2023-01-21 07:23:47 +00:00
|
|
|
void on_cwButton_clicked();
|
|
|
|
|
2023-02-10 21:17:23 +00:00
|
|
|
void on_showBandsBtn_clicked();
|
|
|
|
|
2023-02-12 02:39:02 +00:00
|
|
|
void on_showFreqBtn_clicked();
|
|
|
|
|
2023-02-19 03:25:02 +00:00
|
|
|
void on_showSettingsBtn_clicked();
|
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
private:
|
|
|
|
Ui::wfmain *ui;
|
2021-05-15 03:00:38 +00:00
|
|
|
void closeEvent(QCloseEvent *event);
|
2022-09-23 16:02:06 +00:00
|
|
|
QString logFilename;
|
2022-09-15 00:07:23 +00:00
|
|
|
bool debugMode;
|
2022-09-15 16:33:09 +00:00
|
|
|
QString version;
|
2021-05-20 18:24:40 +00:00
|
|
|
QSettings *settings=Q_NULLPTR;
|
2018-11-24 08:10:05 +00:00
|
|
|
void loadSettings();
|
|
|
|
void saveSettings();
|
2023-02-20 02:29:22 +00:00
|
|
|
void connectSettingsWidget();
|
2021-12-23 22:30:58 +00:00
|
|
|
|
|
|
|
void createSettingsListItems();
|
|
|
|
|
2022-09-15 00:07:23 +00:00
|
|
|
void initLogging();
|
|
|
|
QTimer logCheckingTimer;
|
|
|
|
int logCheckingOldPosition = 0;
|
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
QCustomPlot *plot; // line plot
|
|
|
|
QCustomPlot *wf; // waterfall image
|
2021-04-10 22:34:35 +00:00
|
|
|
QCPItemLine * freqIndicatorLine;
|
2022-09-26 00:44:49 +00:00
|
|
|
QCPItemRect* passbandIndicator;
|
2023-01-19 16:16:47 +00:00
|
|
|
QCPItemRect* pbtIndicator;
|
2021-02-19 06:38:50 +00:00
|
|
|
void setAppTheme(bool isCustom);
|
2021-01-25 00:16:38 +00:00
|
|
|
void prepareWf();
|
2021-05-31 06:26:36 +00:00
|
|
|
void prepareWf(unsigned int wfLength);
|
2022-08-18 17:54:54 +00:00
|
|
|
void preparePlasma();
|
|
|
|
bool plasmaPrepared = false;
|
2022-08-17 22:10:07 +00:00
|
|
|
void computePlasma();
|
2021-06-15 18:27:45 +00:00
|
|
|
void showHideSpectrum(bool show);
|
2018-06-23 07:31:41 +00:00
|
|
|
void getInitialRigState();
|
2021-04-27 01:24:28 +00:00
|
|
|
void showButton(QPushButton *btn);
|
|
|
|
void hideButton(QPushButton *btn);
|
|
|
|
|
2021-01-30 06:09:09 +00:00
|
|
|
void openRig();
|
2021-04-24 06:11:54 +00:00
|
|
|
void powerRigOff();
|
|
|
|
void powerRigOn();
|
2018-06-25 07:34:33 +00:00
|
|
|
QStringList portList;
|
2018-11-29 21:41:42 +00:00
|
|
|
QString serialPortRig;
|
2018-06-20 06:45:56 +00:00
|
|
|
|
2018-11-28 06:02:37 +00:00
|
|
|
QShortcut *keyF1;
|
|
|
|
QShortcut *keyF2;
|
|
|
|
QShortcut *keyF3;
|
|
|
|
QShortcut *keyF4;
|
|
|
|
QShortcut *keyF5;
|
2019-01-28 23:36:17 +00:00
|
|
|
|
|
|
|
QShortcut *keyF6;
|
|
|
|
QShortcut *keyF7;
|
|
|
|
QShortcut *keyF8;
|
|
|
|
QShortcut *keyF9;
|
|
|
|
QShortcut *keyF10;
|
2019-02-01 20:21:54 +00:00
|
|
|
QShortcut *keyF11;
|
|
|
|
QShortcut *keyF12;
|
|
|
|
|
|
|
|
QShortcut *keyControlT;
|
|
|
|
QShortcut *keyControlR;
|
|
|
|
QShortcut *keyControlI;
|
|
|
|
QShortcut *keyControlU;
|
2019-01-28 23:36:17 +00:00
|
|
|
|
2018-11-28 06:02:37 +00:00
|
|
|
QShortcut *keyStar;
|
2019-01-28 23:46:14 +00:00
|
|
|
QShortcut *keySlash;
|
2019-02-04 05:51:30 +00:00
|
|
|
QShortcut *keyMinus;
|
|
|
|
QShortcut *keyPlus;
|
2018-11-28 06:02:37 +00:00
|
|
|
|
2019-02-04 18:32:16 +00:00
|
|
|
QShortcut *keyShiftMinus;
|
|
|
|
QShortcut *keyShiftPlus;
|
2019-02-06 00:11:25 +00:00
|
|
|
QShortcut *keyControlMinus;
|
|
|
|
QShortcut *keyControlPlus;
|
2020-03-10 18:08:36 +00:00
|
|
|
QShortcut *keyQuit;
|
2019-02-04 18:32:16 +00:00
|
|
|
|
2020-03-17 22:15:01 +00:00
|
|
|
QShortcut *keyPageUp;
|
|
|
|
QShortcut *keyPageDown;
|
|
|
|
|
2019-02-07 18:15:10 +00:00
|
|
|
QShortcut *keyF;
|
|
|
|
QShortcut *keyM;
|
|
|
|
|
2023-01-23 07:41:31 +00:00
|
|
|
QShortcut *keyH;
|
|
|
|
QShortcut *keyK; // alternate +
|
|
|
|
QShortcut *keyJ; // alternate -
|
|
|
|
QShortcut *keyL;
|
|
|
|
|
|
|
|
QShortcut *keyShiftK;
|
|
|
|
QShortcut *keyShiftJ;
|
|
|
|
|
|
|
|
QShortcut *keyControlK;
|
|
|
|
QShortcut *keyControlJ;
|
|
|
|
|
2021-06-18 06:14:28 +00:00
|
|
|
QShortcut *keyDebug;
|
|
|
|
|
2018-11-28 06:02:37 +00:00
|
|
|
|
2021-02-07 12:59:41 +00:00
|
|
|
rigCommander * rig=Q_NULLPTR;
|
2021-02-16 16:16:46 +00:00
|
|
|
QThread* rigThread = Q_NULLPTR;
|
2018-06-19 19:58:52 +00:00
|
|
|
QCPColorMap * colorMap;
|
|
|
|
QCPColorMapData * colorMapData;
|
|
|
|
QCPColorScale * colorScale;
|
|
|
|
QTimer * delayedCommand;
|
2019-01-24 01:19:35 +00:00
|
|
|
QTimer * pttTimer;
|
2021-06-20 20:34:32 +00:00
|
|
|
uint16_t loopTickCounter;
|
2023-01-24 18:37:26 +00:00
|
|
|
uint16_t slowCmdNum=0;
|
|
|
|
uint16_t rapidCmdNum=0;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2021-05-29 03:51:19 +00:00
|
|
|
void setupPlots();
|
|
|
|
void makeRig();
|
|
|
|
void rigConnections();
|
|
|
|
void removeRig();
|
|
|
|
void findSerialPort();
|
|
|
|
|
|
|
|
void setupKeyShortcuts();
|
|
|
|
void setupMainUI();
|
|
|
|
void setUIToPrefs();
|
2021-05-29 04:01:29 +00:00
|
|
|
void setSerialDevicesUI();
|
2021-05-29 04:27:06 +00:00
|
|
|
void setServerToPrefs();
|
2022-04-22 10:11:21 +00:00
|
|
|
void setupUsbControllerDevice();
|
2021-05-29 04:27:06 +00:00
|
|
|
void setInitialTiming();
|
|
|
|
void getSettingsFilePath(QString settingsFile);
|
2021-02-16 16:16:46 +00:00
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
QStringList modes;
|
|
|
|
int currentModeIndex;
|
|
|
|
QStringList spans;
|
|
|
|
QStringList edges;
|
|
|
|
QStringList commPorts;
|
2021-02-05 20:26:18 +00:00
|
|
|
QLabel* rigStatus;
|
2021-03-01 16:26:59 +00:00
|
|
|
QLabel* rigName;
|
|
|
|
QLedLabel* pttLed;
|
|
|
|
QLedLabel* connectedLed;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
quint16 spectWidth;
|
|
|
|
quint16 wfLength;
|
2021-05-31 06:26:36 +00:00
|
|
|
bool spectrumDrawLock;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
QByteArray spectrumPeaks;
|
2022-08-17 22:10:07 +00:00
|
|
|
QVector <double> spectrumPlasmaLine;
|
|
|
|
QVector <QByteArray> spectrumPlasma;
|
|
|
|
unsigned int spectrumPlasmaSize = 64;
|
2022-08-18 01:41:35 +00:00
|
|
|
underlay_t underlayMode = underlayNone;
|
2022-08-18 05:38:44 +00:00
|
|
|
QMutex plasmaMutex;
|
|
|
|
void resizePlasmaBuffer(int newSize);
|
2022-09-18 19:22:11 +00:00
|
|
|
void clearPlasmaBuffer();
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2022-08-17 23:21:33 +00:00
|
|
|
double plotFloor = 0;
|
|
|
|
double plotCeiling = 160;
|
|
|
|
double wfFloor = 0;
|
|
|
|
double wfCeiling = 160;
|
2022-08-18 16:56:06 +00:00
|
|
|
double oldPlotFloor = -1;
|
|
|
|
double oldPlotCeiling = 999;
|
2023-01-18 18:52:05 +00:00
|
|
|
double passbandWidth = 0.0;
|
2022-08-17 23:21:33 +00:00
|
|
|
|
2022-09-26 18:53:56 +00:00
|
|
|
double mousePressFreq = 0.0;
|
|
|
|
double mouseReleaseFreq = 0.0;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
QVector <QByteArray> wfimage;
|
2021-06-08 16:58:30 +00:00
|
|
|
unsigned int wfLengthMax;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2018-11-28 06:02:37 +00:00
|
|
|
bool onFullscreen;
|
2018-06-19 19:58:52 +00:00
|
|
|
bool freqTextSelected;
|
2022-09-18 20:13:33 +00:00
|
|
|
void setUISpectrumControlsToMode(spectrumMode smode);
|
2018-06-19 19:58:52 +00:00
|
|
|
|
|
|
|
double oldLowerFreq;
|
|
|
|
double oldUpperFreq;
|
2021-03-22 07:11:43 +00:00
|
|
|
freqt freq;
|
2021-03-04 08:02:53 +00:00
|
|
|
float tsKnobMHz;
|
|
|
|
|
2021-05-07 22:46:47 +00:00
|
|
|
unsigned char setModeVal=0;
|
|
|
|
unsigned char setFilterVal=0;
|
|
|
|
|
2023-01-24 18:37:26 +00:00
|
|
|
std::deque <commandtype> delayedCmdQue; // rapid commands from user interaction
|
2021-06-25 08:24:21 +00:00
|
|
|
std::deque <cmds> periodicCmdQueue; // rapid que for metering
|
|
|
|
std::deque <cmds> slowPollCmdQueue; // slow, regular checking for UI sync
|
2023-01-24 18:37:26 +00:00
|
|
|
std::deque <cmds> rapidPollCmdQueue; // rapid regular polling for non-meter actions
|
2021-06-20 20:34:32 +00:00
|
|
|
void doCmd(cmds cmd);
|
2021-06-25 08:24:21 +00:00
|
|
|
void doCmd(commandtype cmddata);
|
2021-06-25 09:31:18 +00:00
|
|
|
|
2023-01-24 18:37:26 +00:00
|
|
|
bool rapidPollCmdQueueEnabled = false;
|
|
|
|
|
2021-06-25 09:31:18 +00:00
|
|
|
void issueCmd(cmds cmd, freqt f);
|
|
|
|
void issueCmd(cmds cmd, mode_info m);
|
2023-01-27 20:44:23 +00:00
|
|
|
void issueCmd(cmds cmd, vfo_t v);
|
2023-01-27 22:05:50 +00:00
|
|
|
void issueCmd(cmds cmd, rptrTone_t t);
|
|
|
|
void issueCmd(cmds cmd, rptrAccessData_t rd);
|
2021-07-09 19:02:50 +00:00
|
|
|
void issueCmd(cmds cmd, timekind t);
|
|
|
|
void issueCmd(cmds cmd, datekind d);
|
2021-06-25 22:43:53 +00:00
|
|
|
void issueCmd(cmds cmd, int i);
|
2021-06-25 09:31:18 +00:00
|
|
|
void issueCmd(cmds cmd, unsigned char c);
|
|
|
|
void issueCmd(cmds cmd, char c);
|
|
|
|
void issueCmd(cmds cmd, bool b);
|
2023-01-13 18:14:11 +00:00
|
|
|
void issueCmd(cmds cmd, quint16 c);
|
2023-01-16 12:24:22 +00:00
|
|
|
void issueCmd(cmds cmd, qint16 c);
|
2023-01-21 06:11:30 +00:00
|
|
|
void issueCmd(cmds cmd, QString s);
|
2021-06-25 08:24:21 +00:00
|
|
|
|
2021-06-25 22:43:53 +00:00
|
|
|
// These commands pop_front and remove similar commands:
|
2021-06-26 02:47:40 +00:00
|
|
|
void issueCmdUniquePriority(cmds cmd, bool b);
|
2021-06-25 22:43:53 +00:00
|
|
|
void issueCmdUniquePriority(cmds cmd, unsigned char c);
|
|
|
|
void issueCmdUniquePriority(cmds cmd, char c);
|
|
|
|
void issueCmdUniquePriority(cmds cmd, freqt f);
|
2023-01-13 18:14:11 +00:00
|
|
|
void issueCmdUniquePriority(cmds cmd, quint16 c);
|
2023-01-16 12:24:22 +00:00
|
|
|
void issueCmdUniquePriority(cmds cmd, qint16 c);
|
2021-06-25 22:43:53 +00:00
|
|
|
|
|
|
|
void removeSimilarCommand(cmds cmd);
|
|
|
|
|
2021-07-10 01:13:11 +00:00
|
|
|
qint64 lastFreqCmdTime_ms;
|
|
|
|
|
2021-02-21 04:41:19 +00:00
|
|
|
int pCmdNum = 0;
|
2021-05-01 05:15:30 +00:00
|
|
|
int delayedCmdIntervalLAN_ms = 100;
|
|
|
|
int delayedCmdIntervalSerial_ms = 100;
|
2021-04-25 07:23:52 +00:00
|
|
|
int delayedCmdStartupInterval_ms = 100;
|
2021-06-20 20:34:32 +00:00
|
|
|
bool runPeriodicCommands;
|
2021-05-01 05:15:30 +00:00
|
|
|
bool usingLAN = false;
|
2021-02-21 04:41:19 +00:00
|
|
|
|
2021-07-10 01:13:11 +00:00
|
|
|
// Radio time sync:
|
2021-07-09 19:02:50 +00:00
|
|
|
QTimer *timeSync;
|
|
|
|
bool waitingToSetTimeDate;
|
|
|
|
void setRadioTimeDatePrep();
|
|
|
|
timekind timesetpoint;
|
|
|
|
timekind utcsetting;
|
|
|
|
datekind datesetpoint;
|
|
|
|
|
2018-11-24 08:10:05 +00:00
|
|
|
freqMemory mem;
|
2023-02-12 02:39:02 +00:00
|
|
|
void gotoMemoryPreset(int presetNumber);
|
|
|
|
void saveMemoryPreset(int presetNumber);
|
2022-08-23 00:57:54 +00:00
|
|
|
|
2022-08-21 23:47:17 +00:00
|
|
|
colorPrefsType colorPreset[numColorPresetsTotal];
|
2018-11-25 06:21:36 +00:00
|
|
|
|
2022-11-27 04:45:32 +00:00
|
|
|
preferences prefs;
|
2018-11-25 06:21:36 +00:00
|
|
|
preferences defPrefs;
|
2021-03-01 19:53:12 +00:00
|
|
|
udpPreferences udpPrefs;
|
|
|
|
udpPreferences udpDefPrefs;
|
2021-04-19 16:49:51 +00:00
|
|
|
|
2021-06-04 07:24:26 +00:00
|
|
|
// Configuration for audio output and input.
|
|
|
|
audioSetup rxSetup;
|
|
|
|
audioSetup txSetup;
|
|
|
|
|
2022-08-23 17:35:59 +00:00
|
|
|
void setDefaultColors(int presetNumber); // populate with default values
|
2021-12-30 00:48:39 +00:00
|
|
|
|
2018-11-25 06:21:36 +00:00
|
|
|
void useColors(); // set the plot up
|
|
|
|
void setDefPrefs(); // populate default values to default prefs
|
2021-02-22 07:58:23 +00:00
|
|
|
void setTuningSteps();
|
2022-08-19 16:41:13 +00:00
|
|
|
void setColorElement(QColor color, QLedLabel *led, QLabel *label);
|
|
|
|
void setColorElement(QColor color, QLedLabel *led, QLineEdit *lineText);
|
|
|
|
void setColorElement(QColor color, QLedLabel *led, QLabel *label, QLineEdit *lineText);
|
2022-08-21 23:47:17 +00:00
|
|
|
QColor getColorFromPicker(QColor initialColor);
|
2022-08-19 16:41:13 +00:00
|
|
|
void getSetColor(QLedLabel *led, QLabel *label);
|
|
|
|
void getSetColor(QLedLabel *led, QLineEdit *line);
|
2022-08-19 17:32:06 +00:00
|
|
|
QString setColorFromString(QString aarrggbb, QLedLabel *led);
|
2022-08-21 23:47:17 +00:00
|
|
|
void setDefaultColorPresets();
|
|
|
|
void loadColorPresetToUIandPlots(int presetNumber);
|
|
|
|
void useColorPreset(colorPrefsType *cp);
|
|
|
|
void useCurrentColorPreset();
|
|
|
|
void setEditAndLedFromColor(QColor c, QLineEdit *e, QLedLabel *d);
|
|
|
|
void setColorButtonOperations(QColor *colorStore, QLineEdit *e, QLedLabel *d);
|
|
|
|
void setColorLineEditOperations(QColor *colorStore, QLineEdit *e, QLedLabel *d);
|
2021-03-22 07:11:43 +00:00
|
|
|
|
2022-08-22 04:19:08 +00:00
|
|
|
void detachSettingsTab();
|
|
|
|
void reattachSettingsTab();
|
|
|
|
void prepareSettingsWindow();
|
|
|
|
QWidget *settingsWidgetWindow;
|
|
|
|
QWidget *settingsTab;
|
|
|
|
QGridLayout *settingsWidgetLayout;
|
|
|
|
QTabWidget *settingsWidgetTab;
|
|
|
|
bool settingsTabisAttached = true;
|
2021-03-22 07:11:43 +00:00
|
|
|
|
|
|
|
quint64 roundFrequency(quint64 frequency, unsigned int tsHz);
|
|
|
|
quint64 roundFrequencyWithStep(quint64 oldFreq, int steps,\
|
|
|
|
unsigned int tsHz);
|
|
|
|
|
|
|
|
void setUIFreq(double frequency);
|
|
|
|
void setUIFreq();
|
2018-11-24 08:10:05 +00:00
|
|
|
|
2021-02-15 04:45:48 +00:00
|
|
|
void changeTxBtn();
|
|
|
|
void issueDelayedCommand(cmds cmd);
|
2021-02-15 04:51:18 +00:00
|
|
|
void issueDelayedCommandPriority(cmds cmd);
|
2021-03-22 07:11:43 +00:00
|
|
|
void issueDelayedCommandUnique(cmds cmd);
|
2021-02-16 01:15:28 +00:00
|
|
|
void changeSliderQuietly(QSlider *slider, int value);
|
2023-02-10 21:17:23 +00:00
|
|
|
void showAndRaiseWidget(QWidget *w);
|
2021-06-19 23:16:07 +00:00
|
|
|
void statusFromSliderPercent(QString name, int percentValue);
|
|
|
|
void statusFromSliderRaw(QString name, int rawValue);
|
2021-02-15 04:45:48 +00:00
|
|
|
|
2021-02-20 08:05:23 +00:00
|
|
|
void processModLevel(rigInput source, unsigned char level);
|
|
|
|
|
|
|
|
void processChangingCurrentModLevel(unsigned char level);
|
|
|
|
|
|
|
|
void changeModLabel(rigInput source);
|
2021-02-20 08:15:47 +00:00
|
|
|
void changeModLabel(rigInput source, bool updateLevel);
|
|
|
|
|
|
|
|
void changeModLabelAndSlider(rigInput source);
|
|
|
|
|
2021-02-21 04:41:19 +00:00
|
|
|
void initPeriodicCommands();
|
2023-01-24 18:37:26 +00:00
|
|
|
// Fast command queue for S-Meter:
|
2021-02-21 04:41:19 +00:00
|
|
|
void insertPeriodicCommand(cmds cmd, unsigned char priority);
|
2021-07-18 06:39:40 +00:00
|
|
|
void insertPeriodicCommandUnique(cmds cmd);
|
|
|
|
void removePeriodicCommand(cmds cmd);
|
2023-01-24 18:37:26 +00:00
|
|
|
// Fast command queue for other functions:
|
|
|
|
void insertPeriodicRapidCmd(cmds cmd);
|
|
|
|
void insertPeriodicRapidCmdUnique(cmds cmd);
|
|
|
|
void removePeriodicRapidCmd(cmds cmd);
|
|
|
|
|
2021-07-17 10:58:31 +00:00
|
|
|
|
2021-06-20 20:34:32 +00:00
|
|
|
void insertSlowPeriodicCommand(cmds cmd, unsigned char priority);
|
2023-01-29 13:09:04 +00:00
|
|
|
void removeSlowPeriodicCommand(cmds cmd);
|
2021-06-08 16:18:40 +00:00
|
|
|
void calculateTimingParameters();
|
2022-11-27 05:43:47 +00:00
|
|
|
void changePollTiming(int timing_ms, bool setUI=false);
|
2021-02-20 08:05:23 +00:00
|
|
|
|
2021-02-17 06:32:05 +00:00
|
|
|
void changeMode(mode_kind mode);
|
|
|
|
void changeMode(mode_kind mode, bool dataOn);
|
|
|
|
|
2023-01-05 20:00:31 +00:00
|
|
|
void connectionHandler(bool connect);
|
|
|
|
|
2021-07-18 06:39:40 +00:00
|
|
|
cmds meterKindToMeterCommand(meterKind m);
|
|
|
|
|
2022-05-17 07:53:24 +00:00
|
|
|
void updateUsbButtons();
|
|
|
|
|
2023-01-30 16:15:43 +00:00
|
|
|
void resetUsbButtons();
|
|
|
|
void resetUsbCommands();
|
|
|
|
|
2018-07-04 00:20:03 +00:00
|
|
|
int oldFreqDialVal;
|
2018-06-19 19:58:52 +00:00
|
|
|
|
2021-01-25 00:16:38 +00:00
|
|
|
rigCapabilities rigCaps;
|
2021-02-20 08:05:23 +00:00
|
|
|
rigInput currentModSrc = inputUnknown;
|
|
|
|
rigInput currentModDataSrc = inputUnknown;
|
2021-04-27 01:24:28 +00:00
|
|
|
mode_kind currentMode = modeUSB;
|
2021-06-26 06:56:19 +00:00
|
|
|
mode_info currentModeInfo;
|
2021-02-20 08:05:23 +00:00
|
|
|
|
2021-01-25 00:16:38 +00:00
|
|
|
bool haveRigCaps;
|
2023-01-29 18:39:24 +00:00
|
|
|
bool amTransmitting = false;
|
|
|
|
bool splitModeEnabled = false;
|
2021-02-20 08:05:23 +00:00
|
|
|
bool usingDataMode = false;
|
|
|
|
|
|
|
|
unsigned char micGain=0;
|
|
|
|
unsigned char accAGain=0;
|
|
|
|
unsigned char accBGain=0;
|
|
|
|
unsigned char accGain=0;
|
|
|
|
unsigned char usbGain=0;
|
|
|
|
unsigned char lanGain=0;
|
2021-01-25 00:16:38 +00:00
|
|
|
|
2023-01-21 06:11:30 +00:00
|
|
|
// Widgets and Special Windows:
|
2021-02-11 05:22:38 +00:00
|
|
|
calibrationWindow *cal;
|
2021-03-31 06:37:35 +00:00
|
|
|
repeaterSetup *rpt;
|
2021-02-13 18:02:45 +00:00
|
|
|
satelliteSetup *sat;
|
2021-07-06 06:56:24 +00:00
|
|
|
transceiverAdjustments *trxadj;
|
2023-01-21 06:11:30 +00:00
|
|
|
cwSender *cw;
|
2022-10-22 19:55:08 +00:00
|
|
|
controllerSetup* shut;
|
2021-07-08 07:31:59 +00:00
|
|
|
aboutbox *abtBox;
|
2022-01-21 19:23:32 +00:00
|
|
|
selectRadio *selRad;
|
2022-09-15 00:07:23 +00:00
|
|
|
loggingWindow *logWindow;
|
2023-02-10 21:03:37 +00:00
|
|
|
bandbuttons *bandbtns;
|
2023-02-12 02:39:02 +00:00
|
|
|
frequencyinputwidget *finputbtns;
|
2023-02-19 03:25:02 +00:00
|
|
|
settingswidget *setupui;
|
2021-02-19 09:28:03 +00:00
|
|
|
|
2021-02-21 14:53:42 +00:00
|
|
|
udpServer* udp = Q_NULLPTR;
|
2021-04-19 16:26:26 +00:00
|
|
|
rigCtlD* rigCtl = Q_NULLPTR;
|
2021-02-21 14:53:42 +00:00
|
|
|
QThread* serverThread = Q_NULLPTR;
|
2021-02-16 16:16:46 +00:00
|
|
|
|
2018-11-16 22:08:21 +00:00
|
|
|
void bandStackBtnClick();
|
|
|
|
bool waitingForBandStackRtn;
|
|
|
|
char bandStkBand;
|
|
|
|
char bandStkRegCode;
|
2021-02-16 16:16:46 +00:00
|
|
|
|
2021-02-22 07:58:23 +00:00
|
|
|
bool freqLock;
|
|
|
|
|
|
|
|
float tsPlus;
|
|
|
|
float tsPlusShift;
|
|
|
|
float tsPlusControl;
|
|
|
|
float tsPage;
|
|
|
|
float tsPageShift;
|
2021-02-27 01:32:06 +00:00
|
|
|
float tsWfScroll;
|
2021-02-22 07:58:23 +00:00
|
|
|
|
2021-03-22 07:11:43 +00:00
|
|
|
unsigned int tsPlusHz;
|
|
|
|
unsigned int tsPlusShiftHz;
|
|
|
|
unsigned int tsPlusControlHz;
|
|
|
|
unsigned int tsPageHz;
|
|
|
|
unsigned int tsPageShiftHz;
|
|
|
|
unsigned int tsWfScrollHz;
|
|
|
|
unsigned int tsKnobHz;
|
2021-02-22 07:58:23 +00:00
|
|
|
|
2021-12-04 19:21:23 +00:00
|
|
|
rigstate* rigState = Q_NULLPTR;
|
2021-02-22 07:58:23 +00:00
|
|
|
|
2023-01-16 12:24:22 +00:00
|
|
|
passbandActions passbandAction = passbandStatic;
|
|
|
|
double TPBFInner = 0.0;
|
|
|
|
double TPBFOuter = 0.0;
|
2023-01-18 18:52:05 +00:00
|
|
|
double passbandCenterFrequency = 0.0;
|
2023-01-25 11:41:50 +00:00
|
|
|
double pbtDefault = 0.0;
|
2023-01-24 20:12:23 +00:00
|
|
|
quint16 cwPitch = 600;
|
2023-01-25 11:41:50 +00:00
|
|
|
|
2023-01-29 19:46:13 +00:00
|
|
|
availableBands lastRequestedBand=bandGen;
|
|
|
|
|
2021-02-16 16:16:46 +00:00
|
|
|
SERVERCONFIG serverConfig;
|
2022-04-22 10:11:21 +00:00
|
|
|
void serverAddUserLine(const QString& user, const QString& pass, const int& type);
|
|
|
|
|
2023-01-12 19:20:52 +00:00
|
|
|
#if defined (USB_CONTROLLER)
|
2022-04-22 10:11:21 +00:00
|
|
|
usbController *usbControllerDev = Q_NULLPTR;
|
|
|
|
QThread *usbControllerThread = Q_NULLPTR;
|
2022-05-17 07:53:24 +00:00
|
|
|
QString usbDeviceName;
|
|
|
|
QVector<COMMAND> usbCommands;
|
2022-09-18 20:00:44 +00:00
|
|
|
QVector<BUTTON> usbButtons;
|
2023-01-12 19:20:52 +00:00
|
|
|
#endif
|
2021-06-04 13:43:27 +00:00
|
|
|
|
2022-09-29 16:17:51 +00:00
|
|
|
dxClusterClient* cluster = Q_NULLPTR;
|
|
|
|
QThread* clusterThread = Q_NULLPTR;
|
|
|
|
QMap<QString, spotData*> clusterSpots;
|
|
|
|
QTimer clusterTimer;
|
|
|
|
QCPItemText* text=Q_NULLPTR;
|
2022-09-30 16:05:42 +00:00
|
|
|
QList<clusterSettings> clusters;
|
|
|
|
QMutex clusterMutex;
|
2022-10-09 13:23:07 +00:00
|
|
|
QColor clusterColor;
|
2022-12-28 16:57:05 +00:00
|
|
|
audioDevices* audioDev = Q_NULLPTR;
|
2018-06-19 19:58:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 05:47:19 +00:00
|
|
|
Q_DECLARE_METATYPE(struct rigCapabilities)
|
2021-03-22 07:11:43 +00:00
|
|
|
Q_DECLARE_METATYPE(struct freqt)
|
2021-06-26 06:56:19 +00:00
|
|
|
Q_DECLARE_METATYPE(struct mode_info)
|
2021-03-01 19:53:12 +00:00
|
|
|
Q_DECLARE_METATYPE(struct udpPreferences)
|
2023-02-20 02:29:22 +00:00
|
|
|
Q_DECLARE_METATYPE(struct preferences)
|
|
|
|
Q_DECLARE_METATYPE(enum prefIfItem)
|
|
|
|
Q_DECLARE_METATYPE(enum prefRaItem)
|
|
|
|
Q_DECLARE_METATYPE(enum prefCtItem)
|
|
|
|
Q_DECLARE_METATYPE(enum prefLanItem)
|
|
|
|
Q_DECLARE_METATYPE(enum prefClusterItem)
|
|
|
|
Q_DECLARE_METATYPE(enum udpPrefsItem)
|
2021-05-17 15:19:36 +00:00
|
|
|
Q_DECLARE_METATYPE(struct audioPacket)
|
2021-06-04 07:24:26 +00:00
|
|
|
Q_DECLARE_METATYPE(struct audioSetup)
|
2022-01-04 19:55:48 +00:00
|
|
|
Q_DECLARE_METATYPE(struct SERVERCONFIG)
|
2021-07-09 19:02:50 +00:00
|
|
|
Q_DECLARE_METATYPE(struct timekind)
|
|
|
|
Q_DECLARE_METATYPE(struct datekind)
|
2022-01-22 15:28:41 +00:00
|
|
|
Q_DECLARE_METATYPE(struct networkStatus)
|
2022-08-24 05:24:05 +00:00
|
|
|
Q_DECLARE_METATYPE(struct networkAudioLevels)
|
2022-09-29 16:17:51 +00:00
|
|
|
Q_DECLARE_METATYPE(struct spotData)
|
2021-02-19 05:47:19 +00:00
|
|
|
Q_DECLARE_METATYPE(enum rigInput)
|
2021-02-21 04:41:19 +00:00
|
|
|
Q_DECLARE_METATYPE(enum meterKind)
|
2021-03-01 05:41:27 +00:00
|
|
|
Q_DECLARE_METATYPE(enum spectrumMode)
|
2022-09-26 00:44:49 +00:00
|
|
|
Q_DECLARE_METATYPE(enum mode_kind)
|
2023-01-27 22:05:50 +00:00
|
|
|
Q_DECLARE_METATYPE(enum vfo_t)
|
2022-01-22 15:32:53 +00:00
|
|
|
Q_DECLARE_METATYPE(QList<radio_cap_packet>)
|
2022-10-05 10:03:15 +00:00
|
|
|
Q_DECLARE_METATYPE(QList<spotData>)
|
2021-11-23 00:39:10 +00:00
|
|
|
Q_DECLARE_METATYPE(rigstate*)
|
2022-04-22 10:11:21 +00:00
|
|
|
Q_DECLARE_METATYPE(QVector <BUTTON>*)
|
2022-05-17 07:53:24 +00:00
|
|
|
Q_DECLARE_METATYPE(struct BUTTON*)
|
2022-04-25 16:40:41 +00:00
|
|
|
Q_DECLARE_METATYPE(QVector <COMMAND>*)
|
2022-04-27 11:56:54 +00:00
|
|
|
Q_DECLARE_METATYPE(const COMMAND*)
|
2023-01-01 16:17:48 +00:00
|
|
|
Q_DECLARE_METATYPE(codecType)
|
2023-01-05 19:37:53 +00:00
|
|
|
Q_DECLARE_METATYPE(errorType)
|
2023-01-27 22:05:50 +00:00
|
|
|
Q_DECLARE_METATYPE(enum duplexMode)
|
|
|
|
Q_DECLARE_METATYPE(enum rptAccessTxRx)
|
|
|
|
Q_DECLARE_METATYPE(struct rptrTone_t)
|
|
|
|
Q_DECLARE_METATYPE(struct rptrAccessData_t)
|
2021-01-25 00:16:38 +00:00
|
|
|
|
2022-09-15 00:07:23 +00:00
|
|
|
//void (*wfmain::logthistext)(QString text) = NULL;
|
2021-01-25 00:16:38 +00:00
|
|
|
|
2018-06-19 19:58:52 +00:00
|
|
|
#endif // WFMAIN_H
|
2022-05-14 14:05:48 +00:00
|
|
|
#endif
|