326 lines
7.8 KiB
Plaintext
Raw Permalink Normal View History

2025-12-27 09:34:02 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DialogCamera</class>
<widget class="QDialog" name="DialogCamera">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<height>527</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_camera_title">
<property name="geometry">
<rect>
<x>30</x>
<y>15</y>
<width>300</width>
<height>40</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="text">
<string>相机配置 (最多4个)</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_list">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>660</width>
<height>300</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="title">
<string>已配置相机列表</string>
</property>
<widget class="QTableWidget" name="tableWidget_cameras">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>640</width>
<height>260</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">
QTableWidget {
color: rgb(221, 225, 233);
background-color: rgb(38, 40, 47);
gridline-color: rgb(60, 62, 70);
border: 1px solid rgb(60, 62, 70);
}
QTableWidget::item {
padding: 5px;
}
QTableWidget::item:selected {
background-color: rgb(60, 62, 70);
}
QHeaderView::section {
background-color: rgb(47, 48, 52);
color: rgb(221, 225, 233);
padding: 5px;
border: 1px solid rgb(60, 62, 70);
font-size: 14px;
}
</string>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="columnCount">
<number>4</number>
</property>
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string>编号</string>
</property>
</column>
<column>
<property name="text">
<string>名称</string>
</property>
</column>
<column>
<property name="text">
<string>IP地址</string>
</property>
</column>
<column>
<property name="text">
<string>操作</string>
</property>
</column>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_add">
<property name="geometry">
<rect>
<x>20</x>
<y>370</y>
<width>660</width>
<height>81</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="title">
<string>添加新相机</string>
</property>
<widget class="QLabel" name="label_name">
<property name="geometry">
<rect>
<x>15</x>
<y>35</y>
<width>60</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);</string>
</property>
<property name="text">
<string>名称:</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_name">
<property name="geometry">
<rect>
<x>75</x>
<y>35</y>
<width>180</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);
background-color: rgb(47, 48, 52);</string>
</property>
<property name="placeholderText">
<string>例如: 相机1</string>
</property>
</widget>
<widget class="QLabel" name="label_ip">
<property name="geometry">
<rect>
<x>280</x>
<y>35</y>
<width>40</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</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_ip">
<property name="geometry">
<rect>
<x>320</x>
<y>35</y>
<width>230</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(221, 225, 233);
background-color: rgb(47, 48, 52);</string>
</property>
<property name="placeholderText">
<string>例如: 192.168.1.100</string>
</property>
</widget>
<widget class="QPushButton" name="btn_add_camera">
<property name="geometry">
<rect>
<x>570</x>
<y>35</y>
<width>75</width>
<height>35</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">
QPushButton {
color: rgb(221, 225, 233);
background-color: rgb(0, 120, 212);
border: none;
border-radius: 3px;
padding: 5px 15px;
}
QPushButton:hover {
background-color: rgb(0, 140, 232);
}
QPushButton:pressed {
background-color: rgb(0, 100, 192);
}
QPushButton:disabled {
background-color: rgb(60, 62, 70);
color: rgb(120, 120, 120);
}
</string>
</property>
<property name="text">
<string>添加</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="btn_save">
<property name="geometry">
<rect>
<x>170</x>
<y>470</y>
<width>111</width>
<height>38</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/common/resource/dialog_ok.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="btn_cancel">
<property name="geometry">
<rect>
<x>370</x>
<y>470</y>
<width>111</width>
<height>38</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">image: url(:/common/resource/dialog_cancel.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>