CasualtySightPlus Client Commit

pull/14/head
eazzy 6 months ago
parent 72424e0792
commit 051e42d2cf

@ -0,0 +1,73 @@
QT += core gui
QT += core gui quickwidgets positioning location
QT += multimedia
QT += multimediawidgets
QT += webenginewidgets webchannel
QT += sql
QT += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QMAKE_PROJECT_DEPTH = 0
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
# UI
UIs/sourcefiles/InjuryAnalysisUI.cpp \
UIs/sourcefiles/guidingui.cpp \
UIs/sourcefiles/injurydisiplayui.cpp \
UIs/sourcefiles/robotui.cpp \
UIs/sourcefiles/robotlistui.cpp \
UIs/sourcefiles/uavui.cpp \
UIs/sourcefiles/uavlist.cpp \
# database
database/sourcefiles/DogDatabase.cpp \
database/sourcefiles/InjuryDatabase.cpp \
database/sourcefiles/UAVDatabase.cpp \
# main
main.cpp \
HEADERS += \
# UI
UIs/headfiles/InjuryAnalysisUI.h \
UIs/headfiles/guidingui.h \
UIs/headfiles/injurydisiplayui.h \
UIs/headfiles/robotui.h \
UIs/headfiles/robotlistui.h \
UIs/headfiles/uavui.h \
UIs/headfiles/uavlist.h \
# databaes
database/headfiles/DogDatabase.h \
database/headfiles/InjuryDatabase.h \
database/headfiles/UAVDatabase.h \
FORMS += \
UIs/ui/InjuryAnalysisUI.ui \
UIs/ui/guidingui.ui \
UIs/ui/injurydisiplayui.ui \
UIs/ui/robotui.ui \
UIs/ui/robotlistui.ui \
UIs/ui/uavui.ui \
UIs/ui/uavlist.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
res.qrc
DISTFILES += \
res/icon/icons_robotUI/SLAMBtn (2).svg \
res/icon/icons_robotUI/autoModeBtn (2).svg \
res/icon/icons_robotUI/manualModeBtn.svg \
res/icon/icons_robotUI/micBtn (2).svg \
res/icon/icons_robotUI/pauseBtn.svg \
res/icon/icons_robotUI/robotCoordsBtn (2).svg \
res/icon/icons_robotUI/startBtn.svg \
res/icon/icons_robotUI/stopBtn.svg \
res/icon/icons_robotUI/vidBtn (2).svg

@ -0,0 +1,268 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 13.0.0, 2024-06-16T21:39:48. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{c17bc554-7aa8-48e6-9607-c4ecd694950b}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="qlonglong">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">2</value>
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
<value type="bool" key="AutoTest.Framework.Boost">true</value>
<value type="bool" key="AutoTest.Framework.CTest">false</value>
<value type="bool" key="AutoTest.Framework.Catch">true</value>
<value type="bool" key="AutoTest.Framework.GTest">true</value>
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
</valuemap>
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
<value type="int" key="AutoTest.RunAfterBuild">0</value>
<value type="bool" key="AutoTest.UseGlobal">true</value>
<valuemap type="QVariantMap" key="ClangTools">
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
<value type="int" key="ClangTools.ParallelJobs">6</value>
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="DeviceType">Desktop</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.7.0 MSVC2019 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.7.0 MSVC2019 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.670.win64_msvc2019_64_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<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.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
</valuemap>
<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.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<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.shadowDir">D:/PROJECT/QT/CasualtySightPlus/build/Desktop_Qt_6_7_0_MSVC2019_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="int" key="QtQuickCompiler">0</value>
<value type="int" key="SeparateDebugInfo">0</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<valuelist type="QVariantList" key="CustomOutputParsers"/>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<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="ProjectExplorer.ProjectConfiguration.DisplayName">CasualtySightPlus2</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="bool" key="ProjectExplorer.RunConfiguration.Customized">true</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">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>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="qlonglong">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">22</value>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

@ -0,0 +1,36 @@
#ifndef INJURYANALYSISUI_H
#define INJURYANALYSISUI_H
#include "../../database/headfiles/InjuryDatabase.h"
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
class InjuryAnalysisUI; //声明ui命名空间下的类
}
QT_END_NAMESPACE
class InjuryAnalysisUI : public QWidget
{
// Q_OBJECT宏用于提供Qt信号槽和元对象系统服务
// 它必须限定为私有访问权限
Q_OBJECT
public:
InjuryAnalysisUI(QWidget *parent = nullptr);
~InjuryAnalysisUI();
QList<Injury> result;
private slots:
void on_searchButton_clicked();
private:
// 创建Ui::InjuryAnalysisUI类型的指针用于操作ui界面及其控件
Ui::InjuryAnalysisUI *ui;
};
#endif // INJURYANALYSISUI_H

@ -0,0 +1,62 @@
#ifndef GUIDINGUI_H
#define GUIDINGUI_H
#include <QMainWindow>
#include <QPushButton>
#include <QLabel>
#include <QDialog>
#include <QLineEdit>
#include <string>
#include <QTableWidget>
#include <cstring>
#include <QQuickItem>
#include <QFormLayout>
#include <QStackedWidget>
/* 显示机器人列表界面的头文件 */
#include "robotlistui.h"
#include "ui_robotlistui.h"
/* 显示无人机列表界面的头文件 */
#include "uavlist.h"
#include "ui_uavlist.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class GuidingUI;
}
QT_END_NAMESPACE
class GuidingUI : public QMainWindow
{
Q_OBJECT
public:
GuidingUI(QWidget *parent = nullptr);
~GuidingUI();
// 功能界面地图显示控制
void MapDisplayControl(QPushButton*,QWidget*,QGridLayout*);
// 添加机器人按钮槽函数
void on_addrobot_clicked();
// 功能界面添加机器人按钮控制
void AddRobotControl(QPushButton*);
// 机器人列表显示按钮槽函数
void on_robottab_clicked();
// 功能界面显示机器人列表按钮控制
void RobotsInfosControl(QPushButton*);
// 无人机列表显示按钮槽函数
void on_UAVListBtn_clicked();
// 功能界面显示无人机列表按钮控制
void UAVInfosControl(QPushButton*);
private slots:
void on_showInjuryInfo_clicked();
private:
Ui::GuidingUI *ui;
};
#endif // GUIDINGUI_H

