From 5c8ff568c38cac9c8fdfade62b9c368d9e672496 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 19 Mar 2018 00:05:12 -0400 Subject: [PATCH] Updated main ui --- mainwindow.cpp | 13 ++++-- mainwindow.ui | 113 +++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 109 insertions(+), 17 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index f760f9b..213c904 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -937,8 +937,14 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, ui->cbMenus->setChecked(false); } - + //UI Customizations ui->mdiArea->addSubWindow(m_wideGraph.data(), Qt::Dialog | Qt::FramelessWindowHint | Qt::CustomizeWindowHint | Qt::Tool)->showMaximized(); + ui->menuDecode->setEnabled(false); + ui->menuMode->setEnabled(false); + ui->menuSave->setEnabled(false); + ui->menuTools->setEnabled(false); + ui->menuView->setEnabled(false); + // this must be the last statement of constructor if (!m_valid) throw std::runtime_error {"Fatal initialization exception"}; @@ -2974,7 +2980,7 @@ void MainWindow::readFromStdout() //readFromStdout } m_QSOText = decodedtext.string ().trimmed (); - //ui->textEditRX->insertHtml(decodedtext.messageWords().first().trimmed() + " "); + ui->textEditRXAll->insertHtml(decodedtext.messageWords().first().trimmed() + "\n"); } if(m_mode=="FT8" and m_config.bHound()) { @@ -6119,6 +6125,7 @@ void MainWindow::setXIT(int n, Frequency base) void MainWindow::setFreq4(int rxFreq, int txFreq) { if (ui->RxFreqSpinBox->isEnabled ()) ui->RxFreqSpinBox->setValue(rxFreq); + ui->labDialFreqOffset->setText(QString("%1 Hz").arg(rxFreq)); if(m_mode.startsWith ("WSPR")) { ui->WSPRfreqSpinBox->setValue(txFreq); } else { @@ -6506,7 +6513,7 @@ void MainWindow::transmitDisplay (bool transmitting) } // the following are always disallowed in transmit - ui->menuMode->setEnabled (!transmitting); + //ui->menuMode->setEnabled (!transmitting); //ui->bandComboBox->setEnabled (!transmitting); if (!transmitting) { if (m_mode == "JT9+JT65") { diff --git a/mainwindow.ui b/mainwindow.ui index 700327b..8451a98 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -76,7 +76,18 @@ 4 - + + + background-color: #dfe6e9; + + + true + + + + + + 0 @@ -92,7 +103,7 @@ true - QTextEdit { background:rgb(255, 250, 205); } + background-color:#ffeaa7; true @@ -101,7 +112,7 @@ - + 0 @@ -121,7 +132,7 @@ - + 0 0 @@ -149,7 +160,7 @@ - + 0 @@ -258,7 +269,7 @@ false - background-color:rgb(0,0,0); + color:white; background-color:rgb(0,0,0); QFrame::NoFrame @@ -286,7 +297,8 @@ background-color : black; } QLabel[oob="true"] { - background-color: red; + color : #EEEEEE; + font-style: italic; } @@ -297,10 +309,55 @@ QLabel[oob="true"] { Qt::AlignCenter - 5 + 0 + + + + + 0 + 0 + + + + Current frequency offset + + + QLabel { + font-family: MS Shell Dlg 2; + font-size: 12pt; + font-style: italic; + color : white; + background-color : black; +} + + + + 1500 Hz + + + Qt::AlignCenter + + + 0 + + + + + + + Qt::Vertical + + + + 20 + 20 + + + + @@ -340,6 +397,19 @@ QLabel[oob="true"] { + + + + Qt::Vertical + + + + 20 + 20 + + + + @@ -352,7 +422,7 @@ QLabel[oob="true"] { - background-color:rgb(0,0,0); + color:white; background-color:rgb(0,0,0); QFrame::NoFrame @@ -556,7 +626,7 @@ background-color: #6699ff; } - BCN + SND true @@ -1064,7 +1134,7 @@ background-color: #00ff00; 0 - + false @@ -2957,7 +3027,7 @@ list. The list can be maintained in Settings (F2). - + false @@ -3231,7 +3301,7 @@ list. The list can be maintained in Settings (F2). 0 0 1195 - 27 + 22 @@ -3384,6 +3454,9 @@ list. The list can be maintained in Settings (F2). Waterfall + + false + @@ -3424,6 +3497,9 @@ list. The list can be maintained in Settings (F2). Fast + + false + @@ -3435,6 +3511,9 @@ list. The list can be maintained in Settings (F2). None + + false + @@ -3826,6 +3905,9 @@ list. The list can be maintained in Settings (F2). Erase reference spectrum + + false + @@ -3862,11 +3944,14 @@ list. The list can be maintained in Settings (F2). true - true + false FT8 + + false +