From 73533608e6470b498f55fc4394e8d15dbc25ab9c Mon Sep 17 00:00:00 2001 From: wh201906 Date: Fri, 14 Aug 2020 00:46:07 +0800 Subject: [PATCH] Add some useless UI --- ui/mainwindow.cpp | 19 +++-- ui/mainwindow.ui | 213 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 225 insertions(+), 7 deletions(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index f3dbaac..6ad89ba 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -119,13 +119,6 @@ void MainWindow::refreshOutput(const QString& output) ui->Raw_outputEdit->moveCursor(QTextCursor::End); } -void MainWindow::refreshCMD(const QString& cmd) -{ - ui->Raw_CMDEdit->setText(cmd); - if(cmd != "" && (ui->Raw_CMDHistoryWidget->count() == 0 || ui->Raw_CMDHistoryWidget->item(ui->Raw_CMDHistoryWidget->count() - 1)->text() != cmd)) - ui->Raw_CMDHistoryWidget->addItem(cmd); -} - void MainWindow::on_stopButton_clicked() { @@ -178,6 +171,18 @@ void MainWindow::sendMSG() // send command when pressing Enter on_Raw_sendCMDButton_clicked(); } + +void MainWindow::refreshCMD(const QString& cmd) +{ + ui->Raw_CMDEdit->blockSignals(true); + ui->Raw_CMDEdit->setText(cmd); + if(cmd != "" && (ui->Raw_CMDHistoryWidget->count() == 0 || ui->Raw_CMDHistoryWidget->item(ui->Raw_CMDHistoryWidget->count() - 1)->text() != cmd)) + ui->Raw_CMDHistoryWidget->addItem(cmd); + stashedCMDEditText = cmd; + stashedIndex = -1; + ui->Raw_CMDEdit->blockSignals(false); +} + void MainWindow::on_Raw_CMDEdit_keyPressed(QObject* obj_addr, QEvent& event) { if(obj_addr == ui->Raw_CMDEdit && event.type() == QEvent::KeyRelease) diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui index 3279bd5..5207ec6 100644 --- a/ui/mainwindow.ui +++ b/ui/mainwindow.ui @@ -1168,6 +1168,219 @@ + + + LF/Data + + + + + 30 + 30 + 121 + 211 + + + + LF Config + + + + 2 + + + 2 + + + 5 + + + 2 + + + 2 + + + + + Frequency + + + + 5 + + + 2 + + + 5 + + + 2 + + + 2 + + + + + + 0 + 0 + + + + 125k + + + + + + + + 0 + 0 + + + + 134k + + + + + + + + + + + + BitRate: + + + + + + + Decimation: + + + + + + + + + + Averaging: + + + + + + + + + + + + + + Threshold: + + + + + + + + + + Skips: + + + + + + + + + + + + + + + + + + 0 + 0 + + + + + 20 + 0 + + + + Get + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 20 + 0 + + + + Set + + + + + + + + + + + T55xx + + + + + 20 + 10 + 256 + 192 + + + + RawCommand