CmvrControlStation/ui/rpcservicewidget.ui

14 lines
5.3 KiB
Plaintext
Raw Permalink Normal View History

2026-09-18 16:22:20 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RpcServiceWidget</class>
<widget class="QWidget" name="RpcServiceWidget">
<layout class="QVBoxLayout" name="rootLayout">
<property name="spacing"><number>14</number></property>
<property name="leftMargin"><number>24</number></property><property name="topMargin"><number>22</number></property><property name="rightMargin"><number>24</number></property><property name="bottomMargin"><number>24</number></property>
<item><widget class="QFrame" name="headerPanel"><property name="objectName"><string>panel</string></property><layout class="QVBoxLayout" name="headerLayout"><property name="leftMargin"><number>18</number></property><property name="topMargin"><number>14</number></property><property name="rightMargin"><number>18</number></property><property name="bottomMargin"><number>14</number></property><item><layout class="QHBoxLayout" name="titleRow"><item><widget class="QLabel" name="serviceNameLabel"><property name="text"><string>Service</string></property><property name="objectName"><string>sectionTitle</string></property></widget></item><item><spacer name="titleSpacer"><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="QLabel" name="servicePathLabel"><property name="text"><string>cmvr.api.Service</string></property><property name="objectName"><string>panelSubtitle</string></property></widget></item></layout></item><item><layout class="QGridLayout" name="methodGrid"><property name="horizontalSpacing"><number>8</number></property><property name="verticalSpacing"><number>8</number></property><item row="0" column="0"><widget class="QLabel" name="methodLabel"><property name="text"><string>RPC 方法</string></property><property name="objectName"><string>eyebrow</string></property></widget></item><item row="0" column="1"><widget class="QLabel" name="deviceLabel"><property name="text"><string>设备 ID</string></property><property name="objectName"><string>eyebrow</string></property></widget></item><item row="1" column="0"><widget class="QComboBox" name="methodCombo"/></item><item row="1" column="1"><widget class="QLineEdit" name="deviceIdEdit"><property name="placeholderText"><string>自动写入请求 header.deviceId</string></property></widget></item><item row="1" column="2"><widget class="QPushButton" name="resetButton"><property name="text"><string>恢复模板</string></property></widget></item><item row="1" column="3"><widget class="QPushButton" name="executeButton"><property name="text"><string>执行 RPC</string></property><property name="objectName"><string>primaryButton</string></property></widget></item><item row="2" column="0" colspan="4"><widget class="QLabel" name="methodDetailLabel"><property name="text"><string>请求与反馈类型</string></property><property name="objectName"><string>mutedLabel</string></property></widget></item></layout></item></layout></widget></item>
<item><widget class="QSplitter" name="editorSplitter"><property name="orientation"><enum>Qt::Horizontal</enum></property><property name="childrenCollapsible"><bool>false</bool></property><widget class="QFrame" name="requestPanel"><property name="objectName"><string>panel</string></property><layout class="QVBoxLayout" name="requestLayout"><property name="leftMargin"><number>14</number></property><property name="topMargin"><number>12</number></property><property name="rightMargin"><number>14</number></property><property name="bottomMargin"><number>14</number></property><item><widget class="QLabel" name="requestTitle"><property name="text"><string>请求 JSON</string></property><property name="objectName"><string>sectionTitle</string></property></widget></item><item><widget class="QTextEdit" name="requestEdit"><property name="objectName"><string>rpcEditor</string></property><property name="acceptRichText"><bool>false</bool></property></widget></item></layout></widget><widget class="QFrame" name="responsePanel"><property name="objectName"><string>panel</string></property><layout class="QVBoxLayout" name="responseLayout"><property name="leftMargin"><number>14</number></property><property name="topMargin"><number>12</number></property><property name="rightMargin"><number>14</number></property><property name="bottomMargin"><number>14</number></property><item><layout class="QHBoxLayout" name="responseTitleRow"><item><widget class="QLabel" name="responseTitle"><property name="text"><string>反馈 JSON</string></property><property name="objectName"><string>sectionTitle</string></property></widget></item><item><spacer name="responseSpacer"><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="QLabel" name="resultLabel"><property name="text"><string>等待执行</string></property><property name="objectName"><string>mutedLabel</string></property></widget></item></layout></item><item><widget class="QTextEdit" name="responseEdit"><property name="objectName"><string>rpcEditor</string></property><property name="readOnly"><bool>true</bool></property></widget></item></layout></widget></widget></item>
</layout>
</widget>
<resources/><connections/>
</ui>