forked from SeAIPalette/SeAIPalette
155 lines
8.8 KiB
Python
155 lines
8.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'MainWindow_map.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.1
|
|
#
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_MainWindow(object):
|
|
def setupUi(self, MainWindow):
|
|
MainWindow.setObjectName("MainWindow")
|
|
MainWindow.resize(1297, 900)
|
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
|
self.centralwidget.setObjectName("centralwidget")
|
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.centralwidget)
|
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
|
self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
self.horizontalLayout.setContentsMargins(-1, -1, 0, -1)
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
self.formLayout = QtWidgets.QFormLayout()
|
|
self.formLayout.setObjectName("formLayout")
|
|
self.label = QtWidgets.QLabel(self.centralwidget)
|
|
self.label.setObjectName("label")
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
|
|
self.comboBox_map = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_map.setObjectName("comboBox_map")
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_map)
|
|
self.label_2 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_2.setObjectName("label_2")
|
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
|
|
self.label_3 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_3.setObjectName("label_3")
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_3)
|
|
self.label_8 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_8.setObjectName("label_8")
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_8)
|
|
self.comboBox_axis = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_axis.setObjectName("comboBox_axis")
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.comboBox_axis)
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
self.lineEdit_coverr = QtWidgets.QLineEdit(self.centralwidget)
|
|
self.lineEdit_coverr.setAlignment(QtCore.Qt.AlignCenter)
|
|
self.lineEdit_coverr.setObjectName("lineEdit_coverr")
|
|
self.horizontalLayout_2.addWidget(self.lineEdit_coverr)
|
|
self.label_10 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_10.setObjectName("label_10")
|
|
self.horizontalLayout_2.addWidget(self.label_10)
|
|
self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
|
|
self.lineEdit_shipn = QtWidgets.QLineEdit(self.centralwidget)
|
|
self.lineEdit_shipn.setAlignment(QtCore.Qt.AlignCenter)
|
|
self.lineEdit_shipn.setObjectName("lineEdit_shipn")
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_shipn)
|
|
self.horizontalLayout.addLayout(self.formLayout)
|
|
self.formLayout_2 = QtWidgets.QFormLayout()
|
|
self.formLayout_2.setObjectName("formLayout_2")
|
|
self.label_6 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_6.setObjectName("label_6")
|
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6)
|
|
self.comboBox_render = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_render.setObjectName("comboBox_render")
|
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboBox_render)
|
|
self.label_7 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_7.setObjectName("label_7")
|
|
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7)
|
|
self.comboBox_around = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_around.setObjectName("comboBox_around")
|
|
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.comboBox_around)
|
|
self.label_11 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_11.setObjectName("label_11")
|
|
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_11)
|
|
self.comboBox_bettery = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_bettery.setObjectName("comboBox_bettery")
|
|
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.comboBox_bettery)
|
|
self.label_9 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_9.setObjectName("label_9")
|
|
self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_9)
|
|
self.lineEdit_bettery = QtWidgets.QLineEdit(self.centralwidget)
|
|
self.lineEdit_bettery.setAlignment(QtCore.Qt.AlignCenter)
|
|
self.lineEdit_bettery.setObjectName("lineEdit_bettery")
|
|
self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_bettery)
|
|
self.label_4 = QtWidgets.QLabel(self.centralwidget)
|
|
self.label_4.setObjectName("label_4")
|
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4)
|
|
self.comboBox_algo = QtWidgets.QComboBox(self.centralwidget)
|
|
self.comboBox_algo.setObjectName("comboBox_algo")
|
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_algo)
|
|
self.horizontalLayout.addLayout(self.formLayout_2)
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
self.pushButton_run = QtWidgets.QPushButton(self.centralwidget)
|
|
font = QtGui.QFont()
|
|
font.setFamily("宋体")
|
|
font.setPointSize(12)
|
|
self.pushButton_run.setFont(font)
|
|
self.pushButton_run.setObjectName("pushButton_run")
|
|
self.verticalLayout_2.addWidget(self.pushButton_run)
|
|
self.pushButton_stop = QtWidgets.QPushButton(self.centralwidget)
|
|
font = QtGui.QFont()
|
|
font.setFamily("宋体")
|
|
font.setPointSize(12)
|
|
self.pushButton_stop.setFont(font)
|
|
self.pushButton_stop.setObjectName("pushButton_stop")
|
|
self.verticalLayout_2.addWidget(self.pushButton_stop)
|
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
|
self.horizontalLayout.setStretch(0, 1)
|
|
self.horizontalLayout.setStretch(1, 1)
|
|
self.horizontalLayout.setStretch(2, 1)
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
self.label_show = QtWidgets.QLabel(self.centralwidget)
|
|
font = QtGui.QFont()
|
|
font.setFamily("微软雅黑")
|
|
font.setPointSize(12)
|
|
self.label_show.setFont(font)
|
|
self.label_show.setObjectName("label_show")
|
|
self.verticalLayout.addWidget(self.label_show)
|
|
self.verticalLayout.setStretch(0, 1)
|
|
self.verticalLayout.setStretch(1, 10)
|
|
self.horizontalLayout_3.addLayout(self.verticalLayout)
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.retranslateUi(MainWindow)
|
|
self.pushButton_run.clicked.connect(MainWindow.run)
|
|
self.pushButton_stop.clicked.connect(MainWindow.stop)
|
|
self.comboBox_bettery.currentTextChanged['QString'].connect(MainWindow.slot_bettery)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "SeAI Palette集智调色板"))
|
|
self.label.setText(_translate("MainWindow", "地图选择"))
|
|
self.label_2.setText(_translate("MainWindow", "最低覆盖率"))
|
|
self.label_3.setText(_translate("MainWindow", "移动节点数量"))
|
|
self.label_8.setText(_translate("MainWindow", "区域划分方向"))
|
|
self.lineEdit_coverr.setText(_translate("MainWindow", "100"))
|
|
self.label_10.setText(_translate("MainWindow", "%"))
|
|
self.lineEdit_shipn.setText(_translate("MainWindow", "1"))
|
|
self.label_6.setText(_translate("MainWindow", "是否渲染"))
|
|
self.label_7.setText(_translate("MainWindow", "考虑固定节点"))
|
|
self.label_11.setText(_translate("MainWindow", "是否需要充电"))
|
|
self.label_9.setText(_translate("MainWindow", "移动节点电池容量"))
|
|
self.lineEdit_bettery.setText(_translate("MainWindow", "100"))
|
|
self.label_4.setText(_translate("MainWindow", "算法选择"))
|
|
self.pushButton_run.setText(_translate("MainWindow", "运行"))
|
|
self.pushButton_stop.setText(_translate("MainWindow", "停止"))
|
|
self.label_show.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
|