mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 06:08:42 -05:00
Switch automatically to EU VHF contest messages, with notification to user.
This commit is contained in:
parent
ca2c1a2b8b
commit
2c6344cdfa
@ -851,6 +851,14 @@ QString Configuration::FieldDayExchange() const
|
|||||||
return m_->FD_exchange_;
|
return m_->FD_exchange_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Configuration::setEU_VHF_Contest()
|
||||||
|
{
|
||||||
|
m_->bEU_VHF_Contest_ = true;
|
||||||
|
m_->ui_->rbEU_VHF_Contest->setChecked(m_->bEU_VHF_Contest_);
|
||||||
|
m_->ui_->cbGenerate77->setChecked(true);
|
||||||
|
m_->write_settings();
|
||||||
|
}
|
||||||
|
|
||||||
QString Configuration::RTTYExchange() const
|
QString Configuration::RTTYExchange() const
|
||||||
{
|
{
|
||||||
return m_->RTTY_exchange_;
|
return m_->RTTY_exchange_;
|
||||||
|
@ -98,6 +98,7 @@ public:
|
|||||||
QString my_grid () const;
|
QString my_grid () const;
|
||||||
QString FieldDayExchange() const;
|
QString FieldDayExchange() const;
|
||||||
QString RTTYExchange() const;
|
QString RTTYExchange() const;
|
||||||
|
void setEU_VHF_Contest();
|
||||||
QFont text_font () const;
|
QFont text_font () const;
|
||||||
QFont decoded_text_font () const;
|
QFont decoded_text_font () const;
|
||||||
qint32 id_interval () const;
|
qint32 id_interval () const;
|
||||||
|
@ -4291,8 +4291,16 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
}
|
}
|
||||||
bool bEU_VHF_w2=(nrpt>=520001 and nrpt<=594000);
|
bool bEU_VHF_w2=(nrpt>=520001 and nrpt<=594000);
|
||||||
if(bEU_VHF_w2 and m_nContest!=EU_VHF) {
|
if(bEU_VHF_w2 and m_nContest!=EU_VHF) {
|
||||||
// ### Should be in EU VHF Contest mode ??? ###
|
// Switch automatically to EU VHF Contest mode
|
||||||
MessageBox::information_message (this, tr ("Should you switch to EU VHF Contest mode?"));
|
m_config.setEU_VHF_Contest();
|
||||||
|
m_nContest=EU_VHF;
|
||||||
|
if(m_transmitting) m_restart=true;
|
||||||
|
ui->decodedTextBrowser2->displayQSY (QString{"Enabled EU VHF Contest messages."});
|
||||||
|
|
||||||
|
// MessageBox::information_message (this, tr ("EU VHF Contest messages enabled."));
|
||||||
|
QString t0=" Tx2.0 EU VHF";
|
||||||
|
ui->labDXped->setVisible(true);
|
||||||
|
ui->labDXped->setText(t0);
|
||||||
}
|
}
|
||||||
QStringList t=message.string().split(' ', QString::SkipEmptyParts);
|
QStringList t=message.string().split(' ', QString::SkipEmptyParts);
|
||||||
int n=t.size();
|
int n=t.size();
|
||||||
@ -4314,8 +4322,8 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
|
|||||||
n=w34.toInt();
|
n=w34.toInt();
|
||||||
bool bRTTY = (n>=529 and n<=599);
|
bool bRTTY = (n>=529 and n<=599);
|
||||||
if(bRTTY and m_nContest!=RTTY) {
|
if(bRTTY and m_nContest!=RTTY) {
|
||||||
// ### Should be in ARRL RTTY Roundup mode ??? ###
|
// ### Should be in RTTY contest mode ??? ###
|
||||||
MessageBox::information_message (this, tr ("Should you switch to ARRL RTTY Roundup mode?"));
|
MessageBox::information_message (this, tr ("Should you switch to RTTY contest mode?"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(message_words.size () > 3 // enough fields for a normal message
|
if(message_words.size () > 3 // enough fields for a normal message
|
||||||
|
Loading…
Reference in New Issue
Block a user