---
This commit is contained in:
104
RecordQuery.ui
104
RecordQuery.ui
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>884</width>
|
||||
<height>677</height>
|
||||
<height>745</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -191,6 +191,104 @@
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_4">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="res.qrc">
|
||||
<normaloff>:/rc/res/first_page.png</normaloff>:/rc/res/first_page.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_3">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="res.qrc">
|
||||
<normaloff>:/rc/res/previous_page.png</normaloff>:/rc/res/previous_page.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>80</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_2">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="res.qrc">
|
||||
<normaloff>:/rc/res/next_page.png</normaloff>:/rc/res/next_page.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="res.qrc">
|
||||
<normaloff>:/rc/res/last_page.png</normaloff>:/rc/res/last_page.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_22">
|
||||
<item>
|
||||
@@ -236,6 +334,8 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="res.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
@@ -30,10 +30,23 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
m_udpSocket = std::make_shared<QUdpSocket>();
|
||||
m_recordQueryWidget = std::make_shared<RecordQuery>();
|
||||
m_recordQueryWidget->hide();
|
||||
|
||||
m_loggerWidget = std::make_shared<LoggerWidget>();
|
||||
m_loggerWidget->hide();
|
||||
|
||||
test();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() { delete ui; }
|
||||
|
||||
void MainWindow::keyPressEvent(QKeyEvent* event){
|
||||
if(event->key() == Qt::Key_L && event->modifiers() & Qt::ControlModifier){
|
||||
m_loggerWidget->show();
|
||||
}else{
|
||||
QWidget::keyPressEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::test() {
|
||||
|
||||
// 随机生成信号能量数据
|
||||
@@ -327,8 +340,7 @@ void MainWindow::on_tblMessageList_currentItemChanged(QTableWidgetItem *current,
|
||||
|
||||
|
||||
void MainWindow::on_btnRecordQuery_clicked() {
|
||||
// m_recordQueryWidget->show();
|
||||
test();
|
||||
m_recordQueryWidget->show();
|
||||
}
|
||||
//--------------------------------------------------------------------------------------
|
||||
// 与底层消息交互
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "RecordQuery.h"
|
||||
#include "LoggerWidget.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
@@ -53,7 +54,8 @@ private slots:
|
||||
void on_btnRecordQuery_clicked();
|
||||
|
||||
void on_tblMessageList_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
private:
|
||||
void createBeiDouSignalStrengthChart();
|
||||
void createAzimuthMapChart();
|
||||
@@ -79,6 +81,7 @@ private:
|
||||
CallStatus m_callStatus = CallStatus::Idle;
|
||||
std::shared_ptr<QUdpSocket> m_udpSocket;
|
||||
std::shared_ptr<RecordQuery> m_recordQueryWidget;
|
||||
std::shared_ptr<LoggerWidget> m_loggerWidget;
|
||||
QChart* m_signalStrengthChart;
|
||||
QPolarChart* m_azimuthChart;
|
||||
QBarCategoryAxis* m_signalStrengthChartXAxis;
|
||||
|
||||
4
res.qrc
4
res.qrc
@@ -7,5 +7,9 @@
|
||||
<file>res/sim_green.png</file>
|
||||
<file>res/call_accepted.png</file>
|
||||
<file>res/call_gray.png</file>
|
||||
<file>res/first_page.png</file>
|
||||
<file>res/last_page.png</file>
|
||||
<file>res/next_page.png</file>
|
||||
<file>res/previous_page.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
BIN
res/first_page.png
Normal file
BIN
res/first_page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 541 B |
BIN
res/ic_call.png
BIN
res/ic_call.png
Binary file not shown.
|
Before Width: | Height: | Size: 649 B |
BIN
res/last_page.png
Normal file
BIN
res/last_page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 554 B |
BIN
res/next_page.png
Normal file
BIN
res/next_page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 767 B |
BIN
res/previous_page.png
Normal file
BIN
res/previous_page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 723 B |
Reference in New Issue
Block a user