华荣三照明、合信、荣欣八组合馈电

This commit is contained in:
冯佳
2025-06-25 11:36:43 +08:00
parent 37d39f4578
commit 25b3cb7f2e
494 changed files with 114074 additions and 0 deletions

View File

@ -0,0 +1,18 @@
SVN地址重定义一下 方便远程访问
右键对应的目录, 选择TortoiseSVN->Relocate...
https://zhizhancreate:8443/svn/MenuPython 改成 http://zhizhancreate:8443/svn/MenuPython
公司内部使用(需要重新输入用户名与密码)
https://zhizhancreate:8443/svn/MenuPython 改成 http://24a9e25d.r28.cpolar.top/svn/MenuPython
外网使用(需要重新输入用户名与密码)
其中 http://24a9e25d.r28.cpolar.top 每隔不定时间 可能会发送变化,
linux 端软件无法解析win下域名故直接使用 QT界面单用 http://192.168.1.229:8443/svn/MenuPython_QT

View File

@ -0,0 +1,47 @@
statusTip()属性描述, 多个属性之间用','分隔
现在每个控件可以设置缺省styleSheet, 选中后可以独立处理, 解除选中后可恢复缺省值
password QLineEdit 所有交互控件) 使得属性在编辑前会经过密码提示
circuit=%d (QPushButton, QLabel, QLineEdit, 所有容器) 指定本对象属于哪一个回路, 如果本对象未指定回路, 本对象会继承父节点的回路, 直到最顶层父节点
main=%d (QPushButton, QLabel, QLineEdit, 所有容器) 指定本对象的主索引, 主索引为%d指定的值, 如果本对象未指定主索引, 本对象会继承父节点的主索引, 直到最顶层父节点
Alias=%s (QLabel, QLineEdit) 指定本对象需要采用别名方式显示或修改, %s为别名字符串
Format=%s (QQLabel, QLineEdit) 用来指定被对象刷新时的数据格式, 小数位数, 与菜单配置的Format相同格式
%s=%05.2f 显示5位字符, 2位小数
Caption=%s (QLabel, QLineEdit) 参数修改时显示的描述信息%s
Timeout=%d (QLabel, QLineEdit) 指定本对象(%d)ms时间未刷新后, 页面显示Timeout
page=%d (QMainWindow) 用来指定页面编号, 编号为%d指定,
canvas%d=camera%d (QLabel) 用来指定QLabel的画布编号%d(前一个), 绑定到摄像头编号%d(后一个), 用于显示绑定的视频流
Index=%d (QLabel, QPushButton, QLineEdit) 表示该项可通过菜单选中并执行功能, 选中先后顺序按比较索引排序 (主索引 * 64 + %d)。
mqtt=Ia (QLabel, QPushButton, QLineEdit) 与菜单配置文件的Ia进行绑定, 或者statusTip的第一项不写mqtt=, 直接写Ia
SetCircuit=0 (QLabel) 用来指定QLabel的画布编号%d(前一个), 绑定到摄像头编号%d(后一个), 用于显示绑定的视频流
ImageBackGround=%s (QLabel, QPushButton) 背景图片装载 %s为图片文件名字
SelectImag=%s (QLabel, QPushButton, QLineEdit) 表示菜单项选中时, 显示%s指定的图片文件
SelectIcon=%s (QPushButton) 表示按钮控件, 菜单项选中时, 显示%s指定的图标文件
ImageValue=%s_%d.%s (QLabel, QPushButton) 第一个%s为文件名前导, 第二个%s为图片文件后缀, %d为显示值。
需要与mqtt绑定, 当mqtt传入对应的值后之后, 通过(通过%d)来选择不同图片文件 来显示闯入的值值
例子
mqtt=OnStatus, ImageValue=help_%d.png
当OnStatus传入值为1时, 显示 help_1.png图片, 传入值为2时, 显示help_2.png图片 用图片来代替数字显示
Action处理目前支持以下几种预先定义的Action, 可通过'_'扩展与组合
Action=SetMain%d (QPushButton) 按下按键后, 页面选中对应主索引的第一项菜单
Action=SetPage%d (QPushButton) 按下按键后, 页面切换到页面编号%d (其中页面编号通过page=%d提前指定)
Action=canvas%d_camera%d (QPushButton) 按下按键后, 把画布ID(第一个%d)与摄像头ID(第二个%d)进行绑定
Action=Modify (QPushButton, QLineEdit, QLabel) 修改选中对象的参数, 必须包含(mqtt, Alias或Format之1), 与保护器参数绑定
Action=CmdExecute (QPushButton, QLabel) 发出通讯命令 必须与(mqtt)共同使用

174
NameConvert.py Normal file
View File

@ -0,0 +1,174 @@
from pypinyin import lazy_pinyin, Style
#用于把常用中文翻译成英文变量名,越前优先级越高, 如果不在表里,用拼音首字母
ProgramVariableNameList = [
["延时", "Delay"],
["保护", "Protect"],
["设置", "Set"],
["试验", "Test"],
["测试", "Test"],
["相位", "Phase"],
["比值", "Percent"],
["定值", "Value"],
["压板", "BitValue"],
["类型", "Type"],
["模式", "Mode"],
["双风机", "SFJ"],
["双磁力", "DCL"],
["移变高压侧", "YBGY"],
["组合馈电", "ZHKD"],
["双高爆", "SGB"],
["双照明", "DZM"],
["馈电", "KD"],
["高爆", "GB"],
["移变", "YB"],
["磁力", "CL"],
["照明", "ZM"],
["互感器", "Sensor"],
["不平衡", "Unbalance"],
["总开关", "Top"],
["分开关", "Bottom"],
["电压", "Volt"],
["电流", "Current"],
["额定", "Rate"],
["无功电量", "KVar"],
["有功电量", "Kwh"],
["有功功率", "PowS"],
["无功功率", "PowU"],
["功率", "Pow"],
["有功", "S"],
["无功", "U"],
["系统", "System"],
["校正", "Correct"],
["版本", "Version"],
["短路", "Short"],
["过流", "OverCurrent"],
["欠压", "VoltLow"],
["过压", "VoltHigh"],
["设备", "Device"],
["编号", "ID"],
["故障", "Alarm"],
["查询", "Query"],
["", "Value"],
["测量", "Measure"],
["检测", "Measure"],
["平均", "Average"],
["断相", "Break"],
["闭锁", "Lock"],
["解锁", "Delock"],
["动作", "Action"],
["开关", "Switch"],
["无校验", "None"],
["奇校验", "Odd"],
["偶校验", "Even"],
["地址", "Addr"],
["波特率", "Baud"],
["校验", "Parity"],
["网关", "Gate"],
["掩码", "Mask"],
["工作", "Work"],
["控制", "Control"],
["触点", "InputMode"],
["风电", "WindMotor"],
["瓦斯", "Gas"],
["维修", "Repair"],
["日期", "Date"],
["时间", "Time"],
["累计", "Acc"],
["数据", "Data"],
["当前", "Cur"],
["软件", "Soft"],
["密码", "Password"],
["零序", "ZeroSeq"],
["负序", "NegSeq"],
["反馈", "FeedBack"],
["电阻", "Resistor"],
["漏电", "Insulation"],
["正反转", "FWD_RVS"],
["定时限", "FixTime"],
["反时限", "AntiTime"],
["过负荷", "OverLoad"],
["欠负荷", "UnderLoad"],
["启动", "Start"],
["停止", "Stop"],
["以太网", "Eth"],
["模块", "Module"],
["型号", "Select"],
["选择", "Select"],
["欧姆", "R"],
["", ""],
["投入", "On"],
["串联", "SeriesConn"],
["通讯", "Comm"],
["水位", "Water_Level"],
["", "High"],
["", "Low"],
["正常", "Normal"],
["非常", "Very"],
["极端", "Extreme"],
["方向", "Direct"],
["", "Pos"],
["", "Neg"],
["", "Non"],
["电量", "Electric"],
["门槛", "Threshold"],
["常数", "Const"],
["配置", "Conf"],
["次数", "Count"],
["合闸", "ON"],
["分闸", "OFF"],
["1段", "1"],
["2段", "2"],
["3段", "3"],
["一段", "1"],
["二段", "2"],
["三段", "3"],
["一代", "V1"],
["二代", "V2"],
["关闭", "Disable"],
["打开", "Enable"],
["常开", "NormalOpen"],
["常闭", "NormalClose"],
["模拟", "Analog"],
["继电器", "Relay"],
["就地", "Local"],
["程控", "Remote"],
["无效", "Invalid"],
["", "None"],
]
def get_variable_name(combine_name_str : str, convert_list : list = None) :
remain_name = combine_name_str
variable_name = ""
if convert_list == None :
convert_list = ProgramVariableNameList
for list_item in convert_list :
if list_item[0] in remain_name:
if variable_name != "" :
variable_name += "_"
variable_name = variable_name + list_item[1]
remain_name = remain_name.replace(list_item[0], "")
remain_name = remain_name.replace(" ", "")
remain_name = remain_name.replace("/", "")
remain_name = remain_name.replace("\\", "")
remain_pinying = lazy_pinyin(remain_name, style=Style.FIRST_LETTER)
first_letter_pinying = ""
for each in remain_pinying :
first_letter_pinying += each.capitalize()
if len(remain_pinying) > 0 :
if variable_name == "" :
variable_name = first_letter_pinying
else :
variable_name = variable_name + "_" + first_letter_pinying
return variable_name

