diff options
Diffstat (limited to 'mainwindow.h')
| -rw-r--r-- | mainwindow.h | 83 |
1 files changed, 75 insertions, 8 deletions
diff --git a/mainwindow.h b/mainwindow.h index e214b316..c9d3dcef 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -49,7 +49,7 @@ #define NUM_FT8_SYMBOLS 79 #define NUM_CW_SYMBOLS 250 #define TX_SAMPLE_RATE 48000 -#define N_WIDGETS 24 +#define N_WIDGETS 33 extern int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols extern int volatile icw[NUM_CW_SYMBOLS]; //Dits for CW ID @@ -109,6 +109,7 @@ public slots: void guiUpdate(); void doubleClickOnCall (Qt::KeyboardModifiers); void doubleClickOnCall2(Qt::KeyboardModifiers); + void doubleClickOnFoxQueue(Qt::KeyboardModifiers); void readFromStdout(); void p1ReadFromStdout(); void setXIT(int n, Frequency base = 0u); @@ -137,6 +138,7 @@ private slots: void on_stopTxButton_clicked(); void on_stopButton_clicked(); void on_actionRelease_Notes_triggered (); + void on_actionFT8_DXpedition_Mode_User_Guide_triggered(); void on_actionOnline_User_Guide_triggered(); void on_actionLocal_User_Guide_triggered(); void on_actionWide_Waterfall_triggered(); @@ -197,6 +199,7 @@ private slots: void on_actionDeepestDecode_toggled (bool); void bumpFqso(int n); void on_actionErase_ALL_TXT_triggered(); + void on_actionErase_FoxQSO_txt_triggered(); void on_actionErase_wsjtx_log_adi_triggered(); void startTx2(); void startP1(); @@ -216,17 +219,17 @@ private slots: void on_tuneButton_clicked (bool); void on_pbR2T_clicked(); void on_pbT2R_clicked(); - void acceptQSO2(QDateTime const&, QString const& call, QString const& grid + void acceptQSO (QDateTime const&, QString const& call, QString const& grid , Frequency dial_freq, QString const& mode , QString const& rpt_sent, QString const& rpt_received , QString const& tx_power, QString const& comments - , QString const& name, QDateTime const&); + , QString const& name, QDateTime const& QSO_date_on, QString const& operator_call + , QString const& my_call, QString const& my_grid, QByteArray const& ADIF); void on_bandComboBox_currentIndexChanged (int index); void on_bandComboBox_activated (int index); void on_readFreq_clicked(); void on_pbTxMode_clicked(); void on_RxFreqSpinBox_valueChanged(int n); - void on_cbHoldTxFreq_clicked(bool checked); void on_outAttenuation_valueChanged (int); void rigOpen (); void handle_transceiver_update (Transceiver::TransceiverState const&); @@ -239,6 +242,7 @@ private slots: void stopTuneATU(); void auto_tx_mode(bool); void on_actionMessage_averaging_triggered(); + void on_actionFox_Log_triggered(); void on_actionInclude_averaging_toggled (bool); void on_actionInclude_correlation_toggled (bool); void on_actionEnable_AP_DXcall_toggled (bool); @@ -248,6 +252,7 @@ private slots: void on_cbSWL_toggled(bool b); void on_cbTx6_toggled(bool b); void on_cbMenus_toggled(bool b); + void on_cbCQonly_toggled(bool b); void on_cbFirst_toggled(bool b); void on_cbAutoSeq_toggled(bool b); void networkError (QString const&); @@ -282,6 +287,12 @@ private slots: void on_actionFreqCal_triggered(); void splash_done (); void on_measure_check_box_stateChanged (int); + void on_sbNlist_valueChanged(int n); + void on_sbNslots_valueChanged(int n); + void on_sbMax_dB_valueChanged(int n); + void on_pbFoxReset_clicked(); + void on_comboBoxHoundSort_activated (int index); + void not_GA_warning_message (); private: Q_SIGNAL void initializeAudioOutputStream (QAudioDeviceInfo, @@ -312,6 +323,7 @@ private: void writeAllTxt(QString message); void auto_sequence (DecodedText const& message, unsigned start_tolerance, unsigned stop_tolerance); void hideMenus(bool b); + void foxTest(); NetworkAccessManager m_network_manager; bool m_valid; @@ -357,6 +369,9 @@ private: qint64 m_msErase; qint64 m_secBandChanged; qint64 m_freqMoon; + qint64 m_msec0; + qint64 m_fullFoxCallTime; + Frequency m_freqNominal; Frequency m_freqTxNominal; Astro::Correction m_astroCorrection; @@ -407,6 +422,24 @@ private: qint32 m_UTCdisk; qint32 m_wait; qint32 m_i3bit; + qint32 m_isort; + qint32 m_max_dB; + qint32 m_nDXped=0; + qint32 m_nSortedHounds=0; + qint32 m_nHoundsCalling=0; + qint32 m_Nlist=12; + qint32 m_Nslots=5; + qint32 m_nFoxMsgTimes[5]={0,0,0,0,0}; + qint32 m_tAutoOn; +// qint32 m_maxQSOs; + qint32 m_tFoxTx=0; + qint32 m_tFoxTx0=0; + qint32 m_maxStrikes=3; //Max # of repeats: 3 strikes and you're out + qint32 m_maxFoxWait=3; //Max wait time for expected Hound replies + qint32 m_foxCQtime=10; //CQs at least every 5 minutes + qint32 m_tFoxTxSinceCQ=999; //Fox Tx cycles since most recent CQ + qint32 m_nFoxFreq; //Audio freq at which Hound received a call from Fox + qint32 m_nSentFoxRrpt=0; //Serial number for next R+rpt Hound will send to Fox bool m_btxok; //True if OK to transmit bool m_diskData; @@ -431,7 +464,6 @@ private: QString m_currentMessage; int m_lastMessageType; QString m_lastMessageSent; - bool m_holdTxFreq; bool m_bShMsgs; bool m_bSWL; bool m_uploadSpots; @@ -461,7 +493,8 @@ private: bool m_bCallingCQ; bool m_bAutoReply; bool m_bCheckedContest; - bool m_bDXped; + bool m_bWarnedSplit=false; + bool m_bWarnedHound=false; enum { @@ -543,11 +576,34 @@ private: QString m_fileToSave; QString m_calls; QString m_CQtype; + QString m_opCall; + QString m_houndCallers; //Sorted list of Hound callers + QString m_fm0; + QString m_fm1; QSet<QString> m_pfx; QSet<QString> m_sfx; + struct FoxQSO //Everything we need to know about QSOs in progress (or recently logged). + { + QString grid; //Hound's declared locator + QString sent; //Report sent to Hound + QString rcvd; //Report received from Hound + qint32 ncall; //Number of times report sent to Hound + qint32 nRR73; //Number of times RR73 sent to Hound + qint32 tFoxRrpt; //m_tFoxTx (Fox Tx cycle counter) when R+rpt was received from Hound + qint32 tFoxTxRR73; //m_tFoxTx when RR73 was sent to Hound + }; + + QMap<QString,FoxQSO> m_foxQSO; //Key = HoundCall, value = parameters for QSO in progress + QMap<QString,QString> m_loggedByFox; //Key = HoundCall, value = logged band + + QQueue<QString> m_houndQueue; //Selected Hounds available for starting a QSO + QQueue<QString> m_foxQSOinProgress; //QSOs in progress: Fox has sent a report + QQueue<qint64> m_foxRateQueue; + QDateTime m_dateTimeQSOOn; + QDateTime m_dateTimeLastTX; QSharedMemory *mem_jt9; LogBook m_logBook; @@ -566,6 +622,7 @@ private: bool m_block_pwr_tooltip; bool m_PwrBandSetOK; bool m_bVHFwarned; + bool m_bDisplayedOnce; Frequency m_lastMonitoredFrequency; double m_toneSpacing; int m_firstDecode; @@ -604,6 +661,7 @@ private: void transmitDisplay (bool); void processMessage(DecodedText const&, Qt::KeyboardModifiers = 0); void replyToCQ (QTime, qint32 snr, float delta_time, quint32 delta_frequency, QString const& mode, QString const& message_text, bool low_confidence, quint8 modifiers); + void locationChange(QString const& location); void replayDecodes (); void postDecode (bool is_new, QString const& message); void postWSPRDecode (bool is_new, QStringList message_parts); @@ -626,6 +684,9 @@ private: , Frequency frequency , QString const& his_call , QString const& his_grid) const; + void hound_reply (); + QString sortHoundCalls(QString t, int isort, int max_dB); + void rm_tb4(QString houndCall); void read_wav_file (QString const& fname); void decodeDone (); void subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus); @@ -637,12 +698,18 @@ private: void remove_child_from_event_filter (QObject *); void setup_status_bar (bool vhf); void tx_watchdog (bool triggered); - int nWidgets(QString t); - void displayWidgets(int n); + qint64 nWidgets(QString t); + void displayWidgets(qint64 n); void vhfWarning(); QChar current_submode () const; // returns QChar {0} if sub mode is // not appropriate void write_transmit_entry (QString const& file_name); + void selectHound(QString t); + void houndCallers(); + void foxRxSequencer(QString msg, QString houndCall, QString rptRcvd); + void foxTxSequencer(); + void foxGenWaveform(int i,QString fm); + void writeFoxQSO(QString msg); }; extern int killbyname(const char* progName); |
