mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-25 11:21:08 -08:00
495 lines
12 KiB
XML
495 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Camera</class>
|
|
<widget class="QMainWindow" name="main">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>668</width>
|
|
<height>422</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Camera</string>
|
|
</property>
|
|
<widget class="QWidget" name="central_widget">
|
|
<layout class="QGridLayout" name="grid_layout_3">
|
|
<item row="0" column="0" rowspan="3">
|
|
<widget class="QStackedWidget" name="stacked_widget">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>1</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="palette">
|
|
<palette>
|
|
<active>
|
|
<colorrole role="Base">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>255</red>
|
|
<green>255</green>
|
|
<blue>255</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
<colorrole role="Window">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>145</red>
|
|
<green>145</green>
|
|
<blue>145</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</active>
|
|
<inactive>
|
|
<colorrole role="Base">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>255</red>
|
|
<green>255</green>
|
|
<blue>255</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
<colorrole role="Window">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>145</red>
|
|
<green>145</green>
|
|
<blue>145</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</inactive>
|
|
<disabled>
|
|
<colorrole role="Base">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>145</red>
|
|
<green>145</green>
|
|
<blue>145</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
<colorrole role="Window">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>145</red>
|
|
<green>145</green>
|
|
<blue>145</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</disabled>
|
|
</palette>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="viewfinder_page">
|
|
<layout class="QGridLayout" name="grid_layout_5">
|
|
<item row="0" column="0">
|
|
<widget class="QCameraViewfinder" name="viewfinder" native="true"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="preview_page">
|
|
<layout class="QGridLayout" name="grid_layout_4">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="last_image_preview_label">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::Box</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1" colspan="2">
|
|
<widget class="QPushButton" name="lock_button">
|
|
<property name="text">
|
|
<string>Focus</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1" colspan="2">
|
|
<widget class="QTabWidget" name="capture_widget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="tab_2">
|
|
<attribute name="title">
|
|
<string>Image</string>
|
|
</attribute>
|
|
<layout class="QGridLayout" name="grid_layout">
|
|
<item row="0" column="0">
|
|
<widget class="QPushButton" name="take_image_button">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Capture Photo</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>161</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Exposure Compensation:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QSlider" name="exposure_compensation">
|
|
<property name="minimum">
|
|
<number>-4</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="pageStep">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksAbove</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="tab">
|
|
<attribute name="title">
|
|
<string>Video</string>
|
|
</attribute>
|
|
<layout class="QGridLayout" name="grid_layout_2">
|
|
<item row="0" column="0">
|
|
<widget class="QPushButton" name="record_button">
|
|
<property name="text">
|
|
<string>Record</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="pause_button">
|
|
<property name="text">
|
|
<string>Pause</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QPushButton" name="stop_button">
|
|
<property name="text">
|
|
<string>Stop</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>76</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QPushButton" name="mute_button">
|
|
<property name="text">
|
|
<string>Mute</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menu_bar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>668</width>
|
|
<height>25</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menu_file">
|
|
<property name="title">
|
|
<string>File</string>
|
|
</property>
|
|
<addaction name="action_start_camera"/>
|
|
<addaction name="action_stop_camera"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="action_settings"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="action_exit"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menu_devices">
|
|
<property name="title">
|
|
<string>Devices</string>
|
|
</property>
|
|
</widget>
|
|
<addaction name="menu_file"/>
|
|
<addaction name="menu_devices"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="status_bar"/>
|
|
<action name="action_exit">
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_start_camera">
|
|
<property name="text">
|
|
<string>Start Camera</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_stop_camera">
|
|
<property name="text">
|
|
<string>Stop Camera</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_settings">
|
|
<property name="text">
|
|
<string>Settings</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>QCameraViewfinder</class>
|
|
<extends>QWidget</extends>
|
|
<header>qcameraviewfinder.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>record_button</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>record()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>647</x>
|
|
<y>149</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>61</x>
|
|
<y>238</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>stop_button</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>stop()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>647</x>
|
|
<y>225</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>140</x>
|
|
<y>236</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pause_button</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>pause()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>647</x>
|
|
<y>187</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>234</x>
|
|
<y>237</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>action_exit</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>close()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>154</x>
|
|
<y>130</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>take_image_button</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>takeImage()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>625</x>
|
|
<y>132</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>603</x>
|
|
<y>169</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>lock_button</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>toggleLock()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>658</x>
|
|
<y>75</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>453</x>
|
|
<y>119</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>mute_button</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>main</receiver>
|
|
<slot>setMuted(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>647</x>
|
|
<y>377</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>5</x>
|
|
<y>280</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>exposure_compensation</sender>
|
|
<signal>valueChanged(int)</signal>
|
|
<receiver>main</receiver>
|
|
<slot>setExposureCompensation(int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>559</x>
|
|
<y>367</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>665</x>
|
|
<y>365</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>action_settings</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>configureCaptureSettings()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>333</x>
|
|
<y>210</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>action_startCamera</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>startCamera()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>333</x>
|
|
<y>210</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>action_stop_camera</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>main</receiver>
|
|
<slot>stopCamera()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>333</x>
|
|
<y>210</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>record()</slot>
|
|
<slot>pause()</slot>
|
|
<slot>stop()</slot>
|
|
<slot>enablePreview(bool)</slot>
|
|
<slot>configureCaptureSettings()</slot>
|
|
<slot>takeImage()</slot>
|
|
<slot>startCamera()</slot>
|
|
<slot>toggleLock()</slot>
|
|
<slot>setMuted(bool)</slot>
|
|
<slot>stopCamera()</slot>
|
|
<slot>setExposureCompensation(int)</slot>
|
|
</slots>
|
|
</ui>
|