1383
PythonMenu_T03.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,640 @@
# This Python file uses the following encoding: utf-8
import sys
import time
from PyQt5.QtWidgets import QWidget, QLineEdit
from PyQt5.QtWidgets import QApplication, QMainWindow, QStackedWidget, QWidget, QLayout, QLabel, QLineEdit, QPushButton, QMessageBox, QShortcut, QDialog
from PyQt5 import uic
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QObject, QRunnable, QMutex, QTimer, QEvent
from PyQt5.QtGui import QImage, QPixmap, QColor, QKeySequence
from UIFrameWork import UIFrameWork
from UIFrameWork import *
# 添加当前脚本的父级目录到 sys.path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from Shared_CODE.CameraThread import CameraThread
from PyQt5.QtWidgets import QApplication, QMainWindow, QStackedWidget
from PyQt5.QtWidgets import QDesktopWidget
import menu_utils as utils
import uart_group_config as group_config
from mqtt_device import class_comm_mqtt_thread, class_comm_mqtt_interface
from print_color import *
from Shared_CODE.get_tip_prop import *
# 设置 UI 目录的路径
ui_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'UI'))
# 页面文件,动态构建 UI 文件的路径
uiFile_P20DeviceList = os.path.join(ui_path, "P20DeviceList.ui")
uiFile_P21DeviceMenu = os.path.join(ui_path, "P21DeviceMenu.ui")
uiFile_P22DataView = os.path.join(ui_path, "P22DataView.ui")
uiFile_P23SwitchAction = os.path.join(ui_path, "P23SwitchAction.ui")
uiFile_P24ParamSet = os.path.join(ui_path, "P24ParamSet.ui")
uiFile_P25CameraView = os.path.join(ui_path, "P25CameraView.ui")
uiFile_P26FaultQuery = os.path.join(ui_path, "P26FaultQuery.ui")
uiFile_P27SystemSet = os.path.join(ui_path, "P27SystemSet.ui")
uiFile_P28FieldTestAction = os.path.join(ui_path, "P28FieldTestAction.ui")
uiFile_P11LightDeviceMenu = os.path.join(ui_path, "P11LightDeviceMenu.ui")
uiFile_P12LightDataView = os.path.join(ui_path, "P12LightDataView.ui")
uiFile_P13LightSwitchAction = os.path.join(ui_path, "P13LightSwitchAction.ui")
uiFile_P14LightParamSet = os.path.join(ui_path, "P14LightParamSet.ui")
uiFile_P16LightFaultQuery = os.path.join(ui_path, "P16LightFaultQuery.ui")
uiFile_P17LightSystemSet = os.path.join(ui_path, "P17LightSystemSet.ui")
uiFile_P18LightFieldTestAction = os.path.join(ui_path, "P18LightFieldTestAction.ui")
COLOR_RED = QColor("#EE2D2D").name()
COLOR_GREEN = QColor(Qt.green).name()
COLOR_BLUE = QColor(Qt.blue).name()
COLOR_YELLOW = QColor(Qt.yellow).name()
COLOR_NORMAL = QColor("#000000").name()
COLOR_ALARM_NORMAL = QColor("#ECECEC").name()
COLOR_ALARM_ERROR_TEXT = QColor("#B1E5FC").name()
COLOR_ALARM_ERROR_BG = QColor("#E17176").name()
COLOR_VALUE_NORMAL_YELLOW = QColor("#F8C822").name()
COLOR_VALUE_NORMAL_BLUE = QColor("#4E76D4").name()
COLOR_VALUE_NORMAL_READ = QColor("#CE5D62").name()
COLOR_VALUE_NORMAL_GREEN = QColor("#83BF6E").name()
def get_camera_id_and_canvas_id(action : str) :
camera_id = -1
canvas_id = -1
if "canvas" in action and "camera" in action :
action_splits = action.split("_")
for action_split_str in action_splits:
if "camera" in action_split_str:
camera_id = get_value_from_lead_value_str(action_split_str, "camera", -1)
elif "canvas" in action_split_str:
canvas_id = get_value_from_lead_value_str(action_split_str, "canvas", -1)
return camera_id, canvas_id
#根据回路选择摄像头url地址
def search_camera_url(camera_id : int) :
cameral_url = None
for config_dict in group_config.comm_thread_config :
device_list = utils.dict_or_object_get_attr(config_dict, "device_list", None)
if device_list != None :
for item_dict in device_list :
config_camera_id = utils.dict_or_object_get_attr(item_dict, "circuit_id", -1)
if config_camera_id == camera_id :
cameral_url = utils.dict_or_object_get_attr(item_dict, "camera_url", None)
if cameral_url != None :
return cameral_url
return cameral_url
menu_page_widget_list = []
class PageTemplate(UIFrameWork): # 页面模板类,包含各子页面公用功能
def __init__(self, parent_window): #
UIFrameWork.__init__(self) #
self.parent_window : APPWindow = parent_window
def connect_matched_camera_canvas(self) :
page_widget : UIFrameWork = self.parent_window.stack.currentWidget()
if page_widget != None :
for canvas_id in range(9) :
camera_id , face_detect = page_widget.get_canvas_prop(canvas_id)
if camera_id >= 0 :
self.parent_window.connect_camera_to_canvas(page_widget, camera_id, canvas_id, face_detect)
def virtual_connect_canvas_to_camera(self, canvas_id : int, camera_id : int, is_visible : bool = True) :
if camera_id >= 0 and canvas_id >= 0 and canvas_id < len(self.parent_window.camera_thread_list) :
face_detect = 0
canvas_object = self.search_canvas_object(canvas_id)
if canvas_object != None :
face_detect = get_tip_face_detection(canvas_object.statusTip())
camera_thread : CameraThread = self.parent_window.camera_thread_list[camera_id]
if camera_thread != None :
if not camera_thread.is_emit and is_visible:
self.show_camera_error(camera_id)
if camera_thread.is_emit:
self.connect_camera_thread(camera_thread, canvas_id, is_visible)
self.parent_window.camera_signal.emit(camera_id)
camera_thread.face_detection = face_detect
if hasattr(self, "CameraChioceLabel") :
# self.CameraChioceLabel.setStyleSheet("color: rgb(255, 255, 255); font-size: 50px;")
self.CameraChioceLabel.setText("回路" + str(camera_id+1))
else:
self.show_camera_error(camera_id)
def show_camera_error(self, camera_id) :
inform_box : DialogInform = DialogInform()
inform_box.information("提示", f"视频流{camera_id+1}无法初始化或失去连接!")
#定义虚函数, 进入页面时调用
def virtual_on_page_enter(self) :
pass
#定义虚函数, 退出页面时调用
def virtual_on_page_leave(self) :
pass
#重载虚函数, 切换页面时调用
def virtual_change_to_page(self, page) :
if self.parent_window == None :
return
self_page_widget : PageTemplate = self.parent_window.stack.currentWidget()
if self_page_widget == None :
return
target_page_widget : PageTemplate = None
if page >= 0 :
target_page_widget = self.parent_window.search_page_widget(page)
if target_page_widget in menu_page_widget_list:
while len(menu_page_widget_list) > 0 :
pop_page_widget = menu_page_widget_list.pop()
if pop_page_widget == None or pop_page_widget == target_page_widget:
break
else :
while len(menu_page_widget_list) > 0 :
pop_page_widget = menu_page_widget_list.pop()
if pop_page_widget == self :
continue
else :
target_page_widget = pop_page_widget
break
if target_page_widget == None :
target_page_widget = self.parent_window.allpages_list[0]
if target_page_widget != None :
menu_page_widget_list.append(target_page_widget)
self_page_widget.virtual_on_page_leave()
self.parent_window.stack.setCurrentWidget(target_page_widget)
target_page_widget.virtual_on_page_enter()
self.connect_matched_camera_canvas()
def virtual_widget_action_process(self, widget : QWidget, action : str) :
action_splits = action.split("+")
page_id = -1
circuit_id = -1
main_index = -1
add_circuit = -1
binding_circuit = -1
for action_split_str in action_splits :
if "SetPage" in action_split_str :
page_id = get_value_from_lead_value_str(action_split_str, "SetPage", -1)
elif "SetCircuit" in action_split_str :
circuit_id = get_value_from_lead_value_str(action_split_str, "SetCircuit", -1)
elif "SetMain" in action_split_str:
main_index = get_value_from_lead_value_str(action_split_str, "SetMain", -1)
elif "AddCircuit" in action_split_str :
add_circuit = get_value_from_lead_value_str(action_split_str, "AddCircuit", -1)
elif "SetBinding" in action_split_str :
binding_circuit = get_value_from_lead_value_str(action_split_str, "SetBinding", 1)
print("<virtual_widget_action_process>@Line:",inspect.currentframe().f_lineno,'<circuit_id> = ',circuit_id,'<Action> = ',action_splits)
if add_circuit >= 0 :
tip_str : str = page_widget.statusTip()
circuit_id = get_tip_circuit(tip_str)
circuit_id = circuit_id + 1
if binding_circuit > 0 :
circuit_id = self.get_circuit_from_object(widget)
target_page_widget = self.parent_window.search_page_widget(page_id)
page_widget : PageTemplate = target_page_widget
if page_id >= 0 : # 功能标记:执行页面跳转功能
target_page_widget = self.parent_window.search_page_widget(page_id)
if target_page_widget != None :
if circuit_id >= 0 :
target_page_widget.set_page_circuit(circuit_id)
self.virtual_change_to_page(page_id)
if main_index >= 0 : # 功能标记:执行控件主索引设定
self.set_menu_main_index(main_index) # 设置页面主索引字段<main>,可以跨组选择控件
if circuit_id >= 0 :
indicator : QLineEdit = target_page_widget.findChild(QLineEdit,"BindNum_Title")
indicator.setText("当前回路为 %d"%(circuit_id + 1))
# 显示提示图标
indicator_Label : QLabel = target_page_widget.findChild(QLabel,"indicator_Label")
tip_str : str = indicator_Label.statusTip()
imag_file_name = get_imag_value_file_name(tip_str, circuit_id)
if imag_file_name != None :
self.modify_object_style_sheet(indicator_Label, "background-image", "url(%s)"%(imag_file_name))
else :
self.reset_object_style_sheet(indicator_Label)
camera_id, canvas_id = get_camera_id_and_canvas_id(action)
self.virtual_connect_canvas_to_camera(canvas_id, camera_id)
#P20设备列表页面
class QDeviceListPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P20DeviceList)
#P21设备列表页面
class QDeviceMenuPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P21DeviceMenu)
#P22数据查看页面
class QDataViewPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P22DataView)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
#P23开关操作页面
class QSwitchActionPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P23SwitchAction)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
#P24参数设置页面
class QParamSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P24ParamSet)
#P25视频查看页面 QFaultQueryPage
class QCameraViewPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P25CameraView)
def virtual_on_page_enter(self) :
self.parent_window.camera_signal.emit(0)
#P26故障查询页面 QFaultQueryPage
class QFaultQueryPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P26FaultQuery)
self.alarm_index = 0
def virtual_on_page_enter(self) :
self.alarm_index = 0
self.query_alarm_index()
self.timer = QTimer()
self.timer.timeout.connect(self.query_alarm_index)
self.timer.start(4000)
def virtual_on_page_leave(self) :
self.alarm_index = 0
def query_alarm_index(self):
circuit_id = self.get_page_circuit()
unique_name = self.get_unique_name_from_circuit(circuit_id)
if unique_name != None :
publish_topic = "request/alarm/" + unique_name
publish_message = '{"index" : "%s"}'%(self.alarm_index)
self.mqtt_publish_and_wait_response(publish_topic, publish_message, object, 1000)
#action 处理虚函数, 只适用于故障查询页面
def virtual_widget_action_process(self, widget : QWidget, action : str) :
PageTemplate.virtual_widget_action_process(self, widget, action)
alarm_adjust = 0
if "CmdAlarmNext" in action :
alarm_adjust = 1
elif "CmdAlarmPrev" in action :
alarm_adjust = -1
if alarm_adjust != 0 :
self.alarm_index = self.alarm_index + alarm_adjust
if self.alarm_index < 0 :
self.alarm_index = 0
self.query_alarm_index()
#P27系统参数设置页面
class QSystemSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P27SystemSet)
#P28现场试验页面
class QFieldTestAction(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P28FieldTestAction)
# P11照明菜单选择
class QLightMenuPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P11LightDeviceMenu)
# P12照明运行数据页面
class QRunDataPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P12LightDataView)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
# P13照明开关操作页面
class QLightSwitchActionPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P13LightSwitchAction)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
# P14照明参数设置页面
class QLightParamSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P14LightParamSet)
# P16照明故障查询
class QLightFaultQuery(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P16LightFaultQuery)
def virtual_on_page_enter(self) :
self.alarm_index = 0
self.query_alarm_index()
self.timer = QTimer()
self.timer.timeout.connect(self.query_alarm_index)
self.timer.start(4000)
def virtual_on_page_leave(self) :
self.alarm_index = 0
def query_alarm_index(self):
circuit_id = self.get_page_circuit()
unique_name = self.get_unique_name_from_circuit(circuit_id)
if unique_name != None :
publish_topic = "request/alarm/" + unique_name
publish_message = '{"index" : "%s"}'%(self.alarm_index)
self.mqtt_publish_and_wait_response(publish_topic, publish_message, object, 1000)
#action 处理虚函数, 只适用于故障查询页面
def virtual_widget_action_process(self, widget : QWidget, action : str) :
PageTemplate.virtual_widget_action_process(self, widget, action)
alarm_adjust = 0
if "CmdAlarmNext" in action :
alarm_adjust = 1
elif "CmdAlarmPrev" in action :
alarm_adjust = -1
if alarm_adjust != 0 :
self.alarm_index = self.alarm_index + alarm_adjust
if self.alarm_index < 0 :
self.alarm_index = 0
self.query_alarm_index()
# P17照明系统参数
class QLightSystemSet(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P17LightSystemSet)
# P18现场试验页面
class QLightFieldTestAction(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P18LightFieldTestAction)
class APPWindow(QMainWindow):
camera_signal = pyqtSignal(int)
def __init__(self):
super().__init__()
# 获取屏幕分辨率
screen = QDesktopWidget().screenGeometry()
screen_width = screen.width()
screen_height = screen.height()
self.stack = QStackedWidget(self)
self.setGeometry(0, 0, screen_width, screen_height) # 设置窗口大小为屏幕分辨率
self.stack.setGeometry(0, 0, screen_width, screen_height) # 设置堆叠窗口大小为屏幕分辨率
#调试的时候用下面两行,全屏就注释
# self.setGeometry(0, 0, 1024, 768)
# self.stack.setGeometry(0, 0, 1024, 768)
self.showFullScreen()
self.menu_sequence_list : PageTemplate = []
self.camera_thread_list : CameraThread = [None, None, None, None, None, None, None, None, None]
self.allpages_list : PageTemplate = []
self.P20_DeviceList : PageTemplate = QDeviceListPage(parent_window = self)
self.P21_DeviceMenu : PageTemplate = QDeviceMenuPage(parent_window = self)
self.P22_DataView : PageTemplate = QDataViewPage(parent_window = self)
self.P23_SwitchAction : PageTemplate = QSwitchActionPage(parent_window = self)
self.P24_ParamSet : PageTemplate = QParamSetPage(parent_window = self)
self.P25_CameraView : PageTemplate = QCameraViewPage(parent_window = self)
self.P26_FaultQuery : PageTemplate = QFaultQueryPage(parent_window = self)
self.P27_SystemSet : PageTemplate = QSystemSetPage(parent_window = self)
self.P28_FieldTestAction : PageTemplate = QFieldTestAction(parent_window = self)
self.P11_DeviceMenu : PageTemplate = QLightMenuPage(parent_window = self)
self.P12_DateView : PageTemplate = QRunDataPage(parent_window = self)
self.P13_SwitchAction : PageTemplate = QLightSwitchActionPage(parent_window = self)
self.P14_ParamSet : PageTemplate = QLightParamSetPage(parent_window = self)
self.P16_LightFaultQuery : PageTemplate = QLightFaultQuery(parent_window = self)
self.P17_LightSystemSet : PageTemplate = QLightSystemSet(parent_window = self)
self.P18_LightFieldTestAction : PageTemplate = QLightFieldTestAction(parent_window = self)
self.allpages_list.append(self.P20_DeviceList)
self.allpages_list.append(self.P21_DeviceMenu)
self.allpages_list.append(self.P22_DataView)
self.allpages_list.append(self.P23_SwitchAction)
self.allpages_list.append(self.P24_ParamSet)
self.allpages_list.append(self.P25_CameraView)
self.allpages_list.append(self.P26_FaultQuery)
self.allpages_list.append(self.P27_SystemSet)
self.allpages_list.append(self.P28_FieldTestAction)
self.allpages_list.append(self.P11_DeviceMenu)
self.allpages_list.append(self.P12_DateView)
self.allpages_list.append(self.P13_SwitchAction)
self.allpages_list.append(self.P14_ParamSet)
self.allpages_list.append(self.P16_LightFaultQuery)
self.allpages_list.append(self.P17_LightSystemSet)
self.allpages_list.append(self.P18_LightFieldTestAction)
self.stack.addWidget(self.P20_DeviceList)
self.stack.addWidget(self.P21_DeviceMenu)
self.stack.addWidget(self.P22_DataView)
self.stack.addWidget(self.P23_SwitchAction)
self.stack.addWidget(self.P24_ParamSet)
self.stack.addWidget(self.P25_CameraView)
self.stack.addWidget(self.P26_FaultQuery)
self.stack.addWidget(self.P27_SystemSet)
self.stack.addWidget(self.P28_FieldTestAction)
self.stack.addWidget(self.P11_DeviceMenu)
self.stack.addWidget(self.P12_DateView)
self.stack.addWidget(self.P13_SwitchAction)
self.stack.addWidget(self.P14_ParamSet)
self.stack.addWidget(self.P16_LightFaultQuery)
self.stack.addWidget(self.P17_LightSystemSet)
self.stack.addWidget(self.P18_LightFieldTestAction)
test_init = system_parameter()
set_screen_blanking_time(test_init.get_screen_blanking_time())
def search_page_widget(self, page) :
for list_item in self.allpages_list:
window_page : UIFrameWork = list_item
if window_page.page == page :
return window_page
return None
def connect_camera_to_canvas(self, page_widget : UIFrameWork, camera_id: int , canvas_id : int, face_detect : int = 0) :
if camera_id >= 0 and canvas_id >= 0 and canvas_id < len(self.camera_thread_list) :
camera_thread : CameraThread = self.camera_thread_list[camera_id]
if camera_thread != None :
page_widget.connect_camera_thread(camera_thread, canvas_id)
camera_thread.face_detection = face_detect
def create_all_camera_thread(self) :
for camera_id in range(len(self.camera_thread_list)) :
_camera_url = search_camera_url(camera_id)
if _camera_url != None :
camera_thread = CameraThread(_camera_url, camera_id)
camera_thread.set_video_cycle_ms(10)
self.camera_thread_list[camera_id] = camera_thread
self.camera_signal.connect(camera_thread.change_camera_url)
#摄像头与 界面进行绑定
for index in range(self.stack.count()) :
page_widget : UIFrameWork = self.stack.widget(index)
page_widget.connect_matched_camera_canvas()
time.sleep(0.1)
#开启多个摄像头线程
for camera_thread in self.camera_thread_list:
thread_to_start : CameraThread = camera_thread
if thread_to_start != None :
thread_to_start.start()
time.sleep(0.01)
def get_page_currentwidget(self) :
return self.stack.currentWidget().sort_menu_list[self.stack.currentWidget().menu_key_index][1]
def closeEvent(self, event):
# 在这里处理关闭事件
# 例如,提示用户是否真的想要关闭
reply = QMessageBox.question(self, '确认', '确定要退出吗?',
QMessageBox.Yes | QMessageBox.No)
if reply == QMessageBox.Yes:
for camera_thread in self.camera_thread_list:
thread_to_stop : CameraThread = camera_thread
if thread_to_stop != None :
thread_to_stop.close()
for camera_thread in self.camera_thread_list:
thread_to_stop : CameraThread = camera_thread
if thread_to_stop != None :
thread_to_stop.wait()
event.accept() # 接受关闭事件
else:
event.ignore() # 忽略关闭事件
if __name__ == '__main__':
#创建mqtt线程
fvalue = float('06.00')
value = round(fvalue)
_user_name = utils.dict_or_object_get_attr(group_config.mqtt_server, "user_name", "admin")
_password = utils.dict_or_object_get_attr(group_config.mqtt_server, "password", "admin")
_server = utils.dict_or_object_get_attr(group_config.mqtt_server, "remote", "127.0.0.1")
_port = utils.dict_or_object_get_attr(group_config.mqtt_server, "port", 1883)
global_mqtt_thread = class_comm_mqtt_thread()
global_mqtt_thread.set_mqtt_server(server = _server, port = _port, keep_alive = 60, user_name=_user_name, password=_password)
app = QApplication([])
app_main_window = APPWindow()
app_main_window.show()
app_main_window.create_all_camera_thread()
for config_dict in group_config.comm_thread_config :
device_list = utils.dict_or_object_get_attr(config_dict, "device_list", None)
if device_list != None :
for item_dict in device_list :
circuit_id = utils.dict_or_object_get_attr(item_dict, "circuit_id", -1)
circuit_unique_name = utils.dict_or_object_get_attr(item_dict, "unique_name", None)
if circuit_unique_name != None :
global_mqtt_thread.add_unique_object(circuit_unique_name, app_main_window.allpages_list)
global_mqtt_thread.start()
app.exec_()
global_mqtt_thread.close()
global_mqtt_thread.join()
sys.exit(0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,339 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P11DeviceMenu</class>
<widget class="QMainWindow" name="P11DeviceMenu">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=11</string>
</property>
<property name="whatsThis">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P01BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Light_DeviceMenu.png</pixmap>
</property>
</widget>
<widget class="QGroupBox" name="Btns">
<property name="geometry">
<rect>
<x>234</x>
<y>179</y>
<width>771</width>
<height>701</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn07">
<property name="geometry">
<rect>
<x>400</x>
<y>229</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=7, Action=SetPage0,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>返回主页</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn01">
<property name="geometry">
<rect>
<x>18</x>
<y>114</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=1,Action=SetPage12+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>运行数据</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn02">
<property name="geometry">
<rect>
<x>18</x>
<y>229</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=2, Action=SetPage13+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>开关操作</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn03">
<property name="geometry">
<rect>
<x>18</x>
<y>345</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=3, Action=SetPage14+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string> 保护参数设置</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn04">
<property name="geometry">
<rect>
<x>20</x>
<y>460</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=4, Action=SetPage17+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string> 系统参数设置</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>设备</string>
</property>
</widget>
<widget class="QPushButton" name="Btn05">
<property name="geometry">
<rect>
<x>18</x>
<y>575</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=5, Action=SetPage16+SetBinding+CmdAlarmNext,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>故障查询</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn06">
<property name="geometry">
<rect>
<x>400</x>
<y>114</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=6, Action=SetPage18+SetBinding ,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>现场试验</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,573 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P12DataView</class>
<widget class="QMainWindow" name="P12DataView">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=12</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="TestCameraView">
<property name="geometry">
<rect>
<x>810</x>
<y>120</y>
<width>1071</width>
<height>841</height>
</rect>
</property>
<property name="statusTip">
<string>canvas1=camera0, Timeout=3000</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="CameralUrlLabel">
<property name="geometry">
<rect>
<x>340</x>
<y>10</y>
<width>391</width>
<height>16</height>
</rect>
</property>
<property name="statusTip">
<string>cameral_url=canvas1</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="CameralUrlLabel_2">
<property name="geometry">
<rect>
<x>750</x>
<y>10</y>
<width>411</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="P02BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="styleSheet">
<string>background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Light_DataView.png</pixmap>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>170</x>
<y>130</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>100</x>
<y>240</y>
<width>671</width>
<height>781</height>
</rect>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;
background-color: rgba(255, 255, 255,0);</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_15">
<property name="geometry">
<rect>
<x>300</x>
<y>500</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Uab, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_13">
<property name="geometry">
<rect>
<x>70</x>
<y>500</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Ia, Timeout=5000,</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_14">
<property name="geometry">
<rect>
<x>70</x>
<y>575</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Ib, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_16">
<property name="geometry">
<rect>
<x>70</x>
<y>650</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Ic, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_18">
<property name="geometry">
<rect>
<x>300</x>
<y>574</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Ubc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_19">
<property name="geometry">
<rect>
<x>300</x>
<y>650</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Uca, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_25">
<property name="geometry">
<rect>
<x>517</x>
<y>570</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Ro, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_27">
<property name="geometry">
<rect>
<x>525</x>
<y>494</y>
<width>90</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>OnCount, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="m01_SwitchStatus_0">
<property name="geometry">
<rect>
<x>90</x>
<y>120</y>
<width>310</width>
<height>170</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>SwitchStatus, ImageValue=IM03_SwitchStatus_%d.png, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>151</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>3</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<zorder>P02BG</zorder>
<zorder>TestCameraView</zorder>
<zorder>CameralUrlLabel</zorder>
<zorder>CameralUrlLabel_2</zorder>
<zorder>BindNum_Title</zorder>
<zorder>groupBox</zorder>
<zorder>indicator_Label</zorder>
<zorder>groupBox_sys</zorder>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,345 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P13SwitchAction</class>
<widget class="QMainWindow" name="P13SwitchAction">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=13</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P03BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Ligth_SwitchAction.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>150</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>3</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>290</x>
<y>180</y>
<width>1300</width>
<height>781</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="SwitchOn">
<property name="geometry">
<rect>
<x>147</x>
<y>490</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOn,Index=2,Action=CmdExecute, SelectImag=SR_001.png, groupstart=6</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="SwitchOff">
<property name="geometry">
<rect>
<x>411</x>
<y>493</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOff,Index=3,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLabel" name="m01_SwitchStatus_0">
<property name="geometry">
<rect>
<x>500</x>
<y>170</y>
<width>310</width>
<height>170</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>SwitchStatus, ImageValue=IM03_SwitchStatus_%d.png, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QPushButton" name="SwitchRecover">
<property name="geometry">
<rect>
<x>674</x>
<y>493</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOff,Index=4,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="m03_AlarmMessage_0">
<property name="geometry">
<rect>
<x>581</x>
<y>98</y>
<width>281</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string>AlarmMessage,Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QPushButton" name="quit">
<property name="geometry">
<rect>
<x>940</x>
<y>490</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>Index=7, Action=SetPage11,SelectImag=SR_001.png, groupend=6</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备照明</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,637 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P16FaultQuery</class>
<widget class="QMainWindow" name="P16FaultQuery">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=16</string>
</property>
<property name="whatsThis">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<property name="statusTip">
<string/>
</property>
<widget class="QLabel" name="P06BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Ligth_FaultQuery.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>640</x>
<y>310</y>
<width>641</width>
<height>581</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=2</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn_Pre">
<property name="geometry">
<rect>
<x>51</x>
<y>410</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=2,Action=CmdAlarmPrev, SelectImag=IM03_001.png, groupstart=3</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn_Next">
<property name="geometry">
<rect>
<x>270</x>
<y>410</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=3,Action=CmdAlarmNext, SelectImag=IM03_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="alarmTitle">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>75</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(160, 206, 226);</string>
</property>
<property name="text">
<string>..</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="alarmTime">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>35</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(160, 206, 226);</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="alarmMsg">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>118</y>
<width>491</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(255, 126, 21);</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="sys_menu_2">
<property name="geometry">
<rect>
<x>488</x>
<y>410</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=4, Action=SetPage11, SelectImag=IM03_001.png, groupend=3</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>650</x>
<y>485</y>
<width>671</width>
<height>291</height>
</rect>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;
background-color: rgba(255, 255, 255,0);</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_15">
<property name="geometry">
<rect>
<x>260</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUb, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_13">
<property name="geometry">
<rect>
<x>40</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUa, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_14">
<property name="geometry">
<rect>
<x>40</x>
<y>82</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIa, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_18">
<property name="geometry">
<rect>
<x>260</x>
<y>82</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIb, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_21">
<property name="geometry">
<rect>
<x>480</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_22">
<property name="geometry">
<rect>
<x>480</x>
<y>81</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_23">
<property name="geometry">
<rect>
<x>480</x>
<y>137</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmRo, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>7</x>
<y>149</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>1</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>320</x>
<y>170</y>
<width>421</width>
<height>91</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border:none;
background-color: rgba(255, 255, 255,0);</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,792 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P17SystemSet</class>
<widget class="QMainWindow" name="P17SystemSet">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=17</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>91</x>
<y>187</y>
<width>450</width>
<height>874</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=14</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_28">
<property name="geometry">
<rect>
<x>270</x>
<y>100</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Temperature, Action=Modify, Index=1, Format=%03.0f, Caption=温度设定,Timeout=5000,SelectImag=P4_ParaSelect.png,groupstart=10</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_29">
<property name="geometry">
<rect>
<x>270</x>
<y>155</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Gas, Action=Modify, Index=2, Alias=alias_input, Caption=瓦斯触点,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_30">
<property name="geometry">
<rect>
<x>270</x>
<y>210</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>GasDelay, Action=Modify, Index=3, Format=%06.2f, Caption=瓦斯延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_31">
<property name="geometry">
<rect>
<x>270</x>
<y>265</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>GasConcentration, Action=Modify, Index=4, Format=%05.2f, Caption=瓦斯浓度, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_32">
<property name="geometry">
<rect>
<x>270</x>
<y>320</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Fan, Action=Modify, Index=5, Alias=alias_input, Caption=风电触点,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_36">
<property name="geometry">
<rect>
<x>270</x>
<y>375</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>FanDelay, Action=Modify, Index=6, Format=%06.2f, Caption=风电延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_37">
<property name="geometry">
<rect>
<x>270</x>
<y>430</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>FarAndNearMode, Action=Modify, Index=7, Alias=alias_remote, Caption=远近控模式,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_38">
<property name="geometry">
<rect>
<x>270</x>
<y>485</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>MaintenanceMode, Action=Modify, Index=8, Alias=alias_bool, Caption=维修模式,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="BlankTimelineEdit">
<property name="geometry">
<rect>
<x>270</x>
<y>540</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>System=ScreenBlankingTime, Action=ModifySystem, Index=9,SelectImag=P4_ParaSelect.png, password</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_44">
<property name="geometry">
<rect>
<x>270</x>
<y>595</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>System=SystemPassWord, Action=ModifySystem, Index=10,SelectImag=P4_ParaSelect.png, password,groupend=10</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>****</string>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>545</x>
<y>186</y>
<width>450</width>
<height>874</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=15</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_26">
<property name="geometry">
<rect>
<x>270</x>
<y>85</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Address, Action=Modify, Index=1, Format=%03.0f, Caption=485地址, Timeout=5000,SelectImag=P4_ParaSelect.png, groupstart=5</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_27">
<property name="geometry">
<rect>
<x>270</x>
<y>145</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Baud, Action=Modify, Index=2, Alias=alias_baud, Caption=485波特率,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_33">
<property name="geometry">
<rect>
<x>270</x>
<y>200</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Parity, Action=Modify, Index=3, Alias=alias_parity, Caption=485校验,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_34">
<property name="geometry">
<rect>
<x>270</x>
<y>255</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>CANAddress, Action=Modify, Index=4, Format=%03.0f, Caption=CAN地址, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_35">
<property name="geometry">
<rect>
<x>270</x>
<y>310</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>CANBaud, Action=Modify, Index=5, Alias=alias_can_baud, Caption=CAN波特率,Timeout=5000,SelectImag=P4_ParaSelect.png, groupend=5</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>0</x>
<y>80</y>
<width>1920</width>
<height>970</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_P00_3">
<property name="geometry">
<rect>
<x>547</x>
<y>90</y>
<width>450</width>
<height>877</height>
</rect>
</property>
<property name="statusTip">
<string>groupend=2,Index=3, Action=SetMain15,SelectImag=IM04_00.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>180</x>
<y>36</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="sys_P00_2">
<property name="geometry">
<rect>
<x>92</x>
<y>90</y>
<width>450</width>
<height>877</height>
</rect>
</property>
<property name="statusTip">
<string>groupstart=2,Index=2, Action=SetMain14,SelectImag=IM04_00.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>9</x>
<y>24</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>9</x>
<y>173</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<zorder>sys_P00_2</zorder>
<zorder>sys_P00_3</zorder>
<zorder>BindNum_Title</zorder>
<zorder>sys_home</zorder>
<zorder>sys_menu</zorder>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="P07BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Light_SystemSet.png</pixmap>
</property>
</widget>
<zorder>P07BG</zorder>
<zorder>groupBox</zorder>
<zorder>groupBox_2</zorder>
<zorder>groupBox_sys_2</zorder>
<zorder>indicator_Label</zorder>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,345 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P18FieldTestAction</class>
<widget class="QMainWindow" name="P18FieldTestAction">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=18</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P08BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../Light_image/Light_FieldTestAction.png</pixmap>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>290</x>
<y>174</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>600</x>
<y>280</y>
<width>691</width>
<height>511</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Test01">
<property name="geometry">
<rect>
<x>53</x>
<y>243</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestShort,Index=2,Action=CmdExecute, SelectImag=SR_001.png, groupstart=4</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Test02">
<property name="geometry">
<rect>
<x>53</x>
<y>357</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestIsolation,Index=3,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Reset">
<property name="geometry">
<rect>
<x>400</x>
<y>248</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestRecover,Index=4,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="m03_AlarmMessage_0">
<property name="geometry">
<rect>
<x>365</x>
<y>135</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string>AlarmMessage,Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="m01_SwitchStatus_0">
<property name="geometry">
<rect>
<x>79</x>
<y>93</y>
<width>245</width>
<height>111</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>SwitchStatus, ImageValue=SwitchStatus_%d.png, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QPushButton" name="quit">
<property name="geometry">
<rect>
<x>400</x>
<y>357</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>Index=5, Action=SetPage11,SelectImag=SR_001.png, groupend=4</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>153</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>4</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,339 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P01DeviceMenu</class>
<widget class="QMainWindow" name="P01DeviceMenu">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=1</string>
</property>
<property name="whatsThis">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P01BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_DeviceMenu.png</pixmap>
</property>
</widget>
<widget class="QGroupBox" name="Btns">
<property name="geometry">
<rect>
<x>234</x>
<y>179</y>
<width>771</width>
<height>701</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn07">
<property name="geometry">
<rect>
<x>400</x>
<y>229</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=7, Action=SetPage0,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>返回主页</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn01">
<property name="geometry">
<rect>
<x>18</x>
<y>114</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=1,Action=SetPage2+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>运行数据</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn02">
<property name="geometry">
<rect>
<x>18</x>
<y>229</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=2, Action=SetPage3+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>开关操作</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn03">
<property name="geometry">
<rect>
<x>18</x>
<y>345</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=3, Action=SetPage4+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string> 保护参数设置</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn04">
<property name="geometry">
<rect>
<x>20</x>
<y>460</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=4, Action=SetPage7+SetBinding,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string> 系统参数设置</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>90</x>
<y>10</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>设备</string>
</property>
</widget>
<widget class="QPushButton" name="Btn05">
<property name="geometry">
<rect>
<x>18</x>
<y>575</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=5, Action=SetPage6+SetBinding+CmdAlarmNext,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>故障查询</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn06">
<property name="geometry">
<rect>
<x>400</x>
<y>114</y>
<width>364</width>
<height>85</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>29</pointsize>
</font>
</property>
<property name="statusTip">
<string>Index=6, Action=SetPage8+SetBinding ,SelectImag=IM01_01.png</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(249, 136, 50);</string>
</property>
<property name="text">
<string>现场试验</string>
</property>
<property name="iconSize">
<size>
<width>364</width>
<height>85</height>
</size>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,434 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P03SwitchAction</class>
<widget class="QMainWindow" name="P03SwitchAction">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=3</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P03BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_SwitchAction.png</pixmap>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>295</x>
<y>190</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>374</x>
<y>189</y>
<width>1141</width>
<height>811</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="SwitchOn">
<property name="geometry">
<rect>
<x>47</x>
<y>458</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOn,Index=2,Action=CmdExecute, SelectImag=SR_001.png, groupstart=6</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="SwitchOff">
<property name="geometry">
<rect>
<x>47</x>
<y>557</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOff,Index=3,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="CarBackward">
<property name="geometry">
<rect>
<x>473</x>
<y>559</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>CarRetreat,Index=6,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="CarForward">
<property name="geometry">
<rect>
<x>473</x>
<y>460</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>CarForward,Index=5,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="SwitchRecover">
<property name="geometry">
<rect>
<x>47</x>
<y>657</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>SwitchOff,Index=4,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="m03_AlarmMessage_0">
<property name="geometry">
<rect>
<x>150</x>
<y>90</y>
<width>281</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string>AlarmMessage,Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="TestCameraView">
<property name="geometry">
<rect>
<x>650</x>
<y>125</y>
<width>441</width>
<height>241</height>
</rect>
</property>
<property name="statusTip">
<string>canvas1=camera0, Timeout=3000</string>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="quit">
<property name="geometry">
<rect>
<x>842</x>
<y>461</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>Index=7, Action=SetPage1,SelectImag=SR_001.png, groupend=6</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="m03_CarMessage_14">
<property name="geometry">
<rect>
<x>690</x>
<y>81</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string>CarPositionMsg,Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255,0);
color: rgb(255, 170, 0);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="m01_SwitchStatus_0">
<property name="geometry">
<rect>
<x>100</x>
<y>180</y>
<width>262</width>
<height>131</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>SwitchStatus, ImageValue=SwitchStatus_%d.png, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>151</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage1,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>5</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,656 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P05CameraView</class>
<widget class="QMainWindow" name="P05CameraView">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=5</string>
</property>
<property name="whatsThis">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<property name="statusTip">
<string/>
</property>
<widget class="QLabel" name="P05BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_CameraView.png</pixmap>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn_Home">
<property name="geometry">
<rect>
<x>8</x>
<y>2</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=9, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QLabel" name="Canvas00">
<property name="geometry">
<rect>
<x>380</x>
<y>124</y>
<width>1165</width>
<height>720</height>
</rect>
</property>
<property name="statusTip">
<string>canvas0=camera0, Timeout=5000</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
<widget class="QLabel" name="CameraChioceLabel">
<property name="geometry">
<rect>
<x>200</x>
<y>120</y>
<width>111</width>
<height>41</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252); font-size: 35px;</string>
</property>
<property name="text">
<string>回路1</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>90</x>
<y>890</y>
<width>1821</width>
<height>171</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn02">
<property name="geometry">
<rect>
<x>236</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=2, Action=canvas0_camera1, SelectImag=IM05_A2.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn01">
<property name="geometry">
<rect>
<x>10</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=canvas0_camera0, SelectImag=IM05_A1.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn03">
<property name="geometry">
<rect>
<x>462</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=3, Action=canvas0_camera2, SelectImag=IM05_A3.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn04">
<property name="geometry">
<rect>
<x>688</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=4, Action=canvas0_camera3, SelectImag=IM05_A4.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn05">
<property name="geometry">
<rect>
<x>914</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=5, Action=canvas0_camera4, SelectImag=IM05_A5.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn06">
<property name="geometry">
<rect>
<x>1140</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=6, Action=canvas0_camera5, SelectImag=IM05_A6.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn07">
<property name="geometry">
<rect>
<x>1366</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=7, Action=canvas0_camera6, SelectImag=IM05_A7.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn08">
<property name="geometry">
<rect>
<x>1592</x>
<y>5</y>
<width>220</width>
<height>159</height>
</rect>
</property>
<property name="statusTip">
<string>Index=8, Action=canvas0_camera7, SelectImag=IM05_A8.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QLabel" name="Canvas01">
<property name="geometry">
<rect>
<x>12</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas1=camera0, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="Canvas02">
<property name="geometry">
<rect>
<x>238</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas2=camera1, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas03">
<property name="geometry">
<rect>
<x>464</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas3=camera2, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas04">
<property name="geometry">
<rect>
<x>690</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas4=camera3, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas05">
<property name="geometry">
<rect>
<x>916</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas5=camera4, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas06">
<property name="geometry">
<rect>
<x>1142</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas6=camera5, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas07">
<property name="geometry">
<rect>
<x>1368</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas7=camera6, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="Canvas08">
<property name="geometry">
<rect>
<x>1594</x>
<y>23</y>
<width>216</width>
<height>139</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>135</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>300</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="statusTip">
<string>canvas8=camera7, Timeout=5000</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>background/IM05_002.png</pixmap>
</property>
</widget>
<zorder>Canvas08</zorder>
<zorder>Canvas07</zorder>
<zorder>Canvas06</zorder>
<zorder>Canvas05</zorder>
<zorder>Canvas04</zorder>
<zorder>Canvas03</zorder>
<zorder>Canvas02</zorder>
<zorder>Canvas01</zorder>
<zorder>Btn02</zorder>
<zorder>Btn01</zorder>
<zorder>Btn03</zorder>
<zorder>Btn04</zorder>
<zorder>Btn05</zorder>
<zorder>Btn06</zorder>
<zorder>Btn07</zorder>
<zorder>Btn08</zorder>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,708 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P06FaultQuery</class>
<widget class="QMainWindow" name="P06FaultQuery">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1076</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=6</string>
</property>
<property name="whatsThis">
<string/>
</property>
<widget class="QWidget" name="centralwidget">
<property name="statusTip">
<string/>
</property>
<widget class="QLabel" name="P06BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_FaultQuery.png</pixmap>
</property>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>640</x>
<y>310</y>
<width>641</width>
<height>581</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=2</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Btn_Pre">
<property name="geometry">
<rect>
<x>48</x>
<y>412</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=2,Action=CmdAlarmPrev, SelectImag=IM03_001.png, groupstart=3</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Btn_Next">
<property name="geometry">
<rect>
<x>267</x>
<y>412</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=3,Action=CmdAlarmNext, SelectImag=IM03_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="alarmTitle">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>75</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(160, 206, 226);</string>
</property>
<property name="text">
<string>..</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="alarmTime">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>35</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(160, 206, 226);</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="alarmMsg">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>120</x>
<y>118</y>
<width>491</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(255, 126, 21);</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="sys_menu_2">
<property name="geometry">
<rect>
<x>485</x>
<y>412</y>
<width>85</width>
<height>169</height>
</rect>
</property>
<property name="statusTip">
<string>Index=4, Action=SetPage1, SelectImag=IM03_001.png, groupend=3</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>650</x>
<y>485</y>
<width>671</width>
<height>291</height>
</rect>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;
background-color: rgba(255, 255, 255,0);</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_15">
<property name="geometry">
<rect>
<x>260</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUb, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_13">
<property name="geometry">
<rect>
<x>40</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUa, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_14">
<property name="geometry">
<rect>
<x>40</x>
<y>82</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIa, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_16">
<property name="geometry">
<rect>
<x>40</x>
<y>137</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_18">
<property name="geometry">
<rect>
<x>260</x>
<y>82</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIb, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_19">
<property name="geometry">
<rect>
<x>260</x>
<y>137</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIo, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_21">
<property name="geometry">
<rect>
<x>480</x>
<y>27</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmUc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_22">
<property name="geometry">
<rect>
<x>480</x>
<y>81</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmIc, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_23">
<property name="geometry">
<rect>
<x>480</x>
<y>137</y>
<width>81</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>AlarmRo, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>.</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>152</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage1,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>1</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>330</x>
<y>160</y>
<width>361</width>
<height>91</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border:none;
background-color: rgba(255, 255, 255,0);</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,897 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P07SystemSet</class>
<widget class="QMainWindow" name="P07SystemSet">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=7</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>91</x>
<y>187</y>
<width>450</width>
<height>874</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=14</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_28">
<property name="geometry">
<rect>
<x>270</x>
<y>84</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>PowerSelect, Action=Modify, Index=1, Alias=alias_powerselect, Caption=电源选择,Timeout=5000,SelectImag=P4_ParaSelect.png,groupstart=13</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_29">
<property name="geometry">
<rect>
<x>270</x>
<y>198</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Gas, Action=Modify, Index=2, Alias=alias_input, Caption=瓦斯触点,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_30">
<property name="geometry">
<rect>
<x>270</x>
<y>253</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>GasDelay, Action=Modify, Index=3, Format=%06.2f, Caption=瓦斯延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_31">
<property name="geometry">
<rect>
<x>270</x>
<y>308</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>GasConcentration, Action=Modify, Index=4, Format=%05.2f, Caption=瓦斯浓度, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_32">
<property name="geometry">
<rect>
<x>270</x>
<y>364</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>Fan, Action=Modify, Index=5, Alias=alias_input, Caption=风电触点,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_36">
<property name="geometry">
<rect>
<x>270</x>
<y>418</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>FanDelay, Action=Modify, Index=6, Format=%06.2f, Caption=风电延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_37">
<property name="geometry">
<rect>
<x>270</x>
<y>475</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>FarAndNearMode, Action=Modify, Index=7, Alias=alias_remote, Caption=远近控模式,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_38">
<property name="geometry">
<rect>
<x>270</x>
<y>530</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>MaintenanceMode, Action=Modify, Index=8, Alias=alias_bool, Caption=维修模式,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_39">
<property name="geometry">
<rect>
<x>270</x>
<y>585</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>CarAlarmDelay, Action=Modify, Index=9, Format=%05.1f, Caption=小车报警延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_40">
<property name="geometry">
<rect>
<x>270</x>
<y>640</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>OffVoltageDelay, Action=Modify, Index=10, Format=%06.1f, Caption=断电延时, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="BlankTimelineEdit">
<property name="geometry">
<rect>
<x>270</x>
<y>698</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>System=ScreenBlankingTime, Action=ModifySystem, Index=13,SelectImag=P4_ParaSelect.png, password</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_44">
<property name="geometry">
<rect>
<x>270</x>
<y>754</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>System=SystemPassWord, Action=ModifySystem, Index=14,SelectImag=P4_ParaSelect.png, password,groupend=13</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>****</string>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_42">
<property name="geometry">
<rect>
<x>270</x>
<y>138</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>PowerCalculation, Action=Modify, Index=1, Alias=alias_powercalculation, Caption=功率计算,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>545</x>
<y>186</y>
<width>450</width>
<height>874</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=15</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QLineEdit" name="lineEdit_26">
<property name="geometry">
<rect>
<x>270</x>
<y>85</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Address, Action=Modify, Index=1, Format=%03.0f, Caption=485地址, Timeout=5000,SelectImag=P4_ParaSelect.png, groupstart=5</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_27">
<property name="geometry">
<rect>
<x>270</x>
<y>145</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Baud, Action=Modify, Index=2, Alias=alias_baud, Caption=485波特率,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_33">
<property name="geometry">
<rect>
<x>270</x>
<y>200</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>485Parity, Action=Modify, Index=3, Alias=alias_parity, Caption=485校验,Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_34">
<property name="geometry">
<rect>
<x>270</x>
<y>255</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>CANAddress, Action=Modify, Index=4, Format=%03.0f, Caption=CAN地址, Timeout=5000,SelectImag=P4_ParaSelect.png</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_35">
<property name="geometry">
<rect>
<x>270</x>
<y>310</y>
<width>120</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="statusTip">
<string>CANBaud, Action=Modify, Index=5, Alias=alias_can_baud, Caption=CAN波特率,Timeout=5000,SelectImag=P4_ParaSelect.png, groupend=5</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 170, 127,0);
color: rgb(177, 229, 252);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>0</x>
<y>80</y>
<width>1920</width>
<height>970</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_P00_3">
<property name="geometry">
<rect>
<x>547</x>
<y>90</y>
<width>450</width>
<height>877</height>
</rect>
</property>
<property name="statusTip">
<string>groupend=2,Index=3, Action=SetMain15,SelectImag=IM04_00.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="geometry">
<rect>
<x>180</x>
<y>36</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="sys_P00_2">
<property name="geometry">
<rect>
<x>92</x>
<y>90</y>
<width>450</width>
<height>877</height>
</rect>
</property>
<property name="statusTip">
<string>groupstart=2,Index=2, Action=SetMain14,SelectImag=IM04_00.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>450</width>
<height>876</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>9</x>
<y>25</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>9</x>
<y>173</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage1,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<zorder>sys_P00_2</zorder>
<zorder>sys_P00_3</zorder>
<zorder>BindNum_Title</zorder>
<zorder>sys_home</zorder>
<zorder>sys_menu</zorder>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="P07BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_SystemSet.png</pixmap>
</property>
</widget>
<zorder>P07BG</zorder>
<zorder>groupBox_2</zorder>
<zorder>groupBox_sys_2</zorder>
<zorder>indicator_Label</zorder>
<zorder>groupBox</zorder>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,345 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>P08FieldTestAction</class>
<widget class="QMainWindow" name="P08FieldTestAction">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="statusTip">
<string>Page=08</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QLabel" name="P08BG">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>../GB_image/GB_FieldTestAction.png</pixmap>
</property>
</widget>
<widget class="QLineEdit" name="BindNum_Title">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>290</x>
<y>174</y>
<width>331</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string>当前设备</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys_2">
<property name="geometry">
<rect>
<x>600</x>
<y>280</y>
<width>691</width>
<height>511</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="Test01">
<property name="geometry">
<rect>
<x>47</x>
<y>200</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestShort,Index=2,Action=CmdExecute, SelectImag=SR_001.png, groupstart=4</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Test02">
<property name="geometry">
<rect>
<x>47</x>
<y>310</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestIsolation,Index=3,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="Reset">
<property name="geometry">
<rect>
<x>395</x>
<y>200</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>TestRecover,Index=4,Action=CmdExecute, SelectImag=SR_001.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>72</height>
</size>
</property>
</widget>
<widget class="QLineEdit" name="m03_AlarmMessage_0">
<property name="geometry">
<rect>
<x>360</x>
<y>80</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>黑体</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="statusTip">
<string>AlarmMessage,Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 238, 254,0);
color: rgb(207, 0, 13);</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="m01_SwitchStatus_0">
<property name="geometry">
<rect>
<x>80</x>
<y>40</y>
<width>245</width>
<height>111</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>SwitchStatus, ImageValue=SwitchStatus_%d.png, Timeout=5000</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QPushButton" name="quit">
<property name="geometry">
<rect>
<x>395</x>
<y>310</y>
<width>246</width>
<height>84</height>
</rect>
</property>
<property name="statusTip">
<string>Index=5, Action=SetPage11,SelectImag=SR_001.png, groupend=4</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
<widget class="QLabel" name="indicator_Label">
<property name="geometry">
<rect>
<x>1</x>
<y>412</y>
<width>88</width>
<height>636</height>
</rect>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="statusTip">
<string>ImageValue=IMxx_A_%d.png</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_sys">
<property name="geometry">
<rect>
<x>0</x>
<y>100</y>
<width>85</width>
<height>960</height>
</rect>
</property>
<property name="toolTip">
<string/>
</property>
<property name="statusTip">
<string>main=1</string>
</property>
<property name="styleSheet">
<string notr="true">border:none;</string>
</property>
<property name="title">
<string/>
</property>
<widget class="QPushButton" name="sys_menu">
<property name="geometry">
<rect>
<x>8</x>
<y>153</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=1, Action=SetPage11,SelectImag=IMxx_00E.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="sys_home">
<property name="geometry">
<rect>
<x>8</x>
<y>4</y>
<width>72</width>
<height>144</height>
</rect>
</property>
<property name="statusTip">
<string>Index=0, Action=SetPage0,SelectImag=IMxx_00F.png</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>72</width>
<height>144</height>
</size>
</property>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
import sys
sys_path = sys.path[0].replace("\\", "/")
sys_path_linux = sys_path + "/../.."
if sys_path_linux not in sys.path :
sys.path.append(sys_path_linux)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -0,0 +1,20 @@
{
"MicroPython.executeButton": [
{
"text": "▶",
"tooltip": "Run",
"alignment": "left",
"command": "extension.executeFile",
"priority": 3.5
}
],
"MicroPython.syncButton": [
{
"text": "$(sync)",
"tooltip": "sync",
"alignment": "left",
"command": "extension.execute",
"priority": 4
}
]
}

