2026-02-11 00:53:51 +08:00

314 lines
8.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DialogDeviceConfig</class>
<widget class="QDialog" name="DialogDeviceConfig">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>520</height>
</rect>
</property>
<property name="windowTitle">
<string>设备配置</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(25, 26, 28);</string>
</property>
<widget class="QLabel" name="label_title">
<property name="geometry">
<rect>
<x>40</x>
<y>20</y>
<width>420</width>
<height>41</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="text">
<string>拆线定位 - 设备配置</string>
</property>
</widget>
<widget class="QGroupBox" name="groupCamera">
<property name="geometry">
<rect>
<x>40</x>
<y>80</y>
<width>420</width>
<height>160</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QGroupBox { color: rgb(221, 225, 233); border: 1px solid rgb(100, 100, 100); border-radius: 4px; margin-top: 12px; padding-top: 8px; }
QGroupBox::title { subcontrol-origin: margin; left: 10px; padding: 0 3px 0 3px; }
QLabel { color: rgb(221, 225, 233); }
QLineEdit { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }
QDoubleSpinBox { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }</string>
</property>
<property name="title">
<string>相机配置</string>
</property>
<widget class="QLabel" name="label_cameraIP">
<property name="geometry">
<rect>
<x>30</x>
<y>50</y>
<width>160</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">
<string>相机IP:</string>
</property>
</widget>
<widget class="QLineEdit" name="editCameraIP">
<property name="geometry">
<rect>
<x>210</x>
<y>50</y>
<width>180</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="placeholderText">
<string>192.168.2.10</string>
</property>
</widget>
<widget class="QLabel" name="label_baseDistance">
<property name="geometry">
<rect>
<x>30</x>
<y>105</y>
<width>160</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">
<string>基准距离(mm):</string>
</property>
</widget>
<widget class="QDoubleSpinBox" name="spinBaseDistance">
<property name="geometry">
<rect>
<x>210</x>
<y>105</y>
<width>180</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-10000.000000000000000</double>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
<property name="value">
<double>300.000000000000000</double>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupProtocol">
<property name="geometry">
<rect>
<x>40</x>
<y>260</y>
<width>420</width>
<height>160</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QGroupBox { color: rgb(221, 225, 233); border: 1px solid rgb(100, 100, 100); border-radius: 4px; margin-top: 12px; padding-top: 8px; }
QGroupBox::title { subcontrol-origin: margin; left: 10px; padding: 0 3px 0 3px; }
QLabel { color: rgb(221, 225, 233); }
QLineEdit { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }
QComboBox { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }
QComboBox QAbstractItemView { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); selection-background-color: rgb(70, 72, 78); }</string>
</property>
<property name="title">
<string>协议配置</string>
</property>
<widget class="QLabel" name="label_modbusIP">
<property name="geometry">
<rect>
<x>30</x>
<y>50</y>
<width>160</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">
<string>服务端IP:</string>
</property>
</widget>
<widget class="QLineEdit" name="editModbusIP">
<property name="geometry">
<rect>
<x>210</x>
<y>50</y>
<width>180</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="placeholderText">
<string>192.168.2.1</string>
</property>
</widget>
<widget class="QLabel" name="label_endian">
<property name="geometry">
<rect>
<x>30</x>
<y>105</y>
<width>160</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">
<string>字节序:</string>
</property>
</widget>
<widget class="QComboBox" name="comboEndian">
<property name="geometry">
<rect>
<x>210</x>
<y>105</y>
<width>180</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
</widget>
</widget>
<widget class="QPushButton" name="btnSave">
<property name="geometry">
<rect>
<x>240</x>
<y>450</y>
<width>100</width>
<height>45</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: rgb(60, 120, 180);
color: rgb(221, 225, 233);
border: none;
border-radius: 4px;
padding: 8px;
}
QPushButton:hover {
background-color: rgb(80, 140, 200);
}
QPushButton:pressed {
background-color: rgb(40, 100, 160);
}</string>
</property>
<property name="text">
<string>保存</string>
</property>
</widget>
<widget class="QPushButton" name="btnCancel">
<property name="geometry">
<rect>
<x>360</x>
<y>450</y>
<width>100</width>
<height>45</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton {
background-color: rgb(120, 120, 120);
color: rgb(221, 225, 233);
border: none;
border-radius: 4px;
padding: 8px;
}
QPushButton:hover {
background-color: rgb(140, 140, 140);
}
QPushButton:pressed {
background-color: rgb(100, 100, 100);
}</string>
</property>
<property name="text">
<string>取消</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>