This commit is contained in:
shuibing811
2025-02-10 16:22:33 +08:00
parent 0d4d72e8f6
commit dbf3b74b0c
13 changed files with 528 additions and 83 deletions

View File

@@ -9,6 +9,8 @@
#include "RecordQuery.h"
#include "LoggerWidget.h"
#include "spdlog/spdlog.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
@@ -53,6 +55,8 @@ private slots:
void on_btnRecordQuery_clicked();
void readPendingDatagrams();
void on_tblMessageList_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
protected:
void keyPressEvent(QKeyEvent* event) override;
@@ -80,6 +84,7 @@ private:
Ui::MainWindow *ui;
CallStatus m_callStatus = CallStatus::Idle;
std::shared_ptr<QUdpSocket> m_udpSocket;
std::shared_ptr<QUdpSocket> m_udpServerSocket;
std::shared_ptr<RecordQuery> m_recordQueryWidget;
std::shared_ptr<LoggerWidget> m_loggerWidget;
QChart* m_signalStrengthChart;
@@ -87,6 +92,8 @@ private:
QBarCategoryAxis* m_signalStrengthChartXAxis;
QValueAxis* m_signalStrengthChartYAxis;
std::shared_ptr<spdlog::logger> m_logger;
std::vector<Record> m_msgList;
};
#endif // MAINWINDOW_H