Files
VX5_KRO_GearPump/MainWidget.ui
T
2026-06-22 08:51:10 +08:00

801 lines
27 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWidget</class>
<widget class="QWidget" name="MainWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>558</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>800</width>
<height>16777215</height>
</size>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="frame3">
<property name="styleSheet">
<string>background-color:#BCBFC4;</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="topMargin">
<number>7</number>
</property>
<property name="bottomMargin">
<number>7</number>
</property>
<item>
<widget class="QFrame" name="frame2">
<property name="maximumSize">
<size>
<width>800</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string>background-color:#6A7289;</string>
</property>
<property name="fixedHeight" stdset="0">
<number>30</number>
</property>
<layout class="QHBoxLayout" name="hlayout_topBtn">
<property name="contentsMargins" stdset="0">
<rect>
<x>10</x>
<y>10</y>
<width>0</width>
<height>0</height>
</rect>
</property>
<item>
<widget class="QPushButton" name="m_EditBtn">
<property name="styleSheet">
<string notr="true">QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;}</string>
</property>
<property name="text">
<string>编辑当前文件</string>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>40</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_AddBtn">
<property name="styleSheet">
<string notr="true">QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;}</string>
</property>
<property name="text">
<string>调入文件喷印</string>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>40</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_MainBtn">
<property name="styleSheet">
<string notr="true">QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;}</string>
</property>
<property name="text">
<string>主指令单</string>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>40</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_ManageBtn">
<property name="styleSheet">
<string notr="true">QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;}</string>
</property>
<property name="text">
<string>管理器</string>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>40</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_MsgBtn">
<property name="styleSheet">
<string notr="true">QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;}</string>
</property>
<property name="text">
<string>信息</string>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>40</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="styleSheet">
<string notr="true">QScrollBar::horizontal{
height: 8px;
}
QWidget{
border: 0px solid;
}
QScrollArea {
padding-bottom: 1px;
}
QScrollBar::handle:horizontal {
background-color: rgb(175, 175, 175);
border-radius:4px;
}
/* 完全删除上下箭头(sub-line 和 add-line) */
QScrollBar::sub-line:horizontal,
QScrollBar::add-line:horizontal {
height: 0px; /* 高度为0,看不见也点不到 */
subcontrol-position: top; /* 保留位置以避免布局偏移 */
}
QScrollBar::sub-line:horizontal { top: 0px; }
QScrollBar::add-line:horizontal { bottom: 0px; }</string>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="PrintTextDisplay" name="widgetPrintTextDisplay">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>780</width>
<height>177</height>
</rect>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>300</height>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="leftPanel" native="true">
<property name="minimumSize">
<size>
<width>520</width>
<height>0</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="2">
<widget class="QPushButton" name="m_StartBtn">
<property name="minimumSize">
<size>
<width>150</width>
<height>130</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>130</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>开始打印</string>
</property>
<property name="iconSize">
<size>
<width>130</width>
<height>130</height>
</size>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>130</height>
</size>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QFrame" name="sub2">
<property name="maximumSize">
<size>
<width>250</width>
<height>130</height>
</size>
</property>
<property name="styleSheet">
<string>background-color:#BBBBBD;border-radius:3px;</string>
</property>
<layout class="QVBoxLayout" name="vlayout_sub2">
<item>
<widget class="QLabel" name="sub2_lb1">
<property name="styleSheet">
<string>color:#000000;font-size:18px;</string>
</property>
<property name="text">
<string>速度 米/分</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="indent">
<number>-1</number>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="hlayout_lb1">
<item>
<widget class="QLabel" name="sub2_lb2">
<property name="styleSheet">
<string>color:#3CB371;font-size:18px;</string>
</property>
<property name="text">
<string>当前</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="sub2_lb3">
<property name="styleSheet">
<string>color:#E72F28;font-size:18px;</string>
</property>
<property name="text">
<string>最大</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="hlayout_lb2">
<item>
<widget class="QLabel" name="lb_curSpeed">
<property name="styleSheet">
<string>color:#3CB371;font-size:24px;</string>
</property>
<property name="text">
<string>0007.9</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="lb_maxSpeed">
<property name="styleSheet">
<string>color:#E72F28;font-size:24px;</string>
</property>
<property name="text">
<string>0020.3</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>8</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="2" column="2">
<widget class="QPushButton" name="m_StopBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>130</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>130</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>停止打印</string>
</property>
<property name="iconSize">
<size>
<width>130</width>
<height>130</height>
</size>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>130</width>
<height>130</height>
</size>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QFrame" name="sub3">
<property name="minimumSize">
<size>
<width>200</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>150</height>
</size>
</property>
<property name="styleSheet">
<string>background-color:#BBBBBD;border-radius:3px;</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="sub3_lb1">
<property name="styleSheet">
<string notr="true">color:#000000;font-size:18px;</string>
</property>
<property name="text">
<string>产品计数器</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="indent">
<number>-1</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelProductCnt">
<property name="font">
<font>
<pointsize>-1</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:#000000;font-size:28px;font-weight:bold;</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lb_counter">
<property name="text">
<string>达到数量后停止:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelTotalProductCnt">
<property name="styleSheet">
<string>color:#000000;font-size:28px;font-weight:bold;</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="m_CloseBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>130</height>
</size>
</property>
<property name="styleSheet">
<string>border:0px;</string>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/image/power.png</normaloff>:/image/power.png</iconset>
</property>
<property name="iconSize">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QFrame" name="fra_state">
<property name="maximumSize">
<size>
<width>180</width>
<height>140</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="1">
<item>
<widget class="QLabel" name="lb_generalState">
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lb_nozzleState">
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item alignment="Qt::AlignRight">
<widget class="QWidget" name="rightPanel" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0">
<property name="spacing">
<number>5</number>
</property>
<property name="leftMargin">
<number>1</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="m_RightBtn">
<property name="minimumSize">
<size>
<width>150</width>
<height>95</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/image/RePipeOpen.png</normaloff>:/image/RePipeOpen.png</iconset>
</property>
<property name="iconSize">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lb_RightBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>喷嘴开启</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="m_LeftBtn">
<property name="minimumSize">
<size>
<width>150</width>
<height>95</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/image/RePipeClose.png</normaloff>:/image/RePipeClose.png</iconset>
</property>
<property name="iconSize">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
<property name="fixedSize" stdset="0">
<size>
<width>70</width>
<height>70</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lb_LeftBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>喷嘴关闭</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>PrintTextDisplay</class>
<extends>QWidget</extends>
<header>PrintTextDisplay.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="image.qrc"/>
</resources>
<connections/>
</ui>