GrabBag/Tools/ControlApp/dialogconfig.ui
2026-03-01 18:11:32 +08:00

865 lines
23 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DialogConfig</class>
<widget class="QDialog" name="DialogConfig">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>700</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>720</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="groupBox_controller">
<property name="geometry">
<rect>
<x>40</x>
<y>70</y>
<width>720</width>
<height>121</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>true</bold>
</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; }</string>
</property>
<property name="title">
<string>控制器配置</string>
</property>
<widget class="QLabel" name="label_controller_ip">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="text">
<string>IP地址:</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_controller_ip">
<property name="geometry">
<rect>
<x>140</x>
<y>40</y>
<width>250</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QLineEdit { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }</string>
</property>
</widget>
<widget class="QLabel" name="label_controller_port">
<property name="geometry">
<rect>
<x>30</x>
<y>80</y>
<width>80</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>false</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="QSpinBox" name="spinBox_controller_port">
<property name="geometry">
<rect>
<x>140</x>
<y>80</y>
<width>91</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QSpinBox { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>502</number>
</property>
</widget>
<widget class="QPushButton" name="btn_test_controller">
<property name="geometry">
<rect>
<x>600</x>
<y>50</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(60, 120, 180); color: white; border-radius: 4px; padding: 8px; }
QPushButton:hover { background-color: rgb(70, 130, 190); }
QPushButton:pressed { background-color: rgb(50, 110, 170); }</string>
</property>
<property name="text">
<string>测试连接</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_robot">
<property name="geometry">
<rect>
<x>40</x>
<y>200</y>
<width>720</width>
<height>91</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>true</bold>
</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; }</string>
</property>
<property name="title">
<string>机械臂配置</string>
</property>
<widget class="QLabel" name="label_robot_ip">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="text">
<string>IP地址:</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_robot_ip">
<property name="geometry">
<rect>
<x>140</x>
<y>40</y>
<width>250</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QLineEdit { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }</string>
</property>
</widget>
<widget class="QPushButton" name="btn_test_robot">
<property name="geometry">
<rect>
<x>600</x>
<y>40</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(60, 120, 180); color: white; border-radius: 4px; padding: 8px; }
QPushButton:hover { background-color: rgb(70, 130, 190); }
QPushButton:pressed { background-color: rgb(50, 110, 170); }</string>
</property>
<property name="text">
<string>测试连接</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_positions">
<property name="geometry">
<rect>
<x>40</x>
<y>300</y>
<width>720</width>
<height>330</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<bold>true</bold>
</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); font-weight: normal; }
QDoubleSpinBox { color: rgb(221, 225, 233); background-color: rgb(47, 48, 52); border: 1px solid rgb(70, 72, 78); padding: 4px; }
QSpinBox { 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>位置配置 (mm, °)</string>
</property>
<widget class="QLabel" name="label_ready">
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>100</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>准备位置:</string>
</property>
</widget>
<widget class="QLabel" name="label_place">
<property name="geometry">
<rect>
<x>30</x>
<y>130</y>
<width>100</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>放置位置:</string>
</property>
</widget>
<widget class="QLabel" name="label_offset">
<property name="geometry">
<rect>
<x>30</x>
<y>220</y>
<width>150</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Z轴偏移:</string>
</property>
</widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_grasp_offset">
<property name="geometry">
<rect>
<x>140</x>
<y>220</y>
<width>141</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-500.000000000000000</double>
</property>
<property name="maximum">
<double>500.000000000000000</double>
</property>
</widget>
<widget class="QLabel" name="label_tool">
<property name="geometry">
<rect>
<x>30</x>
<y>260</y>
<width>150</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>末端工具号:</string>
</property>
</widget>
<widget class="QSpinBox" name="spinBox_tool">
<property name="geometry">
<rect>
<x>140</x>
<y>260</y>
<width>141</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>14</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="label_velocity">
<property name="geometry">
<rect>
<x>350</x>
<y>220</y>
<width>150</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>速度比例(%):</string>
</property>
</widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_velocity">
<property name="geometry">
<rect>
<x>520</x>
<y>220</y>
<width>141</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>1.000000000000000</double>
</property>
<property name="maximum">
<double>100.000000000000000</double>
</property>
<property name="value">
<double>50.000000000000000</double>
</property>
</widget>
<widget class="QLabel" name="label_acceleration">
<property name="geometry">
<rect>
<x>350</x>
<y>260</y>
<width>150</width>
<height>25</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>加速度比例(%):</string>
</property>
</widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_acceleration">
<property name="geometry">
<rect>
<x>520</x>
<y>260</y>
<width>141</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>1.000000000000000</double>
</property>
<property name="maximum">
<double>100.000000000000000</double>
</property>
<property name="value">
<double>50.000000000000000</double>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>140</x>
<y>40</y>
<width>441</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_x">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_y">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_z">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>140</x>
<y>80</y>
<width>441</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_rx">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_ry">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_ready_rz">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QPushButton" name="btn_test_ready">
<property name="geometry">
<rect>
<x>600</x>
<y>50</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(60, 120, 180); color: white; border-radius: 4px; padding: 4px; }
QPushButton:hover { background-color: rgb(70, 130, 190); }
QPushButton:pressed { background-color: rgb(50, 110, 170); }</string>
</property>
<property name="text">
<string>测试</string>
</property>
</widget>
<widget class="QPushButton" name="btn_read_ready">
<property name="geometry">
<rect>
<x>600</x>
<y>90</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(80, 160, 100); color: white; border-radius: 4px; padding: 4px; }
QPushButton:hover { background-color: rgb(90, 170, 110); }
QPushButton:pressed { background-color: rgb(70, 150, 90); }</string>
</property>
<property name="text">
<string>读取</string>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>140</x>
<y>170</y>
<width>441</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_rx">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_ry">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_rz">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QPushButton" name="btn_test_place">
<property name="geometry">
<rect>
<x>600</x>
<y>140</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(60, 120, 180); color: white; border-radius: 4px; padding: 4px; }
QPushButton:hover { background-color: rgb(70, 130, 190); }
QPushButton:pressed { background-color: rgb(50, 110, 170); }</string>
</property>
<property name="text">
<string>测试</string>
</property>
</widget>
<widget class="QPushButton" name="btn_read_place">
<property name="geometry">
<rect>
<x>600</x>
<y>180</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(80, 160, 100); color: white; border-radius: 4px; padding: 4px; }
QPushButton:hover { background-color: rgb(90, 170, 110); }
QPushButton:pressed { background-color: rgb(70, 150, 90); }</string>
</property>
<property name="text">
<string>读取</string>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>140</x>
<y>130</y>
<width>441</width>
<height>41</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_x">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_y">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_place_z">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="minimum">
<double>-2000.000000000000000</double>
</property>
<property name="maximum">
<double>2000.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QPushButton" name="btn_save">
<property name="geometry">
<rect>
<x>480</x>
<y>640</y>
<width>140</width>
<height>45</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(60, 180, 120); color: white; border-radius: 4px; padding: 10px; }
QPushButton:hover { background-color: rgb(70, 190, 130); }
QPushButton:pressed { background-color: rgb(50, 170, 110); }</string>
</property>
<property name="text">
<string>保存</string>
</property>
</widget>
<widget class="QPushButton" name="btn_cancel">
<property name="geometry">
<rect>
<x>640</x>
<y>640</y>
<width>120</width>
<height>45</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { background-color: rgb(120, 120, 120); color: white; border-radius: 4px; padding: 10px; }
QPushButton:hover { background-color: rgb(130, 130, 130); }
QPushButton:pressed { background-color: rgb(110, 110, 110); }</string>
</property>
<property name="text">
<string>取消</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>