mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
283 lines
11 KiB
XML
283 lines
11 KiB
XML
<?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>542</width>
|
||
<height>324</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>MainWindow</string>
|
||
</property>
|
||
<widget class="QWidget" name="centralWidget">
|
||
<layout class="QGridLayout" name="gridLayout">
|
||
<item row="1" column="1">
|
||
<spacer name="horizontalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>355</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="1" column="2">
|
||
<widget class="QPushButton" name="pushButton">
|
||
<property name="text">
|
||
<string>Next</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="3">
|
||
<widget class="QPushButton" name="pushButton_3">
|
||
<property name="text">
|
||
<string>Generate</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="0" colspan="4">
|
||
<widget class="QTabWidget" name="tabWidget">
|
||
<property name="currentIndex">
|
||
<number>0</number>
|
||
</property>
|
||
<widget class="QWidget" name="tab">
|
||
<attribute name="title">
|
||
<string>Message</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_2">
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label">
|
||
<property name="text">
|
||
<string>Name:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="lineEdit">
|
||
<property name="text">
|
||
<string>QQtUser</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_2">
|
||
<property name="text">
|
||
<string>Generate</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1" colspan="2">
|
||
<spacer name="horizontalSpacer_2">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>427</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item row="1" column="0" colspan="3">
|
||
<widget class="QTextBrowser" name="textBrowser"/>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab_2">
|
||
<attribute name="title">
|
||
<string>Protocol</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_5">
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label_4">
|
||
<property name="text">
|
||
<string>Name:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_4">
|
||
<property name="text">
|
||
<string>QQtUser</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QTextBrowser" name="textBrowser_4"/>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_6">
|
||
<property name="text">
|
||
<string>Generate</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<spacer name="horizontalSpacer_5">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>427</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab_3">
|
||
<attribute name="title">
|
||
<string>Client</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_4">
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label_3">
|
||
<property name="text">
|
||
<string>Name:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_3">
|
||
<property name="text">
|
||
<string>QQtUser</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QTextBrowser" name="textBrowser_3"/>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_5">
|
||
<property name="text">
|
||
<string>Generate</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<spacer name="horizontalSpacer_4">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>427</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab_4">
|
||
<attribute name="title">
|
||
<string>Server</string>
|
||
</attribute>
|
||
<layout class="QGridLayout" name="gridLayout_3">
|
||
<item row="0" column="0">
|
||
<widget class="QLabel" name="label_2">
|
||
<property name="text">
|
||
<string>Name:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="0" column="1">
|
||
<widget class="QLineEdit" name="lineEdit_2">
|
||
<property name="text">
|
||
<string>QQtUser</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0" colspan="2">
|
||
<widget class="QTextBrowser" name="textBrowser_2"/>
|
||
</item>
|
||
<item row="2" column="0">
|
||
<widget class="QPushButton" name="pushButton_4">
|
||
<property name="text">
|
||
<string>Generate</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="1">
|
||
<spacer name="horizontalSpacer_3">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>427</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QWidget" name="tab_5">
|
||
<attribute name="title">
|
||
<string>Readme</string>
|
||
</attribute>
|
||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||
<item>
|
||
<widget class="QTextBrowser" name="textBrowser_5">
|
||
<property name="html">
|
||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||
p, li { white-space: pre-wrap; }
|
||
</style></head><body style=" font-family:'SimSun'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Message</span></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">这个是报文的格式,很多协议会使用相同的报文格式。</span></p>
|
||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Protocol</span></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">这是命令集合、功能集合、send、recvXXXMessage全在这里。基本上所有的通信功能在这里实现。注意:客户端和服务端的协议分开的实现。</span></p>
|
||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Client</span></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">这是通信句柄。客户使用这里的protocol句柄进行通信。</span></p>
|
||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Server</span></p>
|
||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">这是通信句柄。客户使用这里的protocolManager句柄进行某些必要通信。这里的server句柄提供客户端列表。</span></p>
|
||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p></body></html></string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<widget class="QMenuBar" name="menuBar">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>542</width>
|
||
<height>17</height>
|
||
</rect>
|
||
</property>
|
||
</widget>
|
||
<widget class="QToolBar" name="mainToolBar">
|
||
<attribute name="toolBarArea">
|
||
<enum>TopToolBarArea</enum>
|
||
</attribute>
|
||
<attribute name="toolBarBreak">
|
||
<bool>false</bool>
|
||
</attribute>
|
||
</widget>
|
||
<widget class="QStatusBar" name="statusBar"/>
|
||
</widget>
|
||
<layoutdefault spacing="6" margin="11"/>
|
||
<resources/>
|
||
<connections/>
|
||
</ui>
|