Files
2023-Webservices_And_Applic…/Applications/qModMaster/forms/settingsmodbusrtu.ui

353 lines
9.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SettingsModbusRTU</class>
<widget class="QDialog" name="SettingsModbusRTU">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>220</width>
<height>256</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>220</width>
<height>256</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>220</width>
<height>300</height>
</size>
</property>
<property name="windowTitle">
<string>Modbus RTU Settings</string>
</property>
<property name="windowIcon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/icons/options-16.png</normaloff>:/icons/options-16.png</iconset>
</property>
<property name="modal">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QComboBox" name="cmbDev">
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>/dev/ttyS</string>
</property>
</item>
<item>
<property name="text">
<string>/dev/ttyUSB</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lblDev">
<property name="text">
<string>Serial device</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lblBaud">
<property name="text">
<string>Baud</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>cmbBaud</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="sbPort">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>128</number>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="cmbBaud">
<property name="currentIndex">
<number>-1</number>
</property>
<item>
<property name="text">
<string notr="true">110</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">300</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">600</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">1200</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">2400</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">4800</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">9600</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">14400</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">19200</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">28800</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">38400</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">57600</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">115200</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">128000</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">256000</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">921600</string>
</property>
</item>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="cmbDataBits">
<property name="currentIndex">
<number>-1</number>
</property>
<item>
<property name="text">
<string notr="true">7</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">8</string>
</property>
</item>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="lblDataBits">
<property name="text">
<string>Data Bits</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>cmbDataBits</cstring>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="lblRTS">
<property name="text">
<string notr="true">RTS</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="lblStopBits">
<property name="text">
<string>Stop Bits</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>cmbStopBits</cstring>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QComboBox" name="cmbRTS"/>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="cmbParity">
<property name="currentIndex">
<number>-1</number>
</property>
<item>
<property name="text">
<string>None</string>
</property>
</item>
<item>
<property name="text">
<string>Odd</string>
</property>
</item>
<item>
<property name="text">
<string>Even</string>
</property>
</item>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="cmbStopBits">
<property name="currentIndex">
<number>-1</number>
</property>
<item>
<property name="text">
<string notr="true">1</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">1.5</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">2</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="lblParity">
<property name="text">
<string>Parity</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>cmbParity</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lblPort">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Serial port</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons/icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>SettingsModbusRTU</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>SettingsModbusRTU</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>