View File

@ -0,0 +1,788 @@
# This Python file uses the following encoding: utf-8
import sys
import time
from PyQt5.QtWidgets import QWidget, QLineEdit
from PyQt5.QtWidgets import QApplication, QMainWindow, QStackedWidget, QWidget, QLayout, QLabel, QLineEdit, QPushButton, QMessageBox, QShortcut, QDialog
from PyQt5 import uic
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QObject, QRunnable, QMutex, QTimer, QEvent
from PyQt5.QtGui import QImage, QPixmap, QColor, QKeySequence
from PyQt5.QtTest import QTest
from KeyWidget import KetWidget
from UIFrameWork import UIFrameWork
from UIFrameWork import *
from CameraThread import CameraThread
from PyQt5.QtWidgets import QApplication, QMainWindow, QStackedWidget
from PyQt5.QtWidgets import QDesktopWidget
sys.path.append(sys.path[0] + "/../..")
import menu_utils as utils
import uart_group_config as group_config
from mqtt_device import class_comm_mqtt_thread, class_comm_mqtt_interface
from print_color import *
from get_tip_prop import *
from PyQt5.QtWidgets import QPushButton
sys_path = sys.path[0].replace("\\", "/")
# 页面文件
uiFile_P00DeviceList = sys_path + "/P00DeviceList.ui"
uiFile_P01DeviceMenu = sys_path + "/P01DeviceMenu.ui"
uiFile_P02DataView = sys_path + "/P02DataView.ui"
uiFile_P03SwitchAction = sys_path + "/P03SwitchAction.ui"
uiFile_P04ParamSet = sys_path + "/P04ParamSet.ui"
uiFile_P05CameraView = sys_path + "/P05CameraView.ui"
uiFile_P06FaultQuery = sys_path + "/P06FaultQuery.ui"
uiFile_P07SystemSet = sys_path + "/P07SystemSet.ui"
uiFile_P08FieldTestAction = sys_path + "/P08FieldTestAction.ui"
uiFile_P11LightDeviceMenu = sys_path + "/P11LightDeviceMenu.ui"
uiFile_P12LightDataView = sys_path + "/P12LightDataView.ui"
uiFile_P13LightSwitchAction = sys_path + "/P13LightSwitchAction.ui"
uiFile_P14LightParamSet = sys_path + "/P14LightParamSet.ui"
uiFile_P16LightFaultQuery = sys_path + "/P16LightFaultQuery.ui"
uiFile_P17LightSystemSet = sys_path + "/P17LightSystemSet.ui"
uiFile_P18LightFieldTestAction = sys_path + "/P18LightFieldTestAction.ui"
COLOR_RED = QColor("#EE2D2D").name()
COLOR_GREEN = QColor(Qt.green).name()
COLOR_BLUE = QColor(Qt.blue).name()
COLOR_YELLOW = QColor(Qt.yellow).name()
COLOR_NORMAL = QColor("#000000").name()
COLOR_ALARM_NORMAL = QColor("#ECECEC").name()
COLOR_ALARM_ERROR_TEXT = QColor("#B1E5FC").name()
COLOR_ALARM_ERROR_BG = QColor("#E17176").name()
COLOR_VALUE_NORMAL_YELLOW = QColor("#F8C822").name()
COLOR_VALUE_NORMAL_BLUE = QColor("#4E76D4").name()
COLOR_VALUE_NORMAL_READ = QColor("#CE5D62").name()
COLOR_VALUE_NORMAL_GREEN = QColor("#83BF6E").name()
def get_camera_id_and_canvas_id(action : str) :
camera_id = -1
canvas_id = -1
if "canvas" in action and "camera" in action :
action_splits = action.split("_")
for action_split_str in action_splits:
if "camera" in action_split_str:
camera_id = get_value_from_lead_value_str(action_split_str, "camera", -1)
elif "canvas" in action_split_str:
canvas_id = get_value_from_lead_value_str(action_split_str, "canvas", -1)
return camera_id, canvas_id
#根据回路选择摄像头url地址
def search_camera_url(camera_id : int) :
cameral_url = None
for config_dict in group_config.comm_thread_config :
device_list = utils.dict_or_object_get_attr(config_dict, "device_list", None)
if device_list != None :
for item_dict in device_list :
config_camera_id = utils.dict_or_object_get_attr(item_dict, "circuit_id", -1)
if config_camera_id == camera_id :
cameral_url = utils.dict_or_object_get_attr(item_dict, "camera_url", None)
if cameral_url != None :
return cameral_url
return cameral_url
menu_page_widget_list = []
class PageTemplate(UIFrameWork): # 页面模板类,包含各子页面公用功能
def __init__(self, parent_window): #
UIFrameWork.__init__(self) #
self.parent_window : APPWindow = parent_window
def connect_matched_camera_canvas(self) :
page_widget : UIFrameWork = self.parent_window.stack.currentWidget()
if page_widget != None :
for canvas_id in range(9) :
camera_id , face_detect = page_widget.get_canvas_prop(canvas_id)
if camera_id >= 0 :
self.parent_window.connect_camera_to_canvas(page_widget, camera_id, canvas_id, face_detect)
def virtual_connect_canvas_to_camera(self, canvas_id : int, camera_id : int, is_visible : bool = True) :
if camera_id >= 0 and canvas_id >= 0 and canvas_id < len(self.parent_window.camera_thread_list) :
face_detect = 0
canvas_object = self.search_canvas_object(canvas_id)
if canvas_object != None :
face_detect = get_tip_face_detection(canvas_object.statusTip())
camera_thread : CameraThread = self.parent_window.camera_thread_list[camera_id]
if camera_thread != None :
if not camera_thread.is_emit and is_visible:
self.show_camera_error(camera_id)
if camera_thread.is_emit:
self.connect_camera_thread(camera_thread, canvas_id, is_visible)
self.parent_window.camera_signal.emit(camera_id)
camera_thread.face_detection = face_detect
if hasattr(self, "CameraChioceLabel") :
# self.CameraChioceLabel.setStyleSheet("color: rgb(255, 255, 255); font-size: 50px;")
self.CameraChioceLabel.setText("回路" + str(camera_id+1))
else:
self.show_camera_error(camera_id)
def show_camera_error(self, camera_id) :
inform_box : DialogInform = DialogInform()
inform_box.information("提示", f"视频流{camera_id+1}无法初始化或失去连接!")
#定义虚函数, 进入页面时调用
def virtual_on_page_enter(self) :
pass
#定义虚函数, 退出页面时调用
def virtual_on_page_leave(self) :
pass
#重载虚函数, 切换页面时调用
def virtual_change_to_page(self, page) :
if self.parent_window == None :
return
self_page_widget : PageTemplate = self.parent_window.stack.currentWidget()
if self_page_widget == None :
return
target_page_widget : PageTemplate = None
if page >= 0 :
target_page_widget = self.parent_window.search_page_widget(page)
if target_page_widget in menu_page_widget_list:
while len(menu_page_widget_list) > 0 :
pop_page_widget = menu_page_widget_list.pop()
if pop_page_widget == None or pop_page_widget == target_page_widget:
break
else :
while len(menu_page_widget_list) > 0 :
pop_page_widget = menu_page_widget_list.pop()
if pop_page_widget == self :
continue
else :
target_page_widget = pop_page_widget
break
if target_page_widget == None :
target_page_widget = self.parent_window.allpages_list[0]
if target_page_widget != None :
menu_page_widget_list.append(target_page_widget)
self_page_widget.virtual_on_page_leave()
self.parent_window.stack.setCurrentWidget(target_page_widget)
target_page_widget.virtual_on_page_enter()
self.connect_matched_camera_canvas()
def virtual_widget_action_process(self, widget : QWidget, action : str) :
action_splits = action.split("+")
page_id = -1
circuit_id = -1
main_index = -1
add_circuit = -1
binding_circuit = -1
for action_split_str in action_splits :
if "SetPage" in action_split_str :
page_id = get_value_from_lead_value_str(action_split_str, "SetPage", -1)
elif "SetCircuit" in action_split_str :
circuit_id = get_value_from_lead_value_str(action_split_str, "SetCircuit", -1)
elif "SetMain" in action_split_str:
main_index = get_value_from_lead_value_str(action_split_str, "SetMain", -1)
elif "AddCircuit" in action_split_str :
add_circuit = get_value_from_lead_value_str(action_split_str, "AddCircuit", -1)
elif "SetBinding" in action_split_str :
binding_circuit = get_value_from_lead_value_str(action_split_str, "SetBinding", 1)
print("<virtual_widget_action_process>@Line:",inspect.currentframe().f_lineno,'<circuit_id> = ',circuit_id,'<Action> = ',action_splits)
if add_circuit >= 0 :
tip_str : str = page_widget.statusTip()
circuit_id = get_tip_circuit(tip_str)
circuit_id = circuit_id + 1
if binding_circuit > 0 :
circuit_id = self.get_circuit_from_object(widget)
target_page_widget = self.parent_window.search_page_widget(page_id)
page_widget : PageTemplate = target_page_widget
if page_id >= 0 : # 功能标记:执行页面跳转功能
target_page_widget = self.parent_window.search_page_widget(page_id)
if target_page_widget != None :
if circuit_id >= 0 :
target_page_widget.set_page_circuit(circuit_id)
self.virtual_change_to_page(page_id)
if main_index >= 0 : # 功能标记:执行控件主索引设定
self.set_menu_main_index(main_index) # 设置页面主索引字段<main>,可以跨组选择控件
if circuit_id >= 0 :
indicator : QLineEdit = target_page_widget.findChild(QLineEdit,"BindNum_Title")
indicator.setText("当前回路为 %d"%(circuit_id + 1))
# 显示提示图标
indicator_Label : QLabel = target_page_widget.findChild(QLabel,"indicator_Label")
tip_str : str = indicator_Label.statusTip()
imag_file_name = get_imag_value_file_name(tip_str, circuit_id)
if imag_file_name != None :
self.modify_object_style_sheet(indicator_Label, "background-image", "url(%s)"%(imag_file_name))
else :
self.reset_object_style_sheet(indicator_Label)
camera_id, canvas_id = get_camera_id_and_canvas_id(action)
self.virtual_connect_canvas_to_camera(canvas_id, camera_id)
#P00设备列表页面
class QDeviceListPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P00DeviceList)
# 回路1测试开关合闸1总开关0无报警
json_dict0 = { "SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"0", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"无故障","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"1143", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"60", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"20", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"45321", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路2测试开关合闸1分开关1无报警
json_dict1 = { "SwitchStatus" : {"value" :"0", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"开关未到位","type" : "alarm","color" : COLOR_ALARM_ERROR_TEXT},
"Voltage" : {"value" :"1120", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"45", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"30", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"46321", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路3测试开关合闸1总开关0无报警
json_dict2 = { "SwitchStatus" : {"value" :"0", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"正常运行,无告警信息","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"1065", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"30", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"16", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"1321", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路4测试开关合闸1总开关0无报警
json_dict3 = { "SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"正常运行,无告警信息","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"1141", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"61", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"26", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"32321", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路5测试开关合闸1总开关0无报警
json_dict4 = { "SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"正常运行,无告警信息","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"2133", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"61", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"26", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"4453", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路6测试开关合闸1总开关0无报警
json_dict5 = { "SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"正常运行,无告警信息","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"1212", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"61", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"27", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"11212", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# 回路7测试开关合闸1总开关0无报警
json_dict6 = { "SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"SwitchType" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED},
"AlarmMessage" : {"value" :"正常运行,无告警信息","type" : "alarm", "color" : COLOR_ALARM_NORMAL},
"Voltage" : {"value" :"1564", "color" : COLOR_VALUE_NORMAL_YELLOW},
"Current" : {"value" :"61", "color" : COLOR_VALUE_NORMAL_READ},
"Power" : {"value" :"32", "color" : COLOR_VALUE_NORMAL_BLUE},
"Electricity" : {"value" :"45341", "color" : COLOR_VALUE_NORMAL_GREEN},
}
# self.flush_widgets(0, json_dict0)
# self.flush_widgets(1, json_dict1)
# self.flush_widgets(2, json_dict2)
# self.flush_widgets(3, json_dict3)
# # self.flush_widgets(4, json_dict4)
# # self.flush_widgets(5, json_dict5)
# # self.flush_widgets(6, json_dict6)
#P01设备列表页面
class QDeviceMenuPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P01DeviceMenu)
#P02数据查看页面
class QDataViewPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P02DataView)
json_dict0 = {"Uab" :"1111", "Ubc" : "1111", "Uca" : "1111", "Uo" : "11" , "Iab" : "1111", "Ibc" : "1111", "Ica" : "1111", "Io" : "1111"}
json_dict1 = {"Uab" :"2222", "Ubc" : "2222", "Uca" : "2222", "Uo" : "22" , "Iab" : "2222", "Ibc" : "2222", "Ica" : "2222", "Io" : "2222"}
json_dict2 = {"Uab" :"3333", "Ubc" : "3333", "Uca" : "3333", "Uo" : "33" , "Iab" : "3333", "Ibc" : "3333", "Ica" : "3333", "Io" : "3333"}
# self.flush_widgets(0, json_dict0)
# self.flush_widgets(1, json_dict1)
# self.flush_widgets(2, json_dict2)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
#P03开关操作页面
class QSwitchActionPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P03SwitchAction)
json_dict0 = {"SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED}}
json_dict1 = {"SwitchStatus" : {"value" :"0", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED}}
json_dict2 = {"SwitchStatus" : {"value" :"1", "bk_color" : COLOR_NORMAL, "color" : COLOR_RED}}
self.flush_widgets(0, json_dict0)
self.flush_widgets(1, json_dict1)
self.flush_widgets(2, json_dict2)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
#P04参数设置页面
class QParamSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P04ParamSet)
json_dict0 = {"Uab" :"1000", "Ubc" : "5", "Uca" : "50"}
json_dict1 = {"Uab" :"1111", "Ubc" : "111", "Uca" : "111"}
json_dict2 = {"Uab" :"2222", "Ubc" : "222", "Uca" : "222"}
self.flush_widgets(0, json_dict0)
self.flush_widgets(1, json_dict1)
self.flush_widgets(2, json_dict2)
#P05视频查看页面 QFaultQueryPage
class QCameraViewPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P05CameraView)
def virtual_on_page_enter(self) :
self.parent_window.camera_signal.emit(0)
#P06故障查询页面 QFaultQueryPage
class QFaultQueryPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P06FaultQuery)
self.alarm_index = 0
def virtual_on_page_enter(self) :
self.alarm_index = 0
self.query_alarm_index()
self.timer = QTimer()
self.timer.timeout.connect(self.query_alarm_index)
self.timer.start(4000)
def virtual_on_page_leave(self) :
self.alarm_index = 0
def query_alarm_index(self):
circuit_id = self.get_page_circuit()
unique_name = self.get_unique_name_from_circuit(circuit_id)
if unique_name != None :
publish_topic = "request/alarm/" + unique_name
publish_message = '{"index" : "%s"}'%(self.alarm_index)
self.mqtt_publish_and_wait_response(publish_topic, publish_message, object, 1000)
#action 处理虚函数, 只适用于故障查询页面
def virtual_widget_action_process(self, widget : QWidget, action : str) :
PageTemplate.virtual_widget_action_process(self, widget, action)
alarm_adjust = 0
if "CmdAlarmNext" in action :
alarm_adjust = 1
elif "CmdAlarmPrev" in action :
alarm_adjust = -1
if alarm_adjust != 0 :
self.alarm_index = self.alarm_index + alarm_adjust
if self.alarm_index < 0 :
self.alarm_index = 0
self.query_alarm_index()
#P07系统参数设置页面
class QSystemSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P07SystemSet)
#P08现场试验页面
class QFieldTestAction(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P08FieldTestAction)
# P11照明菜单选择
class QLightMenuPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P11LightDeviceMenu)
# P12照明运行数据页面
class QRunDataPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P12LightDataView)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
# P13照明开关操作页面
class QLightSwitchActionPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P13LightSwitchAction)
self.camera_str = "0"
def virtual_on_page_enter(self):
children = self.findChildren(QLabel)
for child in children:
if child.objectName() == "TestCameraView" :
status_str = child.statusTip()
get_circuit = self.get_circuit_from_object(child)
print(status_str, get_circuit)
new_status_str = status_str.replace(f"camera{self.camera_str}", f"camera{get_circuit}")
self.camera_str = get_circuit
self.parent_window.camera_signal.emit(int(get_circuit))
child.setStatusTip(new_status_str)
# P14照明参数设置页面
class QLightParamSetPage(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P14LightParamSet)
# P16照明故障查询
class QLightFaultQuery(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P16LightFaultQuery)
def virtual_on_page_enter(self) :
self.alarm_index = 0
self.query_alarm_index()
self.timer = QTimer()
self.timer.timeout.connect(self.query_alarm_index)
self.timer.start(4000)
def virtual_on_page_leave(self) :
self.alarm_index = 0
def query_alarm_index(self):
circuit_id = self.get_page_circuit()
unique_name = self.get_unique_name_from_circuit(circuit_id)
if unique_name != None :
publish_topic = "request/alarm/" + unique_name
publish_message = '{"index" : "%s"}'%(self.alarm_index)
self.mqtt_publish_and_wait_response(publish_topic, publish_message, object, 1000)
#action 处理虚函数, 只适用于故障查询页面
def virtual_widget_action_process(self, widget : QWidget, action : str) :
PageTemplate.virtual_widget_action_process(self, widget, action)
alarm_adjust = 0
if "CmdAlarmNext" in action :
alarm_adjust = 1
elif "CmdAlarmPrev" in action :
alarm_adjust = -1
if alarm_adjust != 0 :
self.alarm_index = self.alarm_index + alarm_adjust
if self.alarm_index < 0 :
self.alarm_index = 0
self.query_alarm_index()
# P17照明系统参数
class QLightSystemSet(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P17LightSystemSet)
# P18现场试验页面
class QLightFieldTestAction(PageTemplate):
def __init__(self, parent_window):
PageTemplate.__init__(self, parent_window)
self.load_window_ui(uiFile_P18LightFieldTestAction)
class APPWindow(QMainWindow):
camera_signal = pyqtSignal(int)
def __init__(self):
super().__init__()
# 获取屏幕分辨率
screen = QDesktopWidget().screenGeometry()
screen_width = screen.width()
screen_height = screen.height()
self.stack = QStackedWidget(self)
self.setGeometry(0, 0, screen_width, screen_height) # 设置窗口大小为屏幕分辨率
self.stack.setGeometry(0, 0, screen_width, screen_height) # 设置堆叠窗口大小为屏幕分辨率
#调试的时候用下面两行,全屏就注释
# self.setGeometry(0, 0, 1024, 768)
# self.stack.setGeometry(0, 0, 1024, 768)
# self.float_button1 = QPushButton("↑", self)
# self.float_button1.move(self.width() - 200, self.height() - 200)
# self.float_button1.setFixedSize(90, 90)
# self.float_button1.clicked.connect(self.focus_do_inscrease)
# self.float_button2 = QPushButton("↓", self)
# self.float_button2.move(self.width() - 200, self.height() - 100)
# self.float_button2.setFixedSize(90, 90)
# self.float_button2.clicked.connect(self.focus_do_decrease)
# self.float_button3 = QPushButton("enter", self)
# self.float_button3.move(self.width() - 100, self.height() - 200)
# self.float_button3.setFixedSize(90, 90)
# self.float_button3.clicked.connect(self.focus_do_action)
# self.float_button4 = QPushButton("esc", self)
# self.float_button4.move(self.width() - 100, self.height() - 100)
# self.float_button4.setFixedSize(90, 90)
# self.float_button4.clicked.connect(self.focus_do_escape)
# self.show_hide_button = QPushButton("show/hide", self)
# self.show_hide_button.move(self.width()-10, self.height() - 100)
# self.show_hide_button.setFixedSize(90, 90)
# self.show_hide_button.clicked.connect(self.focus_show_hide)
# self.kw = KetWidget(self)
# self.setLayout(QVBoxLayout())
# self.layout().addWidget(self.kw)
self.showFullScreen()
self.menu_sequence_list : PageTemplate = []
self.camera_thread_list : CameraThread = [None, None, None, None, None, None, None, None, None]
self.allpages_list : PageTemplate = []
self.P00_DeviceList : PageTemplate = QDeviceListPage(parent_window = self)
self.P01_DeviceMenu : PageTemplate = QDeviceMenuPage(parent_window = self)
self.P02_DataView : PageTemplate = QDataViewPage(parent_window = self)
self.P03_SwitchAction : PageTemplate = QSwitchActionPage(parent_window = self)
self.P04_ParamSet : PageTemplate = QParamSetPage(parent_window = self)
self.P05_CameraView : PageTemplate = QCameraViewPage(parent_window = self)
self.P06_FaultQuery : PageTemplate = QFaultQueryPage(parent_window = self)
self.P07_SystemSet : PageTemplate = QSystemSetPage(parent_window = self)
self.P08_FieldTestAction : PageTemplate = QFieldTestAction(parent_window = self)
self.P11_DeviceMenu : PageTemplate = QLightMenuPage(parent_window = self)
self.P12_DateView : PageTemplate = QRunDataPage(parent_window = self)
self.P13_SwitchAction : PageTemplate = QLightSwitchActionPage(parent_window = self)
self.P14_ParamSet : PageTemplate = QLightParamSetPage(parent_window = self)
self.P16_LightFaultQuery : PageTemplate = QLightFaultQuery(parent_window = self)
self.P17_LightSystemSet : PageTemplate = QLightSystemSet(parent_window = self)
self.P18_LightFieldTestAction : PageTemplate = QLightFieldTestAction(parent_window = self)
self.allpages_list.append(self.P00_DeviceList)
self.allpages_list.append(self.P01_DeviceMenu)
self.allpages_list.append(self.P02_DataView)
self.allpages_list.append(self.P03_SwitchAction)
self.allpages_list.append(self.P04_ParamSet)
self.allpages_list.append(self.P05_CameraView)
self.allpages_list.append(self.P06_FaultQuery)
self.allpages_list.append(self.P07_SystemSet)
self.allpages_list.append(self.P08_FieldTestAction)
self.allpages_list.append(self.P11_DeviceMenu)
self.allpages_list.append(self.P12_DateView)
self.allpages_list.append(self.P13_SwitchAction)
self.allpages_list.append(self.P14_ParamSet)
self.allpages_list.append(self.P16_LightFaultQuery)
self.allpages_list.append(self.P17_LightSystemSet)
self.allpages_list.append(self.P18_LightFieldTestAction)
self.stack.addWidget(self.P00_DeviceList)
self.stack.addWidget(self.P01_DeviceMenu)
self.stack.addWidget(self.P02_DataView)
self.stack.addWidget(self.P03_SwitchAction)
self.stack.addWidget(self.P04_ParamSet)
self.stack.addWidget(self.P05_CameraView)
self.stack.addWidget(self.P06_FaultQuery)
self.stack.addWidget(self.P07_SystemSet)
self.stack.addWidget(self.P08_FieldTestAction)
self.stack.addWidget(self.P11_DeviceMenu)
self.stack.addWidget(self.P12_DateView)
self.stack.addWidget(self.P13_SwitchAction)
self.stack.addWidget(self.P14_ParamSet)
self.stack.addWidget(self.P16_LightFaultQuery)
self.stack.addWidget(self.P17_LightSystemSet)
self.stack.addWidget(self.P18_LightFieldTestAction)
test_init = system_parameter()
set_screen_blanking_time(test_init.get_screen_blanking_time())
def search_page_widget(self, page) :
for list_item in self.allpages_list:
window_page : UIFrameWork = list_item
if window_page.page == page :
return window_page
return None
def connect_camera_to_canvas(self, page_widget : UIFrameWork, camera_id: int , canvas_id : int, face_detect : int = 0) :
if camera_id >= 0 and canvas_id >= 0 and canvas_id < len(self.camera_thread_list) :
camera_thread : CameraThread = self.camera_thread_list[camera_id]
if camera_thread != None :
page_widget.connect_camera_thread(camera_thread, canvas_id)
camera_thread.face_detection = face_detect
def create_all_camera_thread(self) :
for camera_id in range(len(self.camera_thread_list)) :
_camera_url = search_camera_url(camera_id)
if _camera_url != None :
camera_thread = CameraThread(_camera_url, camera_id)
camera_thread.set_video_cycle_ms(10)
self.camera_thread_list[camera_id] = camera_thread
self.camera_signal.connect(camera_thread.change_camera_url)
#摄像头与 界面进行绑定
for index in range(self.stack.count()) :
page_widget : UIFrameWork = self.stack.widget(index)
page_widget.connect_matched_camera_canvas()
time.sleep(0.1)
#开启多个摄像头线程
for camera_thread in self.camera_thread_list:
thread_to_start : CameraThread = camera_thread
if thread_to_start != None :
thread_to_start.start()
time.sleep(0.01)
# def focus_do_inscrease(self) :
# self.stack.currentWidget().key_decrease_parameter()
# def focus_do_decrease(self) :
# self.stack.currentWidget().key_increase_parameter()
# def focus_do_action(self) :
# self.stack.currentWidget().key_enter_process()
# def focus_do_escape(self) :
# self.stack.currentWidget().key_escape_process()
# def focus_show_hide(self) :
# if self.float_button1.isHidden() :
# self.float_button1.show()
# self.float_button2.show()
# self.float_button3.show()
# self.float_button4.show()
# else :
# self.float_button1.hide()
# self.float_button2.hide()
# self.float_button3.hide()
# self.float_button4.hide()
def get_page_currentwidget(self) :
return self.stack.currentWidget().sort_menu_list[self.stack.currentWidget().menu_key_index][1]
def closeEvent(self, event):
# 在这里处理关闭事件
# 例如,提示用户是否真的想要关闭
reply = QMessageBox.question(self, '确认', '确定要退出吗?',
QMessageBox.Yes | QMessageBox.No)
if reply == QMessageBox.Yes:
for camera_thread in self.camera_thread_list:
thread_to_stop : CameraThread = camera_thread
if thread_to_stop != None :
thread_to_stop.close()
for camera_thread in self.camera_thread_list:
thread_to_stop : CameraThread = camera_thread
if thread_to_stop != None :
thread_to_stop.wait()
event.accept() # 接受关闭事件
else:
event.ignore() # 忽略关闭事件
if __name__ == '__main__':
#创建mqtt线程
fvalue = float('06.00')
value = round(fvalue)
_user_name = utils.dict_or_object_get_attr(group_config.mqtt_server, "user_name", "admin")
_password = utils.dict_or_object_get_attr(group_config.mqtt_server, "password", "admin")
_server = utils.dict_or_object_get_attr(group_config.mqtt_server, "remote", "127.0.0.1")
_port = utils.dict_or_object_get_attr(group_config.mqtt_server, "port", 1883)
global_mqtt_thread = class_comm_mqtt_thread()
global_mqtt_thread.set_mqtt_server(server = _server, port = _port, keep_alive = 60, user_name=_user_name, password=_password)
app = QApplication([])
app_main_window = APPWindow()
app_main_window.show()
app_main_window.create_all_camera_thread()
for config_dict in group_config.comm_thread_config :
device_list = utils.dict_or_object_get_attr(config_dict, "device_list", None)
if device_list != None :
for item_dict in device_list :
circuit_id = utils.dict_or_object_get_attr(item_dict, "circuit_id", -1)
circuit_unique_name = utils.dict_or_object_get_attr(item_dict, "unique_name", None)
if circuit_unique_name != None :
global_mqtt_thread.add_unique_object(circuit_unique_name, app_main_window.allpages_list)
global_mqtt_thread.start()
app.exec_()
global_mqtt_thread.close()
global_mqtt_thread.join()
sys.exit(0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,163 @@
import sys
import cv2
import time
from PyQt5.QtCore import QThread, pyqtSignal, QObject
sys_path = sys.path[0].replace("\\", "/")
sys_path_linux = sys.path[0] + "/../.."
if sys_path_linux not in sys.path:
sys.path.append(sys_path_linux)
from print_color import *
DEFAULT_VIDEO_SLEEP_MS = 20
# 图像处理线程
class ImageProcessingThread(QThread):
processed_image_signal = pyqtSignal(object)
def __init__(self):
super().__init__()
def run(self):
while True:
# 在这里添加图像处理代码
# 这里暂时只是将图像传递给下一个线程
time.sleep(0.01)
self.processed_image_signal.emit(None)
# 摄像头采集线程
class CameraThread(QThread):
image_signal = pyqtSignal(object)
def __init__(self, camera_url, circuit_id: int = 0):
super().__init__()
self.camera_url = camera_url # 摄像头url地址, 整数 或者 字符串
self.face_detection: bool = False
if isinstance(camera_url, int):
self.camera_url_str = str(camera_url)
else:
self.camera_url_str = camera_url
self.cap: cv2.VideoCapture = None
self.running: bool = True
self.fps = 0
self.cycle_limit = DEFAULT_VIDEO_SLEEP_MS
self.cycle_ms = 0
self.circuit_id = circuit_id # 摄像头对应的回路, 组合开关每一个回路都有对应的摄像头
self.is_signal_connect = False
self.is_emit = False
self.set_video_cycle_ms(2000)
def signal_connect(self, slot_func):
self.image_signal.connect(slot_func)
self.is_signal_connect = True
def signal_disconnect(self):
# 判断信号是否已连接
if self.is_signal_connect:
self.image_signal.disconnect()
self.is_signal_connect = False
def set_video_cycle_ms(self, cycle_ms: int = 10):
if self.cycle_limit != cycle_ms:
if cycle_ms <= DEFAULT_VIDEO_SLEEP_MS:
self.cycle_limit = DEFAULT_VIDEO_SLEEP_MS
else:
self.cycle_limit = cycle_ms
# 新建函数,改变函数延时方法
def change_camera_url(self, camera_url: str):
if self.circuit_id == camera_url:
self.set_video_cycle_ms(DEFAULT_VIDEO_SLEEP_MS)
else:
self.set_video_cycle_ms(1000)
def close(self):
if self.cap == None: # 初始化一直未完成
self.terminate()
self.running = False
def run(self):
process_count = 0
fps_time = 0
while self.running == True:
inform_msg = "cameral init start, url = " + self.camera_url_str
print_inform_msg(inform_msg)
try:
if isinstance(self.camera_url, int):
# 在 Windows 平台下,使用默认的 cv2.VideoCapture 接口
self.cap = cv2.VideoCapture(self.camera_url, cv2.CAP_DSHOW)
else:
# 在 Linux 平台下,使用默认的 cv2.VideoCapture 接口
self.cap = cv2.VideoCapture(self.camera_url)
if self.cap != None:
inform_msg = "cameral Init Success, url = " + self.camera_url_str
self.is_emit = True
print_inform_msg(inform_msg)
else:
inform_msg = "cameral connection timeout, url = " + self.camera_url_str
print_inform_msg(inform_msg)
except Exception as e:
self.cap = None
inform_msg = "cameral camera Init Fail, url = " + self.camera_url_str
print_error_msg(inform_msg)
base_time = time.time()
while self.running and self.cap != None:
# 延时20ms
time.sleep(DEFAULT_VIDEO_SLEEP_MS / 1000)
if self.cycle_ms + DEFAULT_VIDEO_SLEEP_MS < self.cycle_limit:
self.cycle_ms += DEFAULT_VIDEO_SLEEP_MS
self.cap.grab() # 抛弃多余的帧,保持最新帧
continue
else:
self.cycle_ms = 0
try:
ret, frame = self.cap.read()
cur_time = time.time()
execution_time = cur_time - base_time
base_time = cur_time
process_count += 1
fps_time += execution_time
if fps_time >= 1:
self.fps = process_count
process_count = 0
fps_time = 0
if execution_time < 5:
image_object: QObject = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
self.image_signal.emit(image_object)
else: # 时间差大于5秒, 表示网络可能中断过, 退出并重新连接
err_message = "cameral read timeout, url = " + self.camera_url_str
print_error_msg(err_message)
break
except Exception as e:
err_message = "cameral read timeout, url = " + self.camera_url_str
self.is_emit = False
print_error_msg(err_message)
if self.running == True:
time.sleep(2)
break
print_inform_msg("cameral connection End")
time.sleep(0.01)
if self.cap != None:
self.cap.release()
self.cap = None

View File

@ -0,0 +1,60 @@
import sys
from PyQt5.QtWidgets import QApplication, QDialog, QLabel, QLineEdit, QWidget, QPushButton, QMessageBox, QComboBox, QDialogButtonBox, QShortcut
from PyQt5 import uic
from PyQt5.QtGui import QKeySequence
from PyQt5.QtCore import Qt, QEvent, QObject, QTimer
ui_file_path = sys.path[0] + "/DialogInform.ui"
class DialogInform(QDialog):
def __init__(self, parent=None):
super(DialogInform, self).__init__(parent)
# Load UI file
uic.loadUi(ui_file_path, self)
label :QLabel = self.label
label.setText("")
label.setWordWrap(True) # 允许文本自动换行
self.message_timer = QTimer()
self.message_timer.timeout.connect(self.close_dialog_timeout)
self.setWindowTitle("消息提示")
self.setWindowFlag(Qt.FramelessWindowHint)
button_box : QDialogButtonBox = self.buttonBox
button_box.button(QDialogButtonBox.Ok).setText('确定')
#定义4个快捷键, Key_Enter, Key_Escape经常被各类程序模块使用, 用Key_End, 与Key_Home来代替
QShortcut(QKeySequence(Qt.Key_PageDown), self, activated=self.key_enter_process)
QShortcut(QKeySequence(Qt.Key_PageUp), self, activated=self.key_escape_process)
QShortcut(QKeySequence(Qt.Key_End), self, activated=self.key_enter_process)
QShortcut(QKeySequence(Qt.Key_Home), self, activated=self.key_escape_process)
def information(self, title : str, message : str, timeout_ms : int = 2000) :
self.setWindowTitle(title)
label :QLabel = self.label
label.setText(message)
self.message_timer.start(timeout_ms)
self.exec()
def key_enter_process(self):
button_box : QDialogButtonBox = self.buttonBox
select_button = button_box.button(QDialogButtonBox.Ok)
if select_button:
select_button.click()
def key_escape_process(self):
button_box : QDialogButtonBox = self.buttonBox
select_button = button_box.button(QDialogButtonBox.Cancel)
if select_button:
select_button.click()
#消息超时
def close_dialog_timeout(self):
self.key_enter_process()
if __name__ == '__main__':
app = QApplication(sys.argv)
dialog = DialogInform()
dialog.exec()
sys.exit(0)

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