@ -0,0 +1,24 @@
#ifndef INJURYDISIPLAYUI_H
#define INJURYDISIPLAYUI_H
#include <QDialog>
#include <QWebEngineView>
#include <QtWebChannel>
namespace Ui {
class InjuryDisiplayUI;
}
class InjuryDisiplayUI : public QDialog
{
Q_OBJECT
public:
explicit InjuryDisiplayUI(QWidget *parent = nullptr);
~InjuryDisiplayUI();
private:
Ui::InjuryDisiplayUI *ui;
};
#endif // INJURYDISIPLAYUI_H

@ -0,0 +1,39 @@
#ifndef ROBOTLISTUI_H
#define ROBOTLISTUI_H
#include <QMainWindow>
#include <QPushButton>
#include <QStandardItemModel>
#include <QTableView>
#include "../../database/headfiles/DogDatabase.h"
/* 这里是机器狗界面的头文件 */
#include "robotui.h"
/* 设置自定义委托类的头文件 */
#include <QStyledItemDelegate>
#include <QPainter>
namespace Ui {
class robotlistUI;
}
class robotlistUI : public QMainWindow
{
Q_OBJECT
public:
explicit robotlistUI(QWidget *parent = nullptr);
~robotlistUI();
DogDatabase *db; // 数据库操作类的实例
QStandardItemModel *model;
void setupModel();
void setupTableView();
QPushButton* createButton(const QString &text, const QString &robotId);
private:
Ui::robotlistUI *ui;
private slots:
void handleButtonClicked(const QString &robotId);
};
#endif // ROBOTLISTUI_H

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

@ -0,0 +1,38 @@
#ifndef UAVLIST_H
#define UAVLIST_H
#include <QMainWindow>
#include <QPushButton>
#include <QStandardItemModel>
#include <QTableView>
#include "../../database/headfiles/UAVDatabase.h"
#include <QStyledItemDelegate>
// 无人机界面的头文件
#include "uavui.h"
#include <QPainter>
namespace Ui {
class UAVList;
}
class UAVList : public QMainWindow
{
Q_OBJECT
public:
explicit UAVList(QWidget *parent = nullptr);
~UAVList();
UAVDatabase *db; // 数据库操作类的实例
QStandardItemModel *model;
void setupModel();
void setupTableView();
QPushButton* createButton(const QString &text, const QString &robotId);
private:
Ui::UAVList *ui;
private slots:
void handleButtonClicked(const QString &UAVID);
};
#endif // UAVLIST_H

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

@ -0,0 +1,116 @@
#include "../headfiles/InjuryAnalysisUI.h"
#include "../../database/headfiles/InjuryDatabase.h"
#include "ui_InjuryAnalysisUI.h"
#include <QMessageBox>
#include <QWidget>
InjuryAnalysisUI::InjuryAnalysisUI(QWidget* parent):
QWidget(parent),
ui(new Ui::InjuryAnalysisUI)
{
ui->setupUi(this);
setWindowTitle("伤情态势分析界面");
//resize(600,400);
InjuryDatabase injurydatabase;
QList<Injury> resultNow;
injurydatabase.select_all(resultNow);//获取所有伤员数据
result = resultNow;
//添加一个scrollArea来将信息显示出来
ui->scrollArea->setWidgetResizable(false);//可以拖动滚动条
//竖滚动条和横滚动条都可以一直显示
ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
//设置主界面的实际界面
ui->scrollArea->setWidget(ui->scrollAreaWidgetContents);
ui->scrollAreaWidgetContents->setGeometry(0, 0, 381, result.length()*20);//实际界面参数
QLabel *label0=new QLabel(ui->scrollAreaWidgetContents);
label0->setText("伤员编号");
label0->move(0,0);
QLabel *label1=new QLabel(ui->scrollAreaWidgetContents);
label1->setText("伤情等级");
label1->move(100,0);
QLabel *label2=new QLabel(ui->scrollAreaWidgetContents);
label2->setText("位置精度");
label2->move(200,0);
QLabel *label3=new QLabel(ui->scrollAreaWidgetContents);
label3->setText("位置维度");
label3->move(300,0);
for(int i = 0; i<result.length(); i++)
{
QLabel *labelID=new QLabel(ui->scrollAreaWidgetContents);
labelID->setText(result[i].id);
labelID->move(0,15*(i+2));
QLabel *labelRank=new QLabel(ui->scrollAreaWidgetContents);
labelRank->setText(QString::number(result[i].rank));
labelRank->move(100,15*(i+2));
QLabel *labelLon=new QLabel(ui->scrollAreaWidgetContents);
labelLon->setText(QString::number(result[i].lon));
labelLon->move(200,15*(i+2));
QLabel *labelLat=new QLabel(ui->scrollAreaWidgetContents);
labelLat->setText(QString::number(result[i].lat));
labelLat->move(300,15*(i+2));
}
//对信息进行分类统计分析
int sum = result.length();
ui->sumLabel->setText(QString::number(sum));
int rank0Sum = 0;
int rank1Sum = 0;
int rank2Sum = 0;
for(int i = 0; i<sum; i++)
{
if(result[i].rank==0)
rank0Sum++;
else if(result[i].rank==1)
rank1Sum++;
else if(result[i].rank==2)
rank2Sum++;
}
ui->rank0Label->setText(QString::number(rank0Sum));
ui->rank1Label->setText(QString::number(rank1Sum));
ui->rank2Label->setText(QString::number(rank2Sum));
}
InjuryAnalysisUI::~InjuryAnalysisUI()
{
delete ui;
}
void InjuryAnalysisUI::on_searchButton_clicked()
{
QString userInput = ui->searchInput->text();
int searchIndex = -1;
if(!userInput.isEmpty())
{
for(int i = 0; i<result.length(); i++)
{
if(QString::compare(userInput,result[i].id)==0)
{
searchIndex = i;
break;
}
}
}
QString rank = QString::number(result[searchIndex].rank);
QString lon = QString::number(result[searchIndex].lon);
QString lat = QString::number(result[searchIndex].lat);
if(searchIndex==-1)
{
QMessageBox::warning(this, tr("查找"), tr("找不到id为 %1 的伤员!").arg(userInput));
}
else
{
QMessageBox::warning(this, tr("查找"), tr("伤员id%1 伤情等级:%2 位置经纬度:%3 %4 ").arg(userInput,rank,lon,lat));
}
}

