123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ui version="4.0">
- <class>CToolDialog</class>
- <widget class="QDialog" name="CToolDialog">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>900</width>
- <height>540</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>CToolDialog</string>
- </property>
- <property name="styleSheet">
- <string notr="true">#Tool_widget{border:1px solid rgb(61, 61, 61)}
- #Image_widget{border:1px solid rgb(61, 61, 61)}</string>
- </property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0">
- <widget class="QTabWidget" name="tabWidget">
- <property name="currentIndex">
- <number>0</number>
- </property>
- <widget class="QWidget" name="tab">
- <attribute name="title">
- <string>变量相关</string>
- </attribute>
- <widget class="QGroupBox" name="groupBox_2">
- <property name="geometry">
- <rect>
- <x>2</x>
- <y>10</y>
- <width>871</width>
- <height>81</height>
- </rect>
- </property>
- <property name="title">
- <string>连接参数</string>
- </property>
- <widget class="QPushButton" name="btn_Connect">
- <property name="geometry">
- <rect>
- <x>770</x>
- <y>30</y>
- <width>75</width>
- <height>23</height>
- </rect>
- </property>
- <property name="text">
- <string>连接</string>
- </property>
- </widget>
- <widget class="QStackedWidget" name="stackedWidget">
- <property name="geometry">
- <rect>
- <x>210</x>
- <y>10</y>
- <width>471</width>
- <height>51</height>
- </rect>
- </property>
- <property name="currentIndex">
- <number>1</number>
- </property>
- <widget class="QWidget" name="page_1"/>
- <widget class="QWidget" name="page_2">
- <widget class="QLabel" name="label_IP">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>50</x>
- <y>20</y>
- <width>41</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>IP:</string>
- </property>
- </widget>
- <widget class="QLineEdit" name="edit_IP">
- <property name="geometry">
- <rect>
- <x>90</x>
- <y>20</y>
- <width>151</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>192.168.1.1</string>
- </property>
- </widget>
- <widget class="QLineEdit" name="edit_Port">
- <property name="geometry">
- <rect>
- <x>332</x>
- <y>20</y>
- <width>61</width>
- <height>20</height>
- </rect>
- </property>
- </widget>
- <widget class="QLabel" name="label_Port">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>20</y>
- <width>41</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>Port:</string>
- </property>
- </widget>
- </widget>
- </widget>
- <widget class="QRadioButton" name="rbnModbusTCP">
- <property name="geometry">
- <rect>
- <x>30</x>
- <y>20</y>
- <width>89</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>RTU</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="rbnModbusRTU">
- <property name="geometry">
- <rect>
- <x>30</x>
- <y>50</y>
- <width>89</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>TCP</string>
- </property>
- </widget>
- </widget>
- <widget class="QTableWidget" name="tableWidget">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>100</y>
- <width>861</width>
- <height>341</height>
- </rect>
- </property>
- </widget>
- </widget>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QWidget" name="Tool_widget" native="true">
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>42</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <layout class="QGridLayout" name="gridLayout">
- <property name="leftMargin">
- <number>6</number>
- </property>
- <property name="topMargin">
- <number>6</number>
- </property>
- <property name="rightMargin">
- <number>6</number>
- </property>
- <property name="bottomMargin">
- <number>6</number>
- </property>
- <property name="horizontalSpacing">
- <number>20</number>
- </property>
- <item row="0" column="3" rowspan="2">
- <widget class="QPushButton" name="btnOK">
- <property name="minimumSize">
- <size>
- <width>80</width>
- <height>30</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="text">
- <string>确定</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2" rowspan="2">
- <widget class="QPushButton" name="btnExecute">
- <property name="minimumSize">
- <size>
- <width>80</width>
- <height>30</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="text">
- <string>执行</string>
- </property>
- </widget>
- </item>
- <item row="0" column="4" rowspan="2">
- <widget class="QPushButton" name="btnCancel">
- <property name="minimumSize">
- <size>
- <width>80</width>
- <height>30</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="text">
- <string>取消</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1" rowspan="2">
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>553</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_time">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="minimumSize">
- <size>
- <width>200</width>
- <height>0</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="text">
- <string>耗时: 0ms</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0">
- <widget class="QLabel" name="label_state">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>0</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="text">
- <string>状态: OK</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <resources/>
- <connections/>
- </ui>
|