1328 lines
40 KiB
XML
1328 lines
40 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>frmPlcCommunicateClass</class>
|
|
<widget class="QDialog" name="frmPlcCommunicateClass">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>720</width>
|
|
<height>500</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>720</width>
|
|
<height>500</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>720</width>
|
|
<height>500</height>
|
|
</size>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>PLC通信</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(220, 220, 220);</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>1</number>
|
|
</property>
|
|
<item row="2" column="0">
|
|
<spacer name="verticalSpacer_4">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>5</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="3" column="0" colspan="2">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>10</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>83</width>
|
|
<height>25</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(255, 255, 255, 0);</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>单元描述:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="txtDescribe">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>357</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_8">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnExecute">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>90</width>
|
|
<height>37</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgb(85, 135, 127);}
|
|
QWidget{ color: rgb(235, 235, 235);}
|
|
QWidget{ border: 2px groove gray;border-radius: 8px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgb(85, 155, 127);}
|
|
QPushButton:pressed{background-color: rgb(85, 175, 127);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>执行</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>6</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>42</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: #bcc2bc;</string>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="tab">
|
|
<attribute name="title">
|
|
<string>基本设置</string>
|
|
</attribute>
|
|
<widget class="QGroupBox" name="groupC">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>12</x>
|
|
<y>16</y>
|
|
<width>690</width>
|
|
<height>69</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dfd5cf, stop: 0.15 #acbbac, stop: 0.85 #acbbac,stop:1 #dfd5cf);
|
|
color: rgb(85, 0, 255);</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>通讯对象</string>
|
|
</property>
|
|
<widget class="QLabel" name="lblMsg">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>268</x>
|
|
<y>37</y>
|
|
<width>299</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">color: rgb(85, 85, 127);
|
|
background-color: rgba(0, 0, 0, 0);</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_8">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>23</x>
|
|
<y>36</y>
|
|
<width>83</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">color: rgb(30, 30, 30);
|
|
background-color: rgba(0, 0, 0, 0);</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>通讯名称:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboCommName">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>106</x>
|
|
<y>31</y>
|
|
<width>233</width>
|
|
<height>29</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QComboBox {
|
|
border: 1px solid gray;
|
|
border-radius: 2px;
|
|
color: rgb(0, 0, 200);
|
|
background-color: rgba(170, 170, 127,100);
|
|
}
|
|
QComboBox::drop-down {
|
|
subcontrol-origin: padding;
|
|
subcontrol-position: top right;
|
|
width: 15px;
|
|
border-left-width: 1px;
|
|
border-left-color: darkgray;
|
|
border-left-style: solid;
|
|
border-top-right-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
|
|
QComboBox::down-arrow {
|
|
image: url(:/resource/down.png);
|
|
}
|
|
QComboBox::down-arrow:on {
|
|
top: 1px;
|
|
left: 1px;
|
|
}</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnUpdata">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>352</x>
|
|
<y>31</y>
|
|
<width>85</width>
|
|
<height>30</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgba(9, 42, 47, 200);}
|
|
QWidget{ color: rgb(235, 235, 235);}
|
|
QWidget{ border: 2px groove gray;border-radius: 5px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgb(9, 62, 52);}
|
|
QPushButton:pressed{background-color: rgb(9, 82, 72);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>更新列表</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QStackedWidget" name="stackedWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>12</x>
|
|
<y>102</y>
|
|
<width>690</width>
|
|
<height>307</height>
|
|
</rect>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="page">
|
|
<widget class="QGroupBox" name="groupC2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>690</width>
|
|
<height>250</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dfd5cf, stop: 0.15 #acbbac, stop: 0.85 #acbbac,stop:1 #dfd5cf);
|
|
color: rgb(85, 0, 255);</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>链接对象</string>
|
|
</property>
|
|
<widget class="QWidget" name="horizontalLayoutWidget_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>38</y>
|
|
<width>669</width>
|
|
<height>203</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<property name="spacing">
|
|
<number>3</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QFrame" name="frame_3">
|
|
<property name="styleSheet">
|
|
<string notr="true">border: 1px solid;
|
|
border-color: rgba(173, 173, 173, 155);</string>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::StyledPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<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="QTableWidget" name="tableWidgetPlc">
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QTableWidget
|
|
{
|
|
background-color: #b7c7af;
|
|
border:none;
|
|
gridline-color: rgba(20, 25, 155,50);
|
|
color: rgba(20, 20, 20,200);
|
|
}
|
|
QTableWidget::item::selected
|
|
{
|
|
background-color: rgba(180, 180, 215,255);
|
|
}
|
|
QHeaderView::section
|
|
{
|
|
color: rgb(0, 0, 0);
|
|
}
|
|
QScrollBar:vertical{
|
|
background:#FFFFF2;
|
|
padding-top:20px;
|
|
padding-bottom:20px;
|
|
padding-left:2px;
|
|
padding-right:2px;
|
|
border-left:1px solid #d7d7d7;}
|
|
QScrollBar::handle:vertical{
|
|
background:#dbdbdb;
|
|
border-radius:6px;
|
|
min-height:20px;}
|
|
QScrollBar::handle:vertical:hover{
|
|
background:#d0d0d0;}
|
|
QScrollBar::add-line:vertical{
|
|
background:url(:/resource/down.png) center no-repeat;}
|
|
QScrollBar::sub-line:vertical{
|
|
background:url(:/resource/up.png) center no-repeat;}
|
|
QScrollBar:horizontal{
|
|
background:#FFFFF2;
|
|
padding-top:20px;
|
|
padding-bottom:20px;
|
|
padding-left:2px;
|
|
padding-right:2px;
|
|
border-left:1px solid #d7d7d7;}
|
|
QScrollBar::handle:horizontal{
|
|
background:#dbdbdb;
|
|
border-radius:6px;
|
|
min-height:20px;}
|
|
QScrollBar::handle:horizontal:hover{
|
|
background:#d0d0d0;}
|
|
QScrollBar::add-line:horizontal{
|
|
background:url(:/resource/right.png) center no-repeat;}
|
|
QScrollBar::sub-line:horizontal{
|
|
background:url(:/resource/left.png) center no-repeat;}</string>
|
|
</property>
|
|
<property name="verticalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAsNeeded</enum>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAsNeeded</enum>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::DashLine</enum>
|
|
</property>
|
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
|
<number>29</number>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
|
<number>597</number>
|
|
</attribute>
|
|
<attribute name="verticalHeaderDefaultSectionSize">
|
|
<number>30</number>
|
|
</attribute>
|
|
<column>
|
|
<property name="text">
|
|
<string>PLC寄存器链接地址</string>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
</font>
|
|
</property>
|
|
</column>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QFrame" name="frame_4">
|
|
<property name="styleSheet">
|
|
<string notr="true">border: 1px solid;
|
|
border-color: rgba(173, 173, 173, 155);
|
|
background-color: #b7c7a7;</string>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::StyledPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<property name="spacing">
|
|
<number>13</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>1</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QPushButton" name="btnAddRegister">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgba(9, 42, 47, 200);}
|
|
QWidget{ color: rgb(235, 235, 235);}
|
|
QWidget{ border: 2px groove gray;border-radius: 5px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgb(9, 62, 52);}
|
|
QPushButton:pressed{background-color: rgb(9, 82, 72);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>添加</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnDeleteRegister">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgba(97, 63, 56, 200);}
|
|
QWidget{ color: rgb(235, 235, 235);}
|
|
QWidget{ border: 2px groove gray;border-radius: 5px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgb(97, 83, 76);}
|
|
QPushButton:pressed{background-color: rgb(117, 83, 96);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>删除</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_5">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QWidget" name="page_2">
|
|
<widget class="QGroupBox" name="groupC3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>690</width>
|
|
<height>250</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dfd5cf, stop: 0.15 #acbbac, stop: 0.85 #acbbac,stop:1 #dfd5cf);
|
|
color: rgb(85, 0, 255);</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>三菱PLC设置</string>
|
|
</property>
|
|
<widget class="QLabel" name="label_14">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>21</x>
|
|
<y>148</y>
|
|
<width>115</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);
|
|
color: rgb(0, 0, 0);
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>寄存器写入值:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLineEdit" name="txtMitRegisterData">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>141</x>
|
|
<y>144</y>
|
|
<width>210</width>
|
|
<height>27</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>全局变量Int类型</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">color: rgb(0, 0, 200);
|
|
background-color: rgba(170, 170, 127,50);</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
<property name="readOnly">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnLinkMitRegisterData">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>358</x>
|
|
<y>144</y>
|
|
<width>27</width>
|
|
<height>27</height>
|
|
</rect>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>链接内容</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ border:none;border-radius: 8px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgba(85, 150, 127, 100);}
|
|
QPushButton:pressed{background-color: rgba(85, 180, 127, 160);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="sub_res.qrc">
|
|
<normaloff>:/resource/link.png</normaloff>:/resource/link.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>27</width>
|
|
<height>27</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnDelLinkMitRegisterData">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>392</x>
|
|
<y>144</y>
|
|
<width>27</width>
|
|
<height>27</height>
|
|
</rect>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>删除内容链接</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ border:none;border-radius: 8px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgba(226, 142, 162, 100);}
|
|
QPushButton:pressed{background-color: rgba(226, 172, 162, 200);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="sub_res.qrc">
|
|
<normaloff>:/resource/del_link.png</normaloff>:/resource/del_link.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>27</width>
|
|
<height>27</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnMitBack">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>598</x>
|
|
<y>206</y>
|
|
<width>70</width>
|
|
<height>35</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>70</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
<weight>75</weight>
|
|
<italic>false</italic>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgba(225, 255, 127,100);}
|
|
QWidget{ color: rgb(55, 55, 55);}
|
|
QWidget{ border: 2px groove gray;border-radius: 5px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgba(225, 255, 127,150);}
|
|
QPushButton:pressed{background-color: rgba(225, 255, 127,255);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>上一页</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>539</x>
|
|
<y>144</y>
|
|
<width>48</width>
|
|
<height>32</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background: transparent;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="pixmap">
|
|
<pixmap resource="../../ImageProcess/ImageView/sub_res.qrc">:/resource/right_2.png</pixmap>
|
|
</property>
|
|
<property name="scaledContents">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnMitSave">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>598</x>
|
|
<y>144</y>
|
|
<width>70</width>
|
|
<height>35</height>
|
|
</rect>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>70</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>9</pointsize>
|
|
<weight>50</weight>
|
|
<italic>false</italic>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{ background-color: rgba(125, 255, 127,150);}
|
|
QWidget{ color: rgb(35, 35, 35);}
|
|
QWidget{ border: 2px groove gray;border-radius: 5px;padding: 2px 4px;}
|
|
QPushButton:hover{ background-color: rgba(125, 255, 127,200);}
|
|
QPushButton:pressed{background-color: rgba(125, 255, 127,255);}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>参数保存</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="lbl_mit">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>23</x>
|
|
<y>42</y>
|
|
<width>119</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);
|
|
color: rgb(0, 0, 0);
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>通信数据代码:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboMitCode">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>141</x>
|
|
<y>37</y>
|
|
<width>100</width>
|
|
<height>30</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QComboBox {
|
|
border: 1px solid gray;
|
|
border-radius: 3px;
|
|
color: rgb(0, 0, 200);
|
|
background-color: rgba(230, 230, 230,210);
|
|
}
|
|
QComboBox::drop-down {
|
|
subcontrol-origin: padding;
|
|
subcontrol-position: top right;
|
|
width: 15px;
|
|
border-left-width: 1px;
|
|
border-left-color: darkgray;
|
|
border-left-style: solid;
|
|
border-top-right-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
QComboBox::down-arrow {
|
|
image: url(:/resource/down.png);
|
|
}
|
|
QComboBox::down-arrow:on {
|
|
top: 1px;
|
|
left: 1px;
|
|
}</string>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>二进制码</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>ASCII码</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
<widget class="QWidget" name="horizontalLayoutWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>448</x>
|
|
<y>38</y>
|
|
<width>219</width>
|
|
<height>29</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<property name="leftMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_12">
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background: transparent;
|
|
color: rgb(0, 0, 0);
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>通信模式:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioMitRead">
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background: transparent;
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>读</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioMitWrite">
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background: transparent;
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>写</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QLineEdit" name="txtMitRegisterAddress">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>548</x>
|
|
<y>91</y>
|
|
<width>118</width>
|
|
<height>27</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>eg: D0</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">color: rgb(0, 0, 200);
|
|
background-color: rgba(230, 230, 235,250);</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
<property name="readOnly">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_15">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>448</x>
|
|
<y>95</y>
|
|
<width>97</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);
|
|
color: rgb(0, 0, 0);
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>寄存器地址:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="lbl_mit_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>23</x>
|
|
<y>95</y>
|
|
<width>119</width>
|
|
<height>19</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgba(0, 0, 0, 0);
|
|
color: rgb(0, 0, 0);
|
|
border:none;</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>通信访问方式:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="comboMitMethod">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>141</x>
|
|
<y>90</y>
|
|
<width>100</width>
|
|
<height>30</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QComboBox {
|
|
border: 1px solid gray;
|
|
border-radius: 3px;
|
|
color: rgb(0, 0, 200);
|
|
background-color: rgba(230, 230, 230,210);
|
|
}
|
|
QComboBox::drop-down {
|
|
subcontrol-origin: padding;
|
|
subcontrol-position: top right;
|
|
width: 15px;
|
|
border-left-width: 1px;
|
|
border-left-color: darkgray;
|
|
border-left-style: solid;
|
|
border-top-right-radius: 3px;
|
|
border-bottom-right-radius: 3px;
|
|
}
|
|
QComboBox::down-arrow {
|
|
image: url(:/resource/down.png);
|
|
}
|
|
QComboBox::down-arrow:on {
|
|
top: 1px;
|
|
left: 1px;
|
|
}</string>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>字</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>双字</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QWidget" name="tab_2">
|
|
<attribute name="title">
|
|
<string>输出显示</string>
|
|
</attribute>
|
|
<widget class="QGroupBox" name="groupC3_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>9</x>
|
|
<y>14</y>
|
|
<width>695</width>
|
|
<height>348</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
<pointsize>10</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dfd5cf, stop: 0.15 #acbbac, stop: 0.85 #acbbac,stop:1 #dfd5cf);
|
|
color: rgb(85, 0, 255);</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>输出数据</string>
|
|
</property>
|
|
<widget class="QTextEdit" name="txtMsg">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>4</x>
|
|
<y>32</y>
|
|
<width>687</width>
|
|
<height>313</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>微软雅黑</family>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QTextEdit
|
|
{
|
|
background-color: rgba(180, 180, 215,120);
|
|
gridline-color: rgba(220, 220, 255,255);
|
|
color: rgba(20, 20, 20,200);
|
|
}
|
|
QScrollBar:vertical{
|
|
background:#FFFFF2;
|
|
padding-top:20px;
|
|
padding-bottom:20px;
|
|
padding-left:2px;
|
|
padding-right:2px;
|
|
border-left:1px solid #d7d7d7;}
|
|
QScrollBar::handle:vertical{
|
|
background:#dbdbdb;
|
|
border-radius:6px;
|
|
min-height:20px;}
|
|
QScrollBar::handle:vertical:hover{
|
|
background:#d0d0d0;}
|
|
QScrollBar::add-line:vertical{
|
|
background:url(:/resource/down.png) center no-repeat;}
|
|
QScrollBar::sub-line:vertical{
|
|
background:url(:/resource/up.png) center no-repeat;}
|
|
QScrollBar:horizontal{
|
|
background:#FFFFF2;
|
|
padding-top:20px;
|
|
padding-bottom:20px;
|
|
padding-left:2px;
|
|
padding-right:2px;
|
|
border-left:1px solid #d7d7d7;}
|
|
QScrollBar::handle:horizontal{
|
|
background:#dbdbdb;
|
|
border-radius:6px;
|
|
min-height:20px;}
|
|
QScrollBar::handle:horizontal:hover{
|
|
background:#d0d0d0;}
|
|
QScrollBar::add-line:horizontal{
|
|
background:url(:/resource/right.png) center no-repeat;}
|
|
QScrollBar::sub-line:horizontal{
|
|
background:url(:/resource/left.png) center no-repeat;}</string>
|
|
</property>
|
|
<property name="readOnly">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<resources>
|
|
<include location="sub_res.qrc"/>
|
|
<include location="../../ImageProcess/ImageView/sub_res.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|