@ -0,0 +1,198 @@
#include "../headfiles/guidingui.h"
#include "ui_guidingui.h"
#include "../headfiles/InjuryAnalysisUI.h"
#include "../../database/headfiles/InjuryDatabase.h"
#include "../../database/headfiles/DogDatabase.h"
#include <QWebEngineView>
#include <QString>
#include <QVBoxLayout>
#include <QDir>
#include <QUrl>
#include <QWebEnginePage>
GuidingUI::GuidingUI(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::GuidingUI)
{
ui->setupUi(this);
/* 控制地图显示 */
MapDisplayControl(ui->mapbutton,ui->MapDisplayer,ui->gridLayout_3);
/* 控制添加机器人 */
AddRobotControl(ui->addRobotBtn);
/* 控制机器人列表 */
RobotsInfosControl(ui->robotListBtn);
/* 控制无人机列表*/
UAVInfosControl(ui->UAVListBtn);
}
GuidingUI::~GuidingUI()
{
delete ui;
}
void GuidingUI::MapDisplayControl(QPushButton *btnCtr,QWidget*Tar,QGridLayout*layout)
{
// 创建堆栈部件
QStackedWidget* stackedWidget = new QStackedWidget(this);
// 创建背景板部件
QWidget* backgroundWidget = new QWidget(this);
QPixmap backgroundPixmap(":/image/res/image/mapdisplayer.svg");
QLabel *backgroundLabel = new QLabel(backgroundWidget);
backgroundLabel->setPixmap(backgroundPixmap);
// 设置堆栈部件的组成
backgroundLabel->setMaximumSize(1500,900); // 背景板的最大尺寸
backgroundLabel->setMinimumSize(500,300); // 背景板的最小尺寸
// 设置QLabel的缩放模式为拉伸填充
backgroundLabel->setScaledContents(true);
// 设置地图部件的尺寸
Tar->setMaximumSize(1500,900); // 地图部件的最大尺寸
Tar->setMinimumSize(500,300); // 地图部件的最小尺寸
stackedWidget->addWidget(Tar);
stackedWidget->addWidget(backgroundLabel);
stackedWidget->setCurrentIndex(1);
connect(btnCtr,&QPushButton::clicked,this,[=](){
if(stackedWidget->currentIndex() == 0)
stackedWidget->setCurrentIndex(1);
else
stackedWidget->setCurrentIndex(0);
});
// 将堆栈部件添加到布局当中
layout->addWidget(stackedWidget);
QWebEngineView *view = new QWebEngineView(ui->MapDisplayer);
// 设置HTML文件的路径这里使用资源文件系统
QUrl url = QUrl("qrc:/html/res/html/map.html");
view->load(url);
// 连接loadFinished信号来确认页面是否加载成功并在加载成功后调用addMarker函数
connect(view, &QWebEngineView::loadFinished, [view]() {
// 假设我们要添加的坐标和等级
QList<Injury> result;
InjuryDatabase injuryinfo;
injuryinfo.select_all(result);
for(int i=0;i<result.length();i++)
{
double latitude = result[i].lat;
double longitude = result[i].lon;
int level = result[i].rank;
int delay = i * 10000; // 每个点之间延迟2秒
// 调用JavaScript函数传递参数
QTimer::singleShot(delay, [view, latitude, longitude, level]() {
view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level));
});
//view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level));
}
});
// 由于 MapDisplayer 已经在 UI 布局中,我们不需要创建新的布局
// 直接将 QWebEngineView 添加到 MapDisplayer 中
QVBoxLayout *layout1 = qobject_cast<QVBoxLayout*>(ui->MapDisplayer->layout());
if (layout1) {
layout1->addWidget(view);
} else {
// 如果 MapDisplayer 没有布局,则创建一个并添加 QWebEngineView
QVBoxLayout *newLayout = new QVBoxLayout(ui->MapDisplayer);
newLayout->addWidget(view);
ui->MapDisplayer->setLayout(newLayout);
}
}
void GuidingUI::on_addrobot_clicked()
{
QDialog *dialog = new QDialog(this);
QVBoxLayout *layout = new QVBoxLayout;
QHBoxLayout *nameLayout = new QHBoxLayout;
QLabel *nameLabel = new QLabel("名称(customized)", dialog);
QLineEdit *nameEdit = new QLineEdit(dialog);
nameLayout->addWidget(nameLabel);
nameLayout->addWidget(nameEdit);
layout->addLayout(nameLayout);
QHBoxLayout *ipLayout = new QHBoxLayout;
QLabel *ipLabel = new QLabel("IP地址", dialog);
QLineEdit *ipEdit = new QLineEdit(dialog);
ipLayout->addWidget(ipLabel);
ipLayout->addWidget(ipEdit);
layout->addLayout(ipLayout);
QPushButton *okButton = new QPushButton("确定", dialog);
layout->addWidget(okButton);
connect(okButton, &QPushButton::clicked, dialog, &QDialog::accept);
connect(dialog, &QDialog::accepted, [=]() {
QString name = nameEdit->text();
QString ip = ipEdit->text();
// listWidget->addItem(name + " - " + ip);
});
dialog->setLayout(layout);
dialog->exec();
}
void GuidingUI::AddRobotControl(QPushButton* btnCtr)
{
connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_addrobot_clicked);
}
void on_specifiedrobottab_clicked()
{
}
/**
* @brief
* @date 202466
* @author myz
* @param null
* @details ,
*/
void GuidingUI::on_robottab_clicked()
{
robotlistUI *rbtList = new robotlistUI(this);
rbtList->show();
}
void GuidingUI::RobotsInfosControl(QPushButton* btnCtr)
{
connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_robottab_clicked);
}
void GuidingUI::on_showInjuryInfo_clicked()
{
InjuryAnalysisUI* InjuryAnalysisDialog = new InjuryAnalysisUI;
InjuryAnalysisDialog->show();
}
/**
* @brief
* @date 2024610
* @author myz
*/
void GuidingUI::on_UAVListBtn_clicked()
{
UAVList* uavList = new UAVList(this);
uavList->show();
}
/**
* @brief
* @date 2024610
* @author myz
* @param ctrBtn:
*/
void GuidingUI::UAVInfosControl(QPushButton* btnCtr)
{
connect(btnCtr,&QPushButton::clicked,this,&GuidingUI::on_UAVListBtn_clicked);
}

