mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Starting to clean up the Q65W WideGraph UI.
This commit is contained in:
parent
4b3cc34fa5
commit
1dba0e1602
@ -299,31 +299,6 @@ void WideGraph::on_fCenterLineEdit_editingFinished()
|
|||||||
m_dForceCenterFreq=ui->fCenterLineEdit->text().toDouble();
|
m_dForceCenterFreq=ui->fCenterLineEdit->text().toDouble();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
void WideGraph::on_pbSetRxHardware_clicked()
|
|
||||||
{
|
|
||||||
int iret=set570(m_mult570*(1.0+0.000001*m_cal570)*m_dForceCenterFreq);
|
|
||||||
if(iret != 0) {
|
|
||||||
QMessageBox mb;
|
|
||||||
if(iret==-1) mb.setText("Failed to open Si570.");
|
|
||||||
if(iret==-2) mb.setText("Frequency out of permitted range.");
|
|
||||||
mb.exec();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void WideGraph::initIQplus()
|
|
||||||
{
|
|
||||||
int iret=set570(288.0);
|
|
||||||
if(iret != 0) {
|
|
||||||
QMessageBox mb;
|
|
||||||
if(iret==-1) mb.setText("Failed to open Si570.");
|
|
||||||
if(iret==-2) mb.setText("Frequency out of permitted range.");
|
|
||||||
mb.exec();
|
|
||||||
} else {
|
|
||||||
on_pbSetRxHardware_clicked();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
void WideGraph::on_cbSpec2d_toggled(bool b)
|
void WideGraph::on_cbSpec2d_toggled(bool b)
|
||||||
{
|
{
|
||||||
ui->widePlot->set2Dspec(b);
|
ui->widePlot->set2Dspec(b);
|
||||||
@ -344,43 +319,12 @@ void WideGraph::on_cbLockTxRx_stateChanged(int n)
|
|||||||
m_bLockTxRx = (n!=0);
|
m_bLockTxRx = (n!=0);
|
||||||
ui->widePlot->setLockTxRx(m_bLockTxRx);
|
ui->widePlot->setLockTxRx(m_bLockTxRx);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
void WideGraph::rx570()
|
|
||||||
{
|
|
||||||
double f=m_mult570*(1.0+0.000001*m_cal570)*m_dForceCenterFreq;
|
|
||||||
int iret=set570(f);
|
|
||||||
if(iret != 0) {
|
|
||||||
QMessageBox mb;
|
|
||||||
if(iret==-1) mb.setText("Failed to open Si570.");
|
|
||||||
if(iret==-2) mb.setText("Frequency out of permitted range.");
|
|
||||||
mb.exec();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void WideGraph::tx570()
|
|
||||||
{
|
|
||||||
if(m_bForceCenterFreq) datcom_.fcenter=m_dForceCenterFreq;
|
|
||||||
m_bIQxt=true;
|
|
||||||
double f=ui->widePlot->txFreq();
|
|
||||||
// double f1=m_mult570Tx*(1.0+0.000001*m_cal570) * f;
|
|
||||||
double f1=m_mult570Tx*(1.0+0.000001*m_cal570) * (f - m_TxOffset);
|
|
||||||
|
|
||||||
int iret=set570(f1);
|
|
||||||
if(iret != 0) {
|
|
||||||
QMessageBox mb;
|
|
||||||
if(iret==-1) mb.setText("Failed to open Si570.");
|
|
||||||
if(iret==-2) mb.setText("Frequency out of permitted range.");
|
|
||||||
mb.exec();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
void WideGraph::updateFreqLabel()
|
void WideGraph::updateFreqLabel()
|
||||||
{
|
{
|
||||||
auto rxFreq = QString {"%1"}.arg (ui->widePlot->rxFreq (), 10, 'f', 6);
|
auto rxFreq = QString {"%1"}.arg (ui->widePlot->rxFreq (), 10, 'f', 6);
|
||||||
auto txFreq = QString {"%1"}.arg (ui->widePlot->txFreq (), 10, 'f', 6);
|
|
||||||
rxFreq.insert (rxFreq.size () - 3, '.');
|
rxFreq.insert (rxFreq.size () - 3, '.');
|
||||||
txFreq.insert (txFreq.size () - 3, '.');
|
ui->labFreq->setText (QString {"Rx: %1"}.arg (rxFreq));
|
||||||
ui->labFreq->setText (QString {"Rx: %1\nTx: %2"}.arg (rxFreq, txFreq));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WideGraph::enableSetRxHardware(bool b)
|
void WideGraph::enableSetRxHardware(bool b)
|
||||||
|
@ -44,9 +44,9 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>940</x>
|
<x>940</x>
|
||||||
<y>230</y>
|
<y>250</y>
|
||||||
<width>211</width>
|
<width>211</width>
|
||||||
<height>41</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
@ -61,8 +61,7 @@
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Rx: 144.118.200
|
<string>Rx: 1296.065.200</string>
|
||||||
Tx: 144.127.317</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user