After Width: | Height: | Size: 700 KiB |
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "ui_Prediction.h"
|
||||
#include <QPixmap>
|
||||
#include <QPainter>
|
||||
#include <QTcpServer>
|
||||
#include <QTcpSocket>
|
||||
|
||||
class Prediction : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Prediction(QPixmap image, double start_pos_x, double start_pos_y, double length, double width, double height, QWidget *parent = nullptr);
|
||||
~Prediction();
|
||||
//QPainter *painter;
|
||||
|
||||
private:
|
||||
Ui::PredictionClass ui;
|
||||
double distance_of_pix(int height,int length,int width);
|
||||
int onclick_wind_button(double dis,int type,int Tree_Type,int start_pos_x,int start_pos_y,int length,int wid);
|
||||
void getWeatherInfo(QString city);
|
||||
};
|
After Width: | Height: | Size: 961 KiB |
After Width: | Height: | Size: 61 KiB |
@ -1,4 +1,9 @@
|
||||
<RCC>
|
||||
<qresource prefix="UAV_UI_new">
|
||||
<qresource prefix="/">
|
||||
<file>background_1.png</file>
|
||||
<file>background_2.png</file>
|
||||
<file>background_3.png</file>
|
||||
<file>Fire.png</file>
|
||||
<file>kill_fire.jpg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 687 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 232 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 661 KiB |
After Width: | Height: | Size: 159 KiB |
@ -1,10 +1,20 @@
|
||||
#include "tips.h"
|
||||
|
||||
tips::tips(QWidget *parent)
|
||||
tips::tips(QPixmap image,QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
ui.display->setPixmap(image);
|
||||
connect(ui.action, &QPushButton::clicked, this, &tips::on_action_button);
|
||||
ui.action->setStyleSheet("background-color:red;");
|
||||
QString styleSheet = QString("background-image:url(:/kill_fire.jpg);\
|
||||
background-repeat:no-repeat;background-position:center;").arg(QCoreApplication::applicationDirPath());
|
||||
this->setStyleSheet(styleSheet);
|
||||
}
|
||||
|
||||
tips::~tips()
|
||||
{}
|
||||
{
|
||||
}
|
||||
void tips::on_action_button() {
|
||||
//·Å¾¯±¨
|
||||
}
|
||||
|
@ -1,22 +1,107 @@
|
||||
<UI version="4.0" >
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>tipsClass</class>
|
||||
<widget class="QMainWindow" name="tipsClass" >
|
||||
<property name="objectName" >
|
||||
<string notr="true">tipsClass</string>
|
||||
</property>
|
||||
<property name="geometry" >
|
||||
<widget class="QMainWindow" name="tipsClass">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1130</width>
|
||||
<height>644</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>1130</width>
|
||||
<height>644</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>1130</width>
|
||||
<height>644</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>tips</string>
|
||||
</property> <widget class="QMenuBar" name="menuBar" /> <widget class="QToolBar" name="mainToolBar" /> <widget class="QWidget" name="centralWidget" /> <widget class="QStatusBar" name="statusBar" />
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<widget class="QLabel" name="Pre_tag">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>19</x>
|
||||
<y>6</y>
|
||||
<width>81</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>火势状况</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="display">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>30</y>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="action">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>830</x>
|
||||
<y>40</y>
|
||||
<width>93</width>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>出警</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1130</width>
|
||||
<height>26</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mainToolBar">
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
</widget>
|
||||
<layoutDefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</UI>
|
||||
</ui>
|
||||
|