@ -0,0 +1,55 @@
#include "../headfiles/injurydisiplayui.h"
#include "ui_injurydisiplayui.h"
#include "../../database/headfiles/InjuryDatabase.h"
#include "../headfiles/guidingui.h"
#include <QWebEngineView>
#include <QString>
#include <QVBoxLayout>
#include <QDir>
#include <QUrl>
#include <QWebEnginePage>
InjuryDisiplayUI::InjuryDisiplayUI(QWidget *parent)
: QDialog(parent)
, ui(new Ui::InjuryDisiplayUI)
{
ui->setupUi(this);
// 创建QWebEngineView实例
QWebEngineView *view = new QWebEngineView(this);
// 设置HTML文件的路径这里使用资源文件系统
QUrl url = QUrl("qrc:/html/res/html/map.html");
view->load(url);
// 连接loadFinished信号来确认页面是否加载成功并在加载成功后调用addMarker函数
connect(view, &QWebEngineView::loadFinished, [view]() {
// 假设我们要添加的坐标和等级
QList<Injury> result;
InjuryDatabase injuryinfo;
injuryinfo.select_all(result);
for(int i=0;i<result.length();i++)
{
double latitude = result[i].lat;
double longitude = result[i].lon;
int level = result[i].rank;
// 调用JavaScript函数传递参数
view->page()->runJavaScript(QString("addMarker(%1, %2, %3)").arg(latitude).arg(longitude).arg(level), [](const QVariant &result) {
// 这里可以处理JavaScript函数执行后的结果
});
}
});
// 创建布局并添加QWebEngineView
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(view);
// 设置布局
setLayout(layout);
}
InjuryDisiplayUI::~InjuryDisiplayUI()
{
delete ui;
}

