import QtQuick import QtQuick.Layouts import RibbonUI import ProtocolParser RibbonTabBar { property bool send_hex: serial_send_hex_checkbox.checked property bool show_tooltip: message_parse_checkbox.checked property bool auto_scroll_to_bottom: view_scroll_bottom_checkbox.checked property var center_view RibbonTabPage{ id: serial_page title: qsTr("串口设置") RibbonTabGroup{ text: qsTr("参数配置") width: serial_layout.width + 30 RowLayout{ id: serial_layout anchors.centerIn: parent height: parent.height spacing: 20 ColumnLayout{ Layout.fillHeight: true spacing: 20 RowLayout{ Layout.preferredWidth: 340 + spacing RibbonText{ text: qsTr("端 口:") view_only: true } RibbonComboBox{ id: serial_port_combo Layout.fillWidth: true model: ListModel { id: serial_model } icon_source: RibbonIcons.SerialPort currentIndex: 0 enabled: !SerialPortManager.opened Connections{ target: SerialPortManager function onAvailable_portsChanged(ports){ serial_model.clear() for (let i=0;i