CasualtySightPlus

pull/14/head
eazzy 5 months ago
parent 70ef30f8e4
commit 4b60f1b54b

@ -18,11 +18,11 @@ SOURCES += \
# UI # UI
UIs/sourcefiles/InjuryAnalysisUI.cpp \ UIs/sourcefiles/InjuryAnalysisUI.cpp \
UIs/sourcefiles/guidingui.cpp \ UIs/sourcefiles/guidingui.cpp \
UIs/sourcefiles/injurydisiplayui.cpp \
UIs/sourcefiles/robotui.cpp \ UIs/sourcefiles/robotui.cpp \
UIs/sourcefiles/robotlistui.cpp \ UIs/sourcefiles/robotlistui.cpp \
UIs/sourcefiles/uavui.cpp \ UIs/sourcefiles/uavui.cpp \
UIs/sourcefiles/uavlist.cpp \ UIs/sourcefiles/uavlist.cpp \
UIs/sourcefiles/injurydisplayui.cpp \
# database # database
database/sourcefiles/DogDatabase.cpp \ database/sourcefiles/DogDatabase.cpp \
database/sourcefiles/InjuryDatabase.cpp \ database/sourcefiles/InjuryDatabase.cpp \
@ -34,11 +34,11 @@ HEADERS += \
# UI # UI
UIs/headfiles/InjuryAnalysisUI.h \ UIs/headfiles/InjuryAnalysisUI.h \
UIs/headfiles/guidingui.h \ UIs/headfiles/guidingui.h \
UIs/headfiles/injurydisiplayui.h \
UIs/headfiles/robotui.h \ UIs/headfiles/robotui.h \
UIs/headfiles/robotlistui.h \ UIs/headfiles/robotlistui.h \
UIs/headfiles/uavui.h \ UIs/headfiles/uavui.h \
UIs/headfiles/uavlist.h \ UIs/headfiles/uavlist.h \
UIs/headfiles/injurydisplayui.h \
# databaes # databaes
database/headfiles/DogDatabase.h \ database/headfiles/DogDatabase.h \
database/headfiles/InjuryDatabase.h \ database/headfiles/InjuryDatabase.h \
@ -47,11 +47,11 @@ HEADERS += \
FORMS += \ FORMS += \
UIs/ui/InjuryAnalysisUI.ui \ UIs/ui/InjuryAnalysisUI.ui \
UIs/ui/guidingui.ui \ UIs/ui/guidingui.ui \
UIs/ui/injurydisiplayui.ui \
UIs/ui/robotui.ui \ UIs/ui/robotui.ui \
UIs/ui/robotlistui.ui \ UIs/ui/robotlistui.ui \
UIs/ui/uavui.ui \ UIs/ui/uavui.ui \
UIs/ui/uavlist.ui UIs/ui/uavlist.ui \
UIs/ui/injurydisplayui.ui
# Default rules for deployment. # Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin qnx: target.path = /tmp/$${TARGET}/bin

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 13.0.0, 2024-06-16T21:39:48. --> <!-- Written by QtCreator 13.0.0, 2024-06-18T15:29:58. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
@ -97,8 +97,8 @@
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> <value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="int" key="EnableQmlDebugging">0</value> <value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\QT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Debug</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Debug</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
@ -136,8 +136,8 @@
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap> </valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\QT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
@ -177,8 +177,8 @@
</valuemap> </valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="int" key="EnableQmlDebugging">0</value> <value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\QT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Profile</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\PROJECT\CasualtySightPlus\build\Desktop_Qt_6_7_0_MSVC2019_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Profile</value> <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/PROJECT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
@ -241,14 +241,14 @@
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value> <value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
<value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph &quot;dwarf,4096&quot; -F 250</value> <value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph &quot;dwarf,4096&quot; -F 250</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">CasualtySightPlus2</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/PROJECT/CasualtySightPlus/CasualtySightPlus.pro</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/PROJECT/CasualtySightPlus/CasualtySightPlus.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/PROJECT/CasualtySightPlus/CasualtySightPlus.pro</value> <value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/PROJECT/CasualtySightPlus/CasualtySightPlus.pro</value>
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">true</value> <value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value> <value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value> <value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/PROJECT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value>
</valuemap> </valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value> <value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap> </valuemap>

