From 0071aa56ef2ea70a2669161554cc1f79463f83a1 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 25 Mar 2013 12:45:37 +0000 Subject: [PATCH] Connected the commanded dial frequency to the label, and increased the font size. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3094 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 19 ++++++++++++++----- mainwindow.ui | 32 ++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 19 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index c44d0d0a0..7836525b5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -37,11 +37,12 @@ MainWindow::MainWindow(QWidget *parent) : on_EraseButton_clicked(); ui->labUTC->setStyleSheet( \ "QLabel { background-color : black; color : yellow; }"); - //ui->labTol1->setStyleSheet( \ - // "QLabel { background-color : white; color : black; }"); - //ui->labTol1->setFrameStyle(QFrame::Panel | QFrame::Sunken); - //ui->dxStationGroupBox->setStyleSheet("QFrame{border: 5px groove red}"); - +/* + ui->labTol1->setStyleSheet( \ + "QLabel { background-color : white; color : black; }"); + ui->labTol1->setFrameStyle(QFrame::Panel | QFrame::Sunken); + ui->dxStationGroupBox->setStyleSheet("QFrame{border: 5px groove red}"); +*/ QActionGroup* paletteGroup = new QActionGroup(this); ui->actionCuteSDR->setActionGroup(paletteGroup); ui->actionLinrad->setActionGroup(paletteGroup); @@ -325,6 +326,7 @@ void MainWindow::writeSettings() settings.setValue("MonitorOFF",m_monitorStartOFF); settings.setValue("NB",m_NB); settings.setValue("NBslider",m_NBslider); + settings.setValue("DialFreq",m_dialFreq); settings.setValue("TxFreq",m_txFreq); settings.setValue("Tol",m_tol); settings.setValue("InGain",m_inGain); @@ -398,6 +400,8 @@ void MainWindow::readSettings() ui->NBcheckBox->setChecked(m_NB); m_NBslider=settings.value("NBslider",40).toInt(); ui->NBslider->setValue(m_NBslider); + m_dialFreq=settings.value("DialFreq",14.078).toDouble(); + dialFreqChanged2(m_dialFreq); m_txFreq=settings.value("TxFreq",1500).toInt(); ui->TxFreqSpinBox->setValue(m_txFreq); soundOutThread.setTxFreq(m_txFreq); @@ -719,6 +723,11 @@ void MainWindow::bumpFqso(int n) //bumpFqso() void MainWindow::dialFreqChanged2(double f) { m_dialFreq=f; + QString t; + t.sprintf("%.6f",m_dialFreq); + int n=t.length(); + t=t.mid(0,n-3) + " " + t.mid(n-3,3) + " MHz"; + ui->labDialFreq->setText(t); statusChanged(); } diff --git a/mainwindow.ui b/mainwindow.ui index 54e5b24dd..198079f81 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -304,6 +304,11 @@ p, li { white-space: pre-wrap; } + + + 12 + + Dial Frequency @@ -394,7 +399,7 @@ p, li { white-space: pre-wrap; } - buttonGroup + buttonGroup @@ -425,7 +430,7 @@ p, li { white-space: pre-wrap; } true - buttonGroup + buttonGroup @@ -725,7 +730,7 @@ p, li { white-space: pre-wrap; } - buttonGroup + buttonGroup @@ -766,7 +771,7 @@ p, li { white-space: pre-wrap; } - buttonGroup + buttonGroup @@ -829,7 +834,7 @@ p, li { white-space: pre-wrap; } - buttonGroup + buttonGroup @@ -857,7 +862,7 @@ p, li { white-space: pre-wrap; } - buttonGroup + buttonGroup @@ -1008,7 +1013,7 @@ p, li { white-space: pre-wrap; } - + 0 @@ -1021,19 +1026,19 @@ p, li { white-space: pre-wrap; } 180 - + 1 - + 60.000000000000000 - + 0.000000000000000 - + 8 - + 0.000000000000000 @@ -1616,7 +1621,6 @@ p, li { white-space: pre-wrap; } - labAz @@ -1624,7 +1628,7 @@ p, li { white-space: pre-wrap; } 0 0 686 - 25 + 21