Files
CodeRepository/Apps/App_NetworkAssist/mainwindow.ui

746 lines
22 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>960</width>
<height>600</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>800</width>
<height>600</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle">
<string>Network Assist V1.00.02/20250108</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QWidget" name="centralWidget">
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="bottomMargin">
<number>9</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="m_groupBox_NetworkSettings">
<property name="minimumSize">
<size>
<width>200</width>
<height>250</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>250</height>
</size>
</property>
<property name="title">
<string>网络设置</string>
</property>
<widget class="QComboBox" name="m_comboBox_Protocal">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>150</width>
<height>22</height>
</rect>
</property>
<item>
<property name="text">
<string>UDP</string>
</property>
</item>
<item>
<property name="text">
<string>TCP Client</string>
</property>
</item>
<item>
<property name="text">
<string>TCP Server</string>
</property>
</item>
</widget>
<widget class="QLabel" name="m_label_Protocal">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>150</width>
<height>16</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>1协议类型</string>
</property>
</widget>
<widget class="QLabel" name="m_label_IP">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>150</width>
<height>16</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>2本地主机地址</string>
</property>
</widget>
<widget class="QComboBox" name="m_comboBox_IP">
<property name="geometry">
<rect>
<x>20</x>
<y>110</y>
<width>150</width>
<height>22</height>
</rect>
</property>
<item>
<property name="text">
<string>127.0.0.1</string>
</property>
</item>
<item>
<property name="text">
<string>0.0.0.0</string>
</property>
</item>
<item>
<property name="text">
<string>192.168.1.1</string>
</property>
</item>
</widget>
<widget class="QLabel" name="m_label_Port">
<property name="geometry">
<rect>
<x>20</x>
<y>150</y>
<width>150</width>
<height>16</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>3本地主机端口</string>
</property>
</widget>
<widget class="QLineEdit" name="m_lineEdit_Port">
<property name="geometry">
<rect>
<x>20</x>
<y>170</y>
<width>150</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>5000</string>
</property>
</widget>
<widget class="QPushButton" name="m_pushButton_OpenNetwork">
<property name="geometry">
<rect>
<x>45</x>
<y>200</y>
<width>100</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>打开</string>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="m_groupBox_RecvSettings">
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>100</height>
</size>
</property>
<property name="title">
<string>接收设置</string>
</property>
<widget class="QRadioButton" name="m_radioButton_RecvData_ASCII">
<property name="geometry">
<rect>
<x>10</x>
<y>35</y>
<width>71</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>ASCII</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" name="m_radioButton_RecvData_HEX">
<property name="geometry">
<rect>
<x>100</x>
<y>35</y>
<width>71</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>HEX</string>
</property>
</widget>
<widget class="QCheckBox" name="m_checkBox_RecvData_SaveData">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>保存数据</string>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="m_groupBox_OtherSettings">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="title">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="m_groupBox_SendSettings">
<property name="minimumSize">
<size>
<width>200</width>
<height>123</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>123</height>
</size>
</property>
<property name="title">
<string>发送设置</string>
</property>
<widget class="QRadioButton" name="m_radioButton_SendData_HEX">
<property name="geometry">
<rect>
<x>100</x>
<y>40</y>
<width>71</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>HEX</string>
</property>
</widget>
<widget class="QRadioButton" name="m_radioButton_SendData_ASCII">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>71</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>ASCII</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QCheckBox" name="m_checkBox_SendData_Period">
<property name="geometry">
<rect>
<x>10</x>
<y>75</y>
<width>90</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>循环周期</string>
</property>
</widget>
<widget class="QLineEdit" name="m_lineEdit_SendData_Period">
<property name="geometry">
<rect>
<x>100</x>
<y>75</y>
<width>50</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>1000</string>
</property>
</widget>
<widget class="QLabel" name="m_label_SendData_Period">
<property name="geometry">
<rect>
<x>155</x>
<y>75</y>
<width>30</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>ms</string>
</property>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="m_label_MsgData">
<property name="minimumSize">
<size>
<width>80</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="frameShape">
<enum>QFrame::Shape::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="text">
<string>数据日志</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QListView" name="m_listView_MsgData">
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::SizeAdjustPolicy::AdjustToContents</enum>
</property>
<property name="autoScroll">
<bool>true</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SelectionMode::ContiguousSelection</enum>
</property>
<property name="flow">
<enum>QListView::Flow::TopToBottom</enum>
</property>
<property name="isWrapping" stdset="0">
<bool>false</bool>
</property>
<property name="resizeMode">
<enum>QListView::ResizeMode::Adjust</enum>
</property>
<property name="layoutMode">
<enum>QListView::LayoutMode::SinglePass</enum>
</property>
<property name="spacing">
<number>1</number>
</property>
<property name="viewMode">
<enum>QListView::ViewMode::ListMode</enum>
</property>
<property name="batchSize">
<number>2</number>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="selectionRectVisible">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="m_label_SendData">
<property name="minimumSize">
<size>
<width>80</width>
<height>27</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="frameShape">
<enum>QFrame::Shape::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="text">
<string>数据发送</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="m_horizontalLayout_SendEndpoint">
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="m_label_SendEndpointTips">
<property name="minimumSize">
<size>
<width>90</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>客户端:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="m_comboBox_SendEndpointList">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>220</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_pushButton_SendEndpoint">
<property name="minimumSize">
<size>
<width>75</width>
<height>28</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>← 断开</string>
</property>
</widget>
</item>
<item>
<spacer name="m_horizontalSpacer_SendEndpoint">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="m_pushButton_ClearSendData">
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>↓ 清除</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_pushButton_ClearRecvData">
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>↑ 清除</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="m_groupBox_SendData">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>100</height>
</size>
</property>
<property name="title">
<string/>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QTextEdit" name="m_textEdit_SendData"/>
</item>
<item>
<widget class="QPushButton" name="m_pushButton_SendData">
<property name="minimumSize">
<size>
<width>75</width>
<height>75</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>75</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>发 送</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>