@ -22,6 +22,10 @@
#include "uavlist.h" #include "uavlist.h"
#include "ui_uavlist.h" #include "ui_uavlist.h"
/* 显示伤情界面的头文件 */
#include "injurydisplayui.h"
#include "ui_injurydisplayui.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { namespace Ui {
class GuidingUI; class GuidingUI;
@ -49,11 +53,14 @@ public:
void on_UAVListBtn_clicked(); void on_UAVListBtn_clicked();
// 功能界面显示无人机列表按钮控制 // 功能界面显示无人机列表按钮控制
void UAVInfosControl(QPushButton*); void UAVInfosControl(QPushButton*);
// 伤情显示界面按钮控制
private slots: void InjuryInfoControl(QPushButton*);
// 伤情显示界面按钮槽函数
void on_showInjuryInfo_clicked(); void on_showInjuryInfo_clicked();
private slots:
// 伤情显示按钮槽函数
// void on_showInjuryInfo_clicked();
private: private:
Ui::GuidingUI *ui; Ui::GuidingUI *ui;

@ -0,0 +1,22 @@
#ifndef INJURYDISPLAYUI_H
#define INJURYDISPLAYUI_H
#include <QMainWindow>
namespace Ui {
class InjuryDisplayUI;
}
class InjuryDisplayUI : public QMainWindow
{
Q_OBJECT
public:
explicit InjuryDisplayUI(QWidget *parent = nullptr);
~InjuryDisplayUI();
private:
Ui::InjuryDisplayUI *ui;
};
#endif // INJURYDISPLAYUI_H

@ -25,6 +25,8 @@ GuidingUI::GuidingUI(QWidget *parent)
RobotsInfosControl(ui->robotListBtn); RobotsInfosControl(ui->robotListBtn);
/* 控制无人机列表*/ /* 控制无人机列表*/
UAVInfosControl(ui->UAVListBtn); UAVInfosControl(ui->UAVListBtn);
/* 控制伤情显示 */
InjuryInfoControl(ui->casualtyInfoBtn);
} }
GuidingUI::~GuidingUI() GuidingUI::~GuidingUI()
@ -84,12 +86,10 @@ void GuidingUI::MapDisplayControl(QPushButton *btnCtr,QWidget*Tar,QGridLayout*la
double latitude = result[i].lat; double latitude = result[i].lat;
double longitude = result[i].lon; double longitude = result[i].lon;
int level = result[i].rank; int level = result[i].rank;
int delay = i * 10000; // 每个点之间延迟2秒
// 调用JavaScript函数传递参数 // 调用JavaScript函数传递参数
QTimer::singleShot(delay, [view, latitude, longitude, level]() { view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level), [](const QVariant &result) {
view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level)); // 这里可以处理JavaScript函数执行后的结果
}); });
//view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level));
} }
}); });
@ -153,7 +153,7 @@ void on_specifiedrobottab_clicked()
/** /**
* @brief * @brief
* @date 202466 * @date 202466
* @author myz * @author yyz
* @param null * @param null
* @details , * @details ,
*/ */
@ -171,14 +171,14 @@ void GuidingUI::RobotsInfosControl(QPushButton* btnCtr)
void GuidingUI::on_showInjuryInfo_clicked() void GuidingUI::on_showInjuryInfo_clicked()
{ {
InjuryAnalysisUI* InjuryAnalysisDialog = new InjuryAnalysisUI; InjuryDisplayUI *injuryDisplay = new InjuryDisplayUI(this);
InjuryAnalysisDialog->show(); injuryDisplay->show();
} }
/** /**
* @brief * @brief
* @date 2024610 * @date 2024610
* @author myz * @author yyz
*/ */
void GuidingUI::on_UAVListBtn_clicked() void GuidingUI::on_UAVListBtn_clicked()
{ {
@ -189,10 +189,21 @@ void GuidingUI::on_UAVListBtn_clicked()
/** /**
* @brief * @brief
* @date 2024610 * @date 2024610
* @author myz * @author yyz
* @param ctrBtn: * @param ctrBtn:
*/ */
void GuidingUI::UAVInfosControl(QPushButton* btnCtr) void GuidingUI::UAVInfosControl(QPushButton* btnCtr)
{ {
connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_UAVListBtn_clicked); connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_UAVListBtn_clicked);
} }
/**
* @brief
* @date 2024618
* @author yyz
* @param ctrBtn:
*/
void GuidingUI::InjuryInfoControl(QPushButton* btnCtr)
{
connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_showInjuryInfo_clicked);
}

