|
|
@@ -0,0 +1,344 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<ui version="4.0">
|
|
|
+ <class>CameraDialog</class>
|
|
|
+ <widget class="QDialog" name="CameraDialog">
|
|
|
+ <property name="geometry">
|
|
|
+ <rect>
|
|
|
+ <x>0</x>
|
|
|
+ <y>0</y>
|
|
|
+ <width>700</width>
|
|
|
+ <height>500</height>
|
|
|
+ </rect>
|
|
|
+ </property>
|
|
|
+ <property name="windowTitle">
|
|
|
+ <string>相机管理</string>
|
|
|
+ </property>
|
|
|
+ <widget class="QWidget" name="verticalLayoutWidget">
|
|
|
+ <property name="geometry">
|
|
|
+ <rect>
|
|
|
+ <x>10</x>
|
|
|
+ <y>10</y>
|
|
|
+ <width>681</width>
|
|
|
+ <height>451</height>
|
|
|
+ </rect>
|
|
|
+ </property>
|
|
|
+ <layout class="QVBoxLayout" name="verticalLayout">
|
|
|
+ <item>
|
|
|
+ <widget class="QGroupBox" name="groupBox">
|
|
|
+ <property name="title">
|
|
|
+ <string>相机列表</string>
|
|
|
+ </property>
|
|
|
+ <layout class="QHBoxLayout" name="horizontalLayout">
|
|
|
+ <item>
|
|
|
+ <widget class="QListWidget" name="listWidget_cameras">
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>相机 1</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>相机 2</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>相机 3</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <layout class="QVBoxLayout" name="verticalLayout_2">
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_add">
|
|
|
+ <property name="text">
|
|
|
+ <string>添加</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_remove">
|
|
|
+ <property name="text">
|
|
|
+ <string>移除</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_refresh">
|
|
|
+ <property name="text">
|
|
|
+ <string>刷新</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_save">
|
|
|
+ <property name="text">
|
|
|
+ <string>保存</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_load">
|
|
|
+ <property name="text">
|
|
|
+ <string>加载</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <spacer name="verticalSpacer">
|
|
|
+ <property name="orientation">
|
|
|
+ <enum>Qt::Vertical</enum>
|
|
|
+ </property>
|
|
|
+ <property name="sizeHint" stdset="0">
|
|
|
+ <size>
|
|
|
+ <width>20</width>
|
|
|
+ <height>40</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ </spacer>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QTabWidget" name="tabWidget">
|
|
|
+ <property name="currentIndex">
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <widget class="QWidget" name="tab">
|
|
|
+ <attribute name="title">
|
|
|
+ <string>基本设置</string>
|
|
|
+ </attribute>
|
|
|
+ <layout class="QFormLayout" name="formLayout">
|
|
|
+ <item row="0" column="0">
|
|
|
+ <widget class="QLabel" name="label">
|
|
|
+ <property name="text">
|
|
|
+ <string>相机名称:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="1">
|
|
|
+ <widget class="QLineEdit" name="lineEdit_name"/>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="0">
|
|
|
+ <widget class="QLabel" name="label_2">
|
|
|
+ <property name="text">
|
|
|
+ <string>相机类型:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="1">
|
|
|
+ <widget class="QComboBox" name="comboBox_type">
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>USB 相机</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>GigE 相机</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>Camera Link</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>网络相机</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="0">
|
|
|
+ <widget class="QLabel" name="label_3">
|
|
|
+ <property name="text">
|
|
|
+ <string>分辨率:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="1">
|
|
|
+ <widget class="QComboBox" name="comboBox_resolution">
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>640x480</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>1280x720</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>1920x1080</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>3840x2160</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="0">
|
|
|
+ <widget class="QLabel" name="label_4">
|
|
|
+ <property name="text">
|
|
|
+ <string>帧率:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="1">
|
|
|
+ <widget class="QLineEdit" name="lineEdit_fps"/>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ <widget class="QWidget" name="tab_2">
|
|
|
+ <attribute name="title">
|
|
|
+ <string>高级设置</string>
|
|
|
+ </attribute>
|
|
|
+ <layout class="QFormLayout" name="formLayout_2">
|
|
|
+ <item row="0" column="0">
|
|
|
+ <widget class="QLabel" name="label_5">
|
|
|
+ <property name="text">
|
|
|
+ <string>曝光时间:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="1">
|
|
|
+ <widget class="QLineEdit" name="lineEdit_exposure"/>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="0">
|
|
|
+ <widget class="QLabel" name="label_6">
|
|
|
+ <property name="text">
|
|
|
+ <string>增益:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="1">
|
|
|
+ <widget class="QLineEdit" name="lineEdit_gain"/>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="0">
|
|
|
+ <widget class="QLabel" name="label_7">
|
|
|
+ <property name="text">
|
|
|
+ <string>白平衡:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="1">
|
|
|
+ <widget class="QCheckBox" name="checkBox_whiteBalance">
|
|
|
+ <property name="text">
|
|
|
+ <string>自动</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="0">
|
|
|
+ <widget class="QLabel" name="label_8">
|
|
|
+ <property name="text">
|
|
|
+ <string>触发模式:</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="1">
|
|
|
+ <widget class="QComboBox" name="comboBox_trigger">
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>自由运行</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>外部触发</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <property name="text">
|
|
|
+ <string>软件触发</string>
|
|
|
+ </property>
|
|
|
+ </item>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ <widget class="QWidget" name="tab_3">
|
|
|
+ <attribute name="title">
|
|
|
+ <string>预览</string>
|
|
|
+ </attribute>
|
|
|
+ <layout class="QVBoxLayout" name="verticalLayout_3">
|
|
|
+ <item>
|
|
|
+ <widget class="QLabel" name="label_9">
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">background-color: #000; border: 1px solid #ccc;</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>相机预览区域</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment">
|
|
|
+ <set>Qt::AlignCenter</set>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="QPushButton" name="pushButton_startPreview">
|
|
|
+ <property name="text">
|
|
|
+ <string>开始预览</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ </widget>
|
|
|
+ </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>
|
|
|
+ </widget>
|
|
|
+ <resources/>
|
|
|
+ <connections>
|
|
|
+ <connection>
|
|
|
+ <sender>buttonBox</sender>
|
|
|
+ <signal>accepted()</signal>
|
|
|
+ <receiver>CameraDialog</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>CameraDialog</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>
|