Starting to clean up the Q65W WideGraph UI.

This commit is contained in:
Joe Taylor 2022-12-10 13:18:08 -05:00
parent 4b3cc34fa5
commit 1dba0e1602
2 changed files with 4 additions and 61 deletions

View File

@ -299,31 +299,6 @@ void WideGraph::on_fCenterLineEdit_editingFinished()
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)
{
ui->widePlot->set2Dspec(b);
@ -344,43 +319,12 @@ void WideGraph::on_cbLockTxRx_stateChanged(int n)
m_bLockTxRx = (n!=0);
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()
{
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, '.');
txFreq.insert (txFreq.size () - 3, '.');
ui->labFreq->setText (QString {"Rx: %1\nTx: %2"}.arg (rxFreq, txFreq));
ui->labFreq->setText (QString {"Rx: %1"}.arg (rxFreq));
}
void WideGraph::enableSetRxHardware(bool b)

View File

@ -44,9 +44,9 @@
<property name="geometry">
<rect>
<x>940</x>
<y>230</y>
<y>250</y>
<width>211</width>
<height>41</height>
<height>21</height>
</rect>
</property>
<property name="font">
@ -61,8 +61,7 @@
}</string>
</property>
<property name="text">
<string>Rx: 144.118.200
Tx: 144.127.317</string>
<string>Rx: 1296.065.200</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>