@ -0,0 +1,170 @@
#include "../headfiles/robotlistui.h"
#include "ui_robotlistui.h"
#include <QMessageBox>
constexpr int MAX_DISPLAY_NUM = 10;
constexpr int COLUMN_NUM = 7;
/**
* @brief
* @date 2024610
* @author myz
*/
class StateDelegate : public QStyledItemDelegate
{
public:
StateDelegate(QObject *parent = nullptr) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
if (index.column() == 1) { // 假设状态列是第1列
if (index.data().toString() == "已连接") {
opt.palette.setColor(QPalette::Text, QColor("#00FF00")); // 设置文本颜色为绿色
} else {
opt.palette.setColor(QPalette::Text, QColor("#808080")); // 设置文本颜色为灰色
}
}
QStyledItemDelegate::paint(painter, opt, index);
}
};
robotlistUI::robotlistUI(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::robotlistUI)
, db(new DogDatabase)
{
ui->setupUi(this);
setupModel();
setupTableView();
}
robotlistUI::~robotlistUI()
{
delete ui;
delete db;
}
void robotlistUI::setupModel()
{
QList<Dog> dogs;
// 设置单元格的字体颜色
ui->robotList->setStyleSheet("QTableView { color: rgb(15,18,34); }");
if (db->select_all(dogs)) {
model = new QStandardItemModel(MAX_DISPLAY_NUM, COLUMN_NUM, this); // 7列包括6个数据列和1个按钮列
model->setHorizontalHeaderLabels({"ID", "State", "IP", "Port", "Lon", "Lat", ""}); // 设置表头
QStandardItem *item;
for (int i = 0; i < MAX_DISPLAY_NUM; ++i) {
// 设置id这一列的格式
const Dog &dog = dogs[i];
item = new QStandardItem(dog.id);
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 0, item);
// 设置state这一列的格式
item = new QStandardItem(dog.state == 1 ? QString("已连接") : QString("未连接"));
item->setForeground(dog.state == 1 ? Qt::green : Qt::gray); // 设置文本颜色
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 1, item);
// 设置ip这一列的数据格式
item = new QStandardItem(dog.ip);
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 2, item);
// 设置port这一列的数据格式
item = new QStandardItem(QString::number(dog.port));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 3, item);
// 设置lon这一列的数据格式
item = new QStandardItem(QString::number(dog.lon));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 4, item);
// 设置lat这一列的数据格式
item = new QStandardItem(QString::number(dog.lat));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 5, item);
}
} else {
// 处理错误情况
}
}
void robotlistUI::setupTableView()
{
ui->robotList->setModel(model);
// 设置表头字体和颜色
QFont headerFont = ui->robotList->font();
headerFont.setBold(true);
// 表头的字体和字体颜色设置
ui->robotList->horizontalHeader()->setFont(headerFont);
ui->robotList->horizontalHeader()->setStyleSheet("color: rgb(83,88,117); background-color: transparent; ");
// 行号的字体和自已颜色设置
ui->robotList->verticalHeader()->setFont(headerFont);
ui->robotList->verticalHeader()->setStyleSheet("color: rgb(83,88,117); background-color: transparent");
// 设置行高
ui->robotList->verticalHeader()->setDefaultSectionSize(25);
// // 设置交替行颜色
// ui->robotList->setAlternatingRowColors(true);
// ui->robotList->setStyleSheet("QTableView::alternate-row { background-color: #E8E8E8; }");
// 启用列宽调整和列排序
ui->robotList->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->robotList->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->robotList->setSortingEnabled(true);
// 为每一行添加按钮
for (int row = 0; row < model->rowCount(); ++row) {
QString robotId = model->data(model->index(row, 0)).toString();
QPushButton *button = createButton("启动", robotId);
ui->robotList->setIndexWidget(model->index(row, 6), button);
connect(button, &QPushButton::clicked, this, [=]{ handleButtonClicked(robotId); });
}
// 设置选择模式为单选
ui->robotList->setSelectionMode(QAbstractItemView::SingleSelection);
// 设置代理
ui->robotList->setItemDelegateForColumn(1, new StateDelegate(this)); // 为状态列设置代理
}
QPushButton* robotlistUI::createButton(const QString &text, const QString &robotId)
{
QPushButton *button = new QPushButton(text);
button->setProperty("robotId", robotId);
return button;
}
void robotlistUI::handleButtonClicked(const QString &robotId)
{
qDebug() << "Open robot with ID:" << robotId;
// 创建并显示加载中的提示
QMessageBox *msgBox = new QMessageBox(this);
msgBox->setText("正在安排机器狗01前出任务请稍候...");
msgBox->setStandardButtons(QMessageBox::Close); // 添加一个关闭按钮
msgBox->setWindowTitle("任务安排中");
msgBox->open();
// 这里可以添加安排任务的代码
// ...
// 连接按钮的信号槽,当用户点击关闭按钮时,关闭对话框
connect(msgBox, &QMessageBox::buttonClicked, msgBox, &QMessageBox::close);
}

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

@ -0,0 +1,190 @@
/**
* @brief
* @date 2024610
* @author myz
* @attention ui uavlist.ui robotlistUI
*/
#include "../headfiles/uavlist.h"
#include "ui_uavlist.h"
#include <QMessageBox>
constexpr int MAX_DISPLAY_NUM = 10;
constexpr int COLUMN_NUM = 7;
/**
* @brief
* @date 2024610
* @author myz
*/
class StateDelegate : public QStyledItemDelegate
{
public:
StateDelegate(QObject *parent = nullptr) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
if (index.column() == 1) { // 假设状态列是第1列
if (index.data().toString() == "已连接") {
opt.palette.setColor(QPalette::Text, QColor("#00FF00")); // 设置文本颜色为绿色
} else {
opt.palette.setColor(QPalette::Text, QColor("#808080")); // 设置文本颜色为灰色
}
}
QStyledItemDelegate::paint(painter, opt, index);
}
};
UAVList::UAVList(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::UAVList)
, db(new UAVDatabase)
{
ui->setupUi(this);
setupModel();
setupTableView();
}
UAVList::~UAVList()
{
delete ui;
delete db;
}
void UAVList::setupModel()
{
QList<UAV> UAVs;
// 设置单元格的字体颜色
ui->robotList->setStyleSheet("QTableView { color: rgb(15,18,34); }");
if (db->select_all(UAVs)) {
model = new QStandardItemModel(MAX_DISPLAY_NUM, COLUMN_NUM, this); // 7列包括6个数据列和1个按钮列
model->setHorizontalHeaderLabels({"ID", "State", "IP", "Port", "Lon", "Lat", ""}); // 设置表头
QStandardItem *item;
for (int i = 0; i < MAX_DISPLAY_NUM; ++i) {
// 设置id这一列的格式
const UAV &uav = UAVs[i];
item = new QStandardItem(uav.id);
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 0, item);
// 设置state这一列的格式
item = new QStandardItem(uav.state == 1 ? QString("已连接") : QString("未连接"));
item->setForeground(uav.state == 1 ? Qt::green : Qt::gray); // 设置文本颜色
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 1, item);
// 设置ip这一列的数据格式
item = new QStandardItem(uav.ip);
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 2, item);
// 设置port这一列的数据格式
item = new QStandardItem(QString::number(uav.port));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 3, item);
// 设置lon这一列的数据格式
item = new QStandardItem(QString::number(uav.lon));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 4, item);
// 设置lat这一列的数据格式
item = new QStandardItem(QString::number(uav.lat));
item->setFlags(item->flags() & ~Qt::ItemIsEditable); // 禁止编辑
item->setForeground(QColor(22,25,40));
item->setTextAlignment(Qt::AlignCenter); // 设置字体居中
model->setItem(i, 5, item);
}
} else {
// 处理错误情况
}
}
void UAVList::setupTableView()
{
ui->robotList->setModel(model);
// 设置表头字体和颜色
QFont headerFont = ui->robotList->font();
headerFont.setBold(true);
// 表头的字体和字体颜色设置
ui->robotList->horizontalHeader()->setFont(headerFont);
ui->robotList->horizontalHeader()->setStyleSheet("color: rgb(83,88,117); background-color: transparent; ");
// 行号的字体和自已颜色设置
ui->robotList->verticalHeader()->setFont(headerFont);
ui->robotList->verticalHeader()->setStyleSheet("color: rgb(83,88,117); background-color: transparent");
// 设置行高
ui->robotList->verticalHeader()->setDefaultSectionSize(25);
// // 设置交替行颜色
// ui->robotList->setAlternatingRowColors(true);
// ui->robotList->setStyleSheet("QTableView::alternate-row { background-color: #E8E8E8; }");
// 启用列宽调整和列排序
ui->robotList->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->robotList->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->robotList->setSortingEnabled(true);
// 为每一行添加按钮
for (int row = 0; row < model->rowCount(); ++row) {
QString robotId = model->data(model->index(row, 0)).toString();
QPushButton *button = createButton("Open", robotId);
ui->robotList->setIndexWidget(model->index(row, 6), button);
connect(button, &QPushButton::clicked, this, [=]{ handleButtonClicked(robotId); });
}
// 设置选择模式为单选
ui->robotList->setSelectionMode(QAbstractItemView::SingleSelection);
// 设置代理
ui->robotList->setItemDelegateForColumn(1, new StateDelegate(this)); // 为状态列设置代理
}
QPushButton* UAVList::createButton(const QString &text, const QString &robotId)
{
QPushButton *button = new QPushButton(text);
button->setProperty("robotId", robotId);
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)
{
qDebug() << "Open robot with ID:" << robotId;
// 创建并显示加载中的提示
QMessageBox *msgBox = new QMessageBox(this);
msgBox->setText("正在安排无人机01前出任务...");
msgBox->setStandardButtons(QMessageBox::Close); // 添加一个关闭按钮
msgBox->setWindowTitle("任务安排中");
msgBox->open();
// 这里可以添加安排任务的代码
// ...
// 连接按钮的信号槽,当用户点击关闭按钮时,关闭对话框
connect(msgBox, &QMessageBox::buttonClicked, msgBox, &QMessageBox::close);
}

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