@ -0,0 +1,14 @@
#include "../headfiles/injurydisplayui.h"
#include "ui_injurydisplayui.h"
InjuryDisplayUI::InjuryDisplayUI(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::InjuryDisplayUI)
{
ui->setupUi(this);
}
InjuryDisplayUI::~InjuryDisplayUI()
{
delete ui;
}

@ -1,13 +1,13 @@
#include "../headfiles/robotlistui.h" #include "../headfiles/robotlistui.h"
#include "ui_robotlistui.h" #include "ui_robotlistui.h"
#include <QMessageBox>
constexpr int MAX_DISPLAY_NUM = 10; constexpr int MAX_DISPLAY_NUM = 10;
constexpr int COLUMN_NUM = 7; constexpr int COLUMN_NUM = 7;
/** /**
* @brief * @brief
* @date 2024610 * @date 2024610
* @author myz * @author yyz
*/ */
class StateDelegate : public QStyledItemDelegate class StateDelegate : public QStyledItemDelegate
{ {
@ -151,20 +151,14 @@ QPushButton* robotlistUI::createButton(const QString &text, const QString &robot
button->setProperty("robotId", robotId); button->setProperty("robotId", robotId);
return button; return button;
} }
void robotlistUI::handleButtonClicked(const QString &robotId) void robotlistUI::handleButtonClicked(const QString &robotId)
{ {
// 这里实现打开对应机器人操作界面的逻辑
qDebug() << "Open robot with ID:" << robotId; qDebug() << "Open robot with ID:" << robotId;
// 创建并显示加载中的提示 // 创建新的机器狗界面对象
QMessageBox *msgBox = new QMessageBox(this); RobotUI *rbtui = new RobotUI(this);
msgBox->setText("正在安排机器狗01前出任务请稍候..."); rbtui->show();
msgBox->setStandardButtons(QMessageBox::Close); // 添加一个关闭按钮
msgBox->setWindowTitle("任务安排中");
msgBox->open();
// 这里可以添加安排任务的代码
// ...
// 连接按钮的信号槽,当用户点击关闭按钮时,关闭对话框
connect(msgBox, &QMessageBox::buttonClicked, msgBox, &QMessageBox::close);
} }

@ -2,19 +2,18 @@
/** /**
* @brief * @brief
* @date 2024610 * @date 2024610
* @author myz * @author yyz
* @attention ui uavlist.ui robotlistUI * @attention ui uavlist.ui robotlistUI
*/ */
#include "../headfiles/uavlist.h" #include "../headfiles/uavlist.h"
#include "ui_uavlist.h" #include "ui_uavlist.h"
#include <QMessageBox>
constexpr int MAX_DISPLAY_NUM = 10; constexpr int MAX_DISPLAY_NUM = 10;
constexpr int COLUMN_NUM = 7; constexpr int COLUMN_NUM = 7;
/** /**
* @brief * @brief
* @date 2024610 * @date 2024610
* @author myz * @author yyz
*/ */
class StateDelegate : public QStyledItemDelegate class StateDelegate : public QStyledItemDelegate
{ {
@ -160,31 +159,13 @@ QPushButton* UAVList::createButton(const QString &text, const QString &robotId)
return button; return button;
} }
// void UAVList::handleButtonClicked(const QString &robotId)
// {
// // 这里实现打开对应无人机操作界面的逻辑
// qDebug() << "Open UAV with ID:" << robotId;
// // 创建新的无人机界面对象
// UAVUI *uavUI = new UAVUI(this);
// uavUI->show();
// }
void UAVList::handleButtonClicked(const QString &robotId) void UAVList::handleButtonClicked(const QString &robotId)
{ {
// 这里实现打开对应机器人操作界面的逻辑
qDebug() << "Open robot with ID:" << robotId; qDebug() << "Open robot with ID:" << robotId;
// 创建新的机器狗界面对象
UAVUI *uavUI = new UAVUI(this);
uavUI->show();
// 创建并显示加载中的提示
QMessageBox *msgBox = new QMessageBox(this);
msgBox->setText("正在安排无人机01前出任务...");
msgBox->setStandardButtons(QMessageBox::Close); // 添加一个关闭按钮
msgBox->setWindowTitle("任务安排中");
msgBox->open();
// 这里可以添加安排任务的代码
// ...
// 连接按钮的信号槽,当用户点击关闭按钮时,关闭对话框
connect(msgBox, &QMessageBox::buttonClicked, msgBox, &QMessageBox::close);
} }

@ -134,8 +134,23 @@ QPushButton:hover QLabel {
}</string> }</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<layout class="QHBoxLayout" name="robotListBtnLayout"> <layout class="QHBoxLayout" name="robotListBtnLayout">
<property name="spacing">
<number>6</number>
</property>
<item> <item>
<widget class="QLabel" name="robotListBtnIcon"> <widget class="QLabel" name="robotListBtnIcon">
<property name="sizePolicy"> <property name="sizePolicy">
@ -198,55 +213,7 @@ QPushButton:hover QLabel {
</layout> </layout>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<layout class="QHBoxLayout" name="robotCoordsBtnLayout"> <layout class="QHBoxLayout" name="robotCoordsBtnLayout"/>
<item>
<widget class="QLabel" name="robotCoordsBtnIcon">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/location.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="robotCoordsBtn">
<property name="minimumSize">
<size>
<width>190</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>机器人位置显示</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<layout class="QHBoxLayout" name="addRobotBtnLayout"> <layout class="QHBoxLayout" name="addRobotBtnLayout">
@ -526,165 +493,13 @@ border: none;
</layout> </layout>
</item> </item>
<item row="7" column="0"> <item row="7" column="0">
<layout class="QHBoxLayout" name="UAVCoordsBtnLayout"> <layout class="QHBoxLayout" name="UAVCoordsBtnLayout"/>
<item>
<widget class="QLabel" name="UAVCoordsBtnIcon">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/location.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="UAVCoordsBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>190</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>无人机位置显示</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item row="8" column="0"> <item row="8" column="0">
<layout class="QHBoxLayout" name="casualtyListBtnLayout"> <layout class="QHBoxLayout" name="casualtyListBtnLayout"/>
<item>
<widget class="QLabel" name="casualtyListBtnIcon">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>60</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/soldier.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="casualtyListBtn">
<property name="minimumSize">
<size>
<width>190</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">#QPushButton{
background-color: rgba(255, 255, 255, 0);
color: rgb(255, 255, 255);
border: none;
}</string>
</property>
<property name="text">
<string>伤员列表</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item row="9" column="0"> <item row="9" column="0">
<layout class="QHBoxLayout" name="ctrPanelBtnLayout"> <layout class="QHBoxLayout" name="ctrPanelBtnLayout"/>
<item>
<widget class="QLabel" name="ctrPanelBtnIcon">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">
border-image: url(:/image/res/image/infomation.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="ctrPanelBtn">
<property name="minimumSize">
<size>
<width>190</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>展示信息</string>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

@ -0,0 +1,523 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>InjuryDisplayUI</class>
<widget class="QMainWindow" name="InjuryDisplayUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1017</width>
<height>658</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>500</height>
</size>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="styleSheet">
<string notr="true">#centralwidget{
background-color: rgb(15,18,34);
min-width: 1017px;
min-height: 717px;
max-width: 1500px;
max-height: 900px;
}
btnWidgetList{
background-color: rgb(15, 18, 34);
min-width: 260px;
min-height: 677px;
max-width: 260px;
max-height: 859px;
}
#robotTagUIWidget{
background-color:rgb(15, 18, 34);
min-width: 260px;
min-height: 41px;
max-width: 260px;
max-height: 41px;
}
</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QWidget" name="btnWidgetList" native="true">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>260</width>
<height>677</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>260</width>
<height>677</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: rgba(15, 28, 34, 0);
color: rgb(248, 248, 251);
border: none;
border-radius: 5px; /* 设置按钮圆角 */
font-size: 17px; /* 设置文字大小 */
text-align: left; /* 设置字体向右对齐 */
min-width: 104px;
min-height:23px;
max-width:104px;
max-height:23px;
}
QPushButton:hover {
background-color: #0364FF; /* 设置鼠标悬停时按钮背景色 */
}
QPushButton:pressed {
background-color: #4484EB; /* 设置按钮被按下时背景色 */
}
QFrame {
border: none;
min-width: 23px;
min-height:23px;
max-width:23px;
max-height:23px;
};</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="3" column="0" colspan="7">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>239</width>
<height>353</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1" rowspan="2">
<layout class="QVBoxLayout" name="iconListLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="injuryResult">
<property name="styleSheet">
<string notr="true">image: url(:/injuryDisplay/res/icon/icons_injuryDisplayUI/1.svg);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>36</number>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="visualization">
<property name="styleSheet">
<string notr="true">image: url(:/injuryDisplay/res/icon/icons_injuryDisplayUI/2.svg);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>51</number>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="AIrespond">
<property name="styleSheet">
<string notr="true">image: url(:/injuryDisplay/res/icon/icons_injuryDisplayUI/3.svg);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>36</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="6">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>59</width>
<height>182</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" colspan="7">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>239</width>
<height>28</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" rowspan="2">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>28</width>
<height>257</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="5">
<layout class="QVBoxLayout" name="btnListLayout" stretch="0,0,0">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="injuryResultBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>伤情结果统计</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="visualizationBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>数据可视化</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="AIrespondBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>Ai智能分析</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QWidget" name="robotTagUIWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>260</width>
<height>41</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>260</width>
<height>41</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="logoWidget" native="true">
<property name="minimumSize">
<size>
<width>40</width>
<height>41</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>41</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/logo_backgroundless.png);</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="tagWidget">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true">#tagWidget{
font-weight: bold;
}</string>
</property>
<property name="text">
<string>Injury Display UI</string>
</property>
<property name="indent">
<number>32</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="2">
<widget class="QStackedWidget" name="stackedWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">#stackedWidget{
min-width: 757px;
min-height: 718px;
max-width: 1240px;
max-height: 900px;
}</string>
</property>
<widget class="QWidget" name="injuryResultPage">
<property name="minimumSize">
<size>
<width>757</width>
<height>718</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#statusBarWidget{
background-color:rgb(255,255,255);
min-width: 757px;
min-height: 41px;
max-width: 1240px;
max-height: 41px;
}
#mainbodyWidget{
background-color:rgb(245,246,250);
min-width: 757px;
min-height: 677px;
max-width: 1240px;
max-height: 859px;
}
#injuryResultPage{
min-width: 757px;
min-height: 718px;
max-width: 1240px;
max-height: 900px;
}</string>
</property>
<widget class="QWidget" name="mainbodyWidget" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>40</y>
<width>757</width>
<height>677</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>757</width>
<height>677</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>1240</width>
<height>859</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QGridLayout" name="gridLayout_5"/>
</widget>
<widget class="QWidget" name="statusBarWidget" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>757</width>
<height>41</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>757</width>
<height>41</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>1240</width>
<height>41</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: rgba(255, 255, 255, 0);
border: none;
}</string>
</property>
<widget class="QWidget" name="searchWidget" native="true">
<property name="geometry">
<rect>
<x>430</x>
<y>10</y>
<width>120</width>
<height>80</height>
</rect>
</property>
</widget>
</widget>
</widget>
<widget class="QWidget" name="page_2"/>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,20 @@
QMAKE_CXX.QT_COMPILER_STDCXX = 199711L
QMAKE_CXX.QMAKE_MSC_VER = 1931
QMAKE_CXX.QMAKE_MSC_FULL_VER = 193131106
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_MSC_VER \
QMAKE_MSC_FULL_VER
QMAKE_CXX.INCDIRS = \
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\ATLMFC\\include" \
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\include" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt" \
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\shared" \
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\um" \
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\winrt" \
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.19041.0\\\\cppwinrt"
QMAKE_CXX.LIBDIRS = \
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\ATLMFC\\lib\\x64" \
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\lib\\x64" \
"C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64" \
"C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.19041.0\\\\um\\x64"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save