@ -0,0 +1,236 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>InjuryAnalysisUI</class>
<widget class="QWidget" name="InjuryAnalysisUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>679</width>
<height>410</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(245, 245, 245);
font: 11pt &quot;Microsoft YaHei UI&quot;;</string>
</property>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>215</width>
<height>82</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_7">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>100</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/logo_backgroundless.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>伤情结果统计:</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="AnalysisDialog" native="true">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>631</width>
<height>291</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: rgba(15, 28, 34, 0);
color: rgb(0, 0, 0);
border: none;
padding: 10px 20px; /* 设置内边距 */
border-radius: 5px; /* 设置按钮圆角 */
font-size: 14px; /* 设置文字大小 */
text-align: right; /* 设置字体向右对齐 */
}
QPushButton:hover {
background-color: #0364FF; /* 设置鼠标悬停时按钮背景色 */
}
QPushButton:pressed {
background-color: #398439; /* 设置按钮被按下时背景色 */
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>365</width>
<height>229</height>
</rect>
</property>
</widget>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>伤员总数:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="sumLabel">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>伤情轻微的伤员数:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="rank0Label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>伤情一般的伤员数:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="rank1Label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>伤情严重的伤员数:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="rank2Label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>输入伤员编号查询伤员信息</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="searchInput">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="searchButton">
<property name="styleSheet">
<string notr="true">font: 14pt &quot;Consolas&quot;;</string>
</property>
<property name="text">
<string>查询</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,776 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GuidingUI</class>
<widget class="QMainWindow" name="GuidingUI">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1000</width>
<height>667</height>
</rect>
</property>
<property name="windowTitle">
<string>伤情态势感知分析系统</string>
</property>
<property name="toolTipDuration">
<number>0</number>
</property>
<property name="styleSheet">
<string notr="true">#centralwidget{
background-color: rgb(15, 18, 34);
}
#buttonListWidget{
background-color:rgba(15, 18, 34,80);
}
#menubar{
background-color: rgb(15, 18, 34);
}
#mapWidget{
background-color:rgb(245, 246, 250);
}
</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="enabled">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</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="horizontalSpacing">
<number>15</number>
</property>
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QWidget" name="buttonListWidget" 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>500</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>260</width>
<height>600</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: 14px; /* 设置文字大小 */
text-align: left; /* 设置字体向右对齐 */
padding-left: 10px; /*设置字体距离左边的距离*/
min-width: 180px;
min-height:50px;
max-width:190px;
max-height:60px;
}
QLabel{
min-width: 50px;
min-height:50px;
max-width:60px;
max-height:60px;
}
QPushButton:hover {
background-color: #0364FF; /* 设置鼠标悬停时按钮背景色 */
}
QPushButton:pressed {
background-color: #4484EB; /* 设置按钮被按下时背景色 */
}
QPushButton:hover QLabel {
background-color: #0364FF;
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QHBoxLayout" name="robotListBtnLayout">
<item>
<widget class="QLabel" name="robotListBtnIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<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/tab.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="robotListBtn">
<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 row="1" column="0">
<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 row="2" column="0">
<layout class="QHBoxLayout" name="addRobotBtnLayout">
<item>
<widget class="QLabel" name="addRobotBtnIcon">
<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/robotbtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addRobotBtn">
<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 row="3" column="0">
<layout class="QHBoxLayout" name="mapBtnLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="mapButtonIcon">
<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/mapbtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mapbutton">
<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 row="4" column="0">
<layout class="QHBoxLayout" name="addUAVBtnLayout">
<item>
<widget class="QLabel" name="addUAVBtnIcon">
<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/UAV.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="addUAVBtn">
<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 row="5" column="0">
<layout class="QHBoxLayout" name="UAVListBtnLayout">
<item>
<widget class="QLabel" name="UAVListBtnIcon">
<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="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/image/res/image/tab.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="UAVListBtn">
<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 row="6" column="0">
<layout class="QHBoxLayout" name="casualtyInfoBtnLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="casualtyInfoBtnIcon">
<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/health.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="casualtyInfoBtn">
<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 row="7" column="0">
<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 row="8" column="0">
<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 row="9" column="0">
<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>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="3">
<widget class="QWidget" name="mapWidget" native="true">
<layout class="QGridLayout" name="gridLayout_3">
<property name="leftMargin">
<number>20</number>
</property>
<property name="topMargin">
<number>30</number>
</property>
<property name="rightMargin">
<number>20</number>
</property>
<property name="bottomMargin">
<number>20</number>
</property>
<property name="spacing">
<number>50</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="MapDisplayer" native="true"/>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QWidget" name="guidingUILogo" native="true">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>230</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>200</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/icon/res/icon/guidinguislogen.svg);</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="action">
<property name="text">
<string>添加机器人</string>
</property>
</action>
<action name="action_3">
<property name="text">
<string>显示机器人</string>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;显示机器人&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</action>
<action name="action_4">
<property name="text">
<string>伤员</string>
</property>
</action>
<action name="action_5">
<property name="text">
<string>加载地图</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>InjuryDisiplayUI</class>
<widget class="QDialog" name="InjuryDisiplayUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1205</width>
<height>710</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,276 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>robotlistUI</class>
<widget class="QMainWindow" name="robotlistUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>884</width>
<height>622</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
</font>
</property>
<property name="styleSheet">
<string notr="true">#centralwidget{
min-width: 884px;
min-height:579px;
max-width:1500px;
max-height:900px;
}
#bodyWidget{
min-width:884px;
min-height:539px;
max-width:1500px;
max-height:860px;
}
#headWidget{
min-width: 884px;
min-height:40px;
max-width:1500px;
max-height:40px;
}
#robotList{
background-color : rgb(255,255,255);
border: 1px;
}
#tableTitle{
font-weight: 600;
color: rgb(25,25,25);
font-size: 20pt;
}
#searchIcon{
border-image: url(:/image/res/icon/icons_robotListUI/searchIcon.svg);
min-width: 21px;
min-height: 21px;
max-width: 21px;
max-height: 21px;
}
#searchWidget{
border-radius: 10px;
background-color: rgb(255,255,255);
min-width: 261px;
min-height: 24px;
max-width: 261px;
max-height: 24;
}</string>
</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="headWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">#headWidget{
background-color: rgb(15,18,34);
}</string>
</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="0" column="1">
<widget class="QFrame" name="searchIcon">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<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 row="0" column="2">
<widget class="QLineEdit" name="searchWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
</item>
<item row="0" column="0">
<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>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QWidget" name="bodyWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">#bodyWidget{
background-color: rgb(245,246,250);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>357</width>
<height>32</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3">
<widget class="QTableView" name="robotList">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="showGrid">
<bool>true</bool>
</property>
<property name="gridStyle">
<enum>Qt::SolidLine</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>false</bool>
</attribute>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>356</width>
<height>32</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLabel" name="tableTitle">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>20</pointsize>
<fontweight>DemiBold</fontweight>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Robot List</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>884</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,661 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RobotUI</class>
<widget class="QMainWindow" name="RobotUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1017</width>
<height>717</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{
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;
}
#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;
}</string>
</property>
<widget class="QWidget" name="centralwidget">
<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="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>Robot Control UI</string>
</property>
<property name="indent">
<number>32</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<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">
<item row="1" column="2" rowspan="2" colspan="2">
<layout class="QVBoxLayout" name="btnListLayout" stretch="0,0,0,0,0,0">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QPushButton" name="vidBtn">
<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="robotCoordsBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>机器人位置</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="micBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>麦克风</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="SLAMBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>SLAM建图</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="autoModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>自动导航模式</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="manualModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>手动导航模式</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" rowspan="2">
<layout class="QVBoxLayout" name="iconListLayout">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QFrame" name="vidIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).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="robotCoordsIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).svg);
image: url(:/icons_robotUI/res/icon/icons_robotUI/robotCoordsBtn (2).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="micIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/micBtn (2).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="SLAMIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/SLAMBtn (2).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="autoModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/autoModeBtn (2).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="manualModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/manualModeBtn.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="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="4">
<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="3" column="0" colspan="5">
<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="0" column="0" colspan="5">
<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>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="statusBarWidget" native="true">
<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>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="startBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/startBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/pauseBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn_2">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/stopBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>590</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="mainbodyWidget" native="true">
<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">#vidOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#vidOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0" rowspan="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>398</width>
<height>656</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QStackedWidget" name="vidWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="vidOn"/>
<widget class="QWidget" name="vidOff">
<property name="styleSheet">
<string notr="true">border-image: url(:/image_robotUI/res/image/image_robotUI/vid.png);</string>
</property>
</widget>
</widget>
</item>
<item row="1" column="1">
<widget class="QStackedWidget" name="SLAMWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="SLAMOn"/>
<widget class="QWidget" name="SLAMOff">
<property name="styleSheet">
<string notr="true">border-image: url(:/image_robotUI/res/image/image_robotUI/ORB_SLAM.svg);</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,661 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RobotUI</class>
<widget class="QMainWindow" name="RobotUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1017</width>
<height>717</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{
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;
}
#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;
}</string>
</property>
<widget class="QWidget" name="centralwidget">
<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="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>Robot Control UI</string>
</property>
<property name="indent">
<number>32</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<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">
<item row="1" column="2" rowspan="2" colspan="2">
<layout class="QVBoxLayout" name="btnListLayout" stretch="0,0,0,0,0,0">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QPushButton" name="vidBtn">
<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="robotCoordsBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>机器人位置</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="micBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>麦克风</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="SLAMBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>SLAM建图</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="autoModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>自动导航模式</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="manualModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>手动导航模式</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" rowspan="2">
<layout class="QVBoxLayout" name="iconListLayout">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QFrame" name="vidIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).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="robotCoordsIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).svg);
image: url(:/icons_robotUI/res/icon/icons_robotUI/robotCoordsBtn (2).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="micIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/micBtn (2).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="SLAMIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/SLAMBtn (2).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="autoModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/autoModeBtn (2).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="manualModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/manualModeBtn.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="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="4">
<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="3" column="0" colspan="5">
<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="0" column="0" colspan="5">
<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>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="statusBarWidget" native="true">
<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>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="startBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/startBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/pauseBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn_2">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/stopBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>590</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="mainbodyWidget" native="true">
<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">#vidOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#vidOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0" rowspan="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>398</width>
<height>656</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QStackedWidget" name="vidWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="vidOn"/>
<widget class="QWidget" name="vidOff">
<property name="styleSheet">
<string notr="true">border-image: url(:/image_robotUI/res/image/image_robotUI/vid.png);</string>
</property>
</widget>
</widget>
</item>
<item row="1" column="1">
<widget class="QStackedWidget" name="SLAMWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="SLAMOn"/>
<widget class="QWidget" name="SLAMOff">
<property name="styleSheet">
<string notr="true">border-image: url(:/image_robotUI/res/image/image_robotUI/ORB_SLAM.svg);</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,276 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>UAVList</class>
<widget class="QMainWindow" name="UAVList">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>884</width>
<height>622</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
</font>
</property>
<property name="styleSheet">
<string notr="true">#centralwidget{
min-width: 884px;
min-height:579px;
max-width:1500px;
max-height:900px;
}
#bodyWidget{
min-width:884px;
min-height:539px;
max-width:1500px;
max-height:860px;
}
#headWidget{
min-width: 884px;
min-height:40px;
max-width:1500px;
max-height:40px;
}
#robotList{
background-color : rgb(255,255,255);
border: 1px;
}
#tableTitle{
font-weight: 600;
color: rgb(25,25,25);
font-size: 20pt;
}
#searchIcon{
border-image: url(:/image/res/icon/icons_robotListUI/searchIcon.svg);
min-width: 21px;
min-height: 21px;
max-width: 21px;
max-height: 21px;
}
#searchWidget{
border-radius: 10px;
background-color: rgb(255,255,255);
min-width: 261px;
min-height: 24px;
max-width: 261px;
max-height: 24;
}</string>
</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="headWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">#headWidget{
background-color: rgb(15,18,34);
}</string>
</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="0" column="1">
<widget class="QFrame" name="searchIcon">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<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 row="0" column="2">
<widget class="QLineEdit" name="searchWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
</item>
<item row="0" column="0">
<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>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QWidget" name="bodyWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">#bodyWidget{
background-color: rgb(245,246,250);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>357</width>
<height>32</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3">
<widget class="QTableView" name="robotList">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="showGrid">
<bool>true</bool>
</property>
<property name="gridStyle">
<enum>Qt::SolidLine</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>false</bool>
</attribute>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>356</width>
<height>32</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLabel" name="tableTitle">
<property name="font">
<font>
<family>Microsoft YaHei UI</family>
<pointsize>20</pointsize>
<fontweight>DemiBold</fontweight>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>UAV List</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>884</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>

@ -0,0 +1,661 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>UAVUI</class>
<widget class="QMainWindow" name="UAVUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1017</width>
<height>717</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{
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;
}
#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;
}</string>
</property>
<widget class="QWidget" name="centralwidget">
<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="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>UAV Control UI</string>
</property>
<property name="indent">
<number>32</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<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">
<item row="1" column="2" rowspan="2" colspan="2">
<layout class="QVBoxLayout" name="btnListLayout" stretch="0,0,0,0,0,0">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QPushButton" name="vidBtn">
<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="robotCoordsBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>无人机位置</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="micBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>麦克风</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="SLAMBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>SLAM建图</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="autoModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>自动导航模式</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="manualModeBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="text">
<string>手动导航模式</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" rowspan="2">
<layout class="QVBoxLayout" name="iconListLayout">
<property name="spacing">
<number>24</number>
</property>
<item>
<widget class="QFrame" name="vidIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).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="robotCoordsIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/vidBtn (2).svg);
image: url(:/icons_robotUI/res/icon/icons_robotUI/robotCoordsBtn (2).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="micIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/micBtn (2).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="SLAMIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/SLAMBtn (2).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="autoModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/autoModeBtn (2).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="manualModeIcon">
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/manualModeBtn.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="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="4">
<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="3" column="0" colspan="5">
<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="0" column="0" colspan="5">
<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>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="statusBarWidget" native="true">
<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>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="startBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/startBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/pauseBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pauseBtn_2">
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/icons_robotUI/res/icon/icons_robotUI/stopBtn.svg);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>590</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="mainbodyWidget" native="true">
<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">#vidOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#vidOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOn{
border-radius: 10px;
background-color: rgb(245,246,250);
}
#SLAMOff{
border-radius: 10px;
background-color: rgb(245,246,250);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0" rowspan="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>398</width>
<height>656</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QStackedWidget" name="vidWidget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="vidOn"/>
<widget class="QWidget" name="vidOff">
<property name="styleSheet">
<string notr="true">border-image: url(:/image_robotUI/res/image/image_robotUI/vid.png);</string>
</property>
</widget>
</widget>
</item>
<item row="1" column="1">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

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

Loading…
Cancel
Save