Advertisement
Guest User

camera.ui

a guest
Jul 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 12.41 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3.  <class>Camera</class>
  4.  <widget class="QMainWindow" name="Camera">
  5.   <property name="geometry">
  6.    <rect>
  7.     <x>0</x>
  8.     <y>0</y>
  9.     <width>668</width>
  10.     <height>422</height>
  11.    </rect>
  12.   </property>
  13.   <property name="windowTitle">
  14.    <string>Camera</string>
  15.   </property>
  16.   <widget class="QWidget" name="centralwidget">
  17.    <layout class="QGridLayout" name="gridLayout_3">
  18.     <item row="0" column="0" rowspan="3">
  19.      <widget class="QStackedWidget" name="stackedWidget">
  20.       <property name="sizePolicy">
  21.        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  22.         <horstretch>1</horstretch>
  23.         <verstretch>0</verstretch>
  24.        </sizepolicy>
  25.       </property>
  26.       <property name="palette">
  27.        <palette>
  28.         <active>
  29.          <colorrole role="Base">
  30.           <brush brushstyle="SolidPattern">
  31.            <color alpha="255">
  32.             <red>255</red>
  33.             <green>255</green>
  34.             <blue>255</blue>
  35.            </color>
  36.           </brush>
  37.          </colorrole>
  38.          <colorrole role="Window">
  39.           <brush brushstyle="SolidPattern">
  40.            <color alpha="255">
  41.             <red>145</red>
  42.             <green>145</green>
  43.             <blue>145</blue>
  44.            </color>
  45.           </brush>
  46.          </colorrole>
  47.         </active>
  48.         <inactive>
  49.          <colorrole role="Base">
  50.           <brush brushstyle="SolidPattern">
  51.            <color alpha="255">
  52.             <red>255</red>
  53.             <green>255</green>
  54.             <blue>255</blue>
  55.            </color>
  56.           </brush>
  57.          </colorrole>
  58.          <colorrole role="Window">
  59.           <brush brushstyle="SolidPattern">
  60.            <color alpha="255">
  61.             <red>145</red>
  62.             <green>145</green>
  63.             <blue>145</blue>
  64.            </color>
  65.           </brush>
  66.          </colorrole>
  67.         </inactive>
  68.         <disabled>
  69.          <colorrole role="Base">
  70.           <brush brushstyle="SolidPattern">
  71.            <color alpha="255">
  72.             <red>145</red>
  73.             <green>145</green>
  74.             <blue>145</blue>
  75.            </color>
  76.           </brush>
  77.          </colorrole>
  78.          <colorrole role="Window">
  79.           <brush brushstyle="SolidPattern">
  80.            <color alpha="255">
  81.             <red>145</red>
  82.             <green>145</green>
  83.             <blue>145</blue>
  84.            </color>
  85.           </brush>
  86.          </colorrole>
  87.         </disabled>
  88.        </palette>
  89.       </property>
  90.       <property name="currentIndex">
  91.        <number>0</number>
  92.       </property>
  93.       <widget class="QWidget" name="viewfinderPage">
  94.        <layout class="QGridLayout" name="gridLayout_5">
  95.         <item row="0" column="0">
  96.          <widget class="QCameraViewfinder" name="viewfinder" native="true"/>
  97.         </item>
  98.        </layout>
  99.       </widget>
  100.       <widget class="QWidget" name="previewPage">
  101.        <layout class="QGridLayout" name="gridLayout_4">
  102.         <item row="0" column="0">
  103.          <widget class="QLabel" name="lastImagePreviewLabel">
  104.           <property name="sizePolicy">
  105.            <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
  106.             <horstretch>0</horstretch>
  107.             <verstretch>0</verstretch>
  108.            </sizepolicy>
  109.           </property>
  110.           <property name="frameShape">
  111.            <enum>QFrame::Box</enum>
  112.           </property>
  113.           <property name="text">
  114.            <string/>
  115.           </property>
  116.          </widget>
  117.         </item>
  118.        </layout>
  119.       </widget>
  120.      </widget>
  121.     </item>
  122.     <item row="1" column="1" colspan="2">
  123.      <widget class="QPushButton" name="lockButton">
  124.       <property name="text">
  125.        <string>Focus</string>
  126.       </property>
  127.      </widget>
  128.     </item>
  129.     <item row="2" column="1" colspan="2">
  130.      <widget class="QTabWidget" name="captureWidget">
  131.       <property name="currentIndex">
  132.        <number>0</number>
  133.       </property>
  134.       <widget class="QWidget" name="tab_2">
  135.        <attribute name="title">
  136.         <string>Image</string>
  137.        </attribute>
  138.        <layout class="QGridLayout" name="gridLayout">
  139.         <item row="0" column="0">
  140.          <widget class="QPushButton" name="takeImageButton">
  141.           <property name="text">
  142.            <string>Capture Photo</string>
  143.           </property>
  144.          </widget>
  145.         </item>
  146.         <item row="1" column="0">
  147.          <spacer name="verticalSpacer_2">
  148.           <property name="orientation">
  149.            <enum>Qt::Vertical</enum>
  150.           </property>
  151.           <property name="sizeHint" stdset="0">
  152.            <size>
  153.             <width>20</width>
  154.             <height>161</height>
  155.            </size>
  156.           </property>
  157.          </spacer>
  158.         </item>
  159.         <item row="2" column="0">
  160.          <widget class="QLabel" name="label">
  161.           <property name="text">
  162.            <string>Exposure Compensation:</string>
  163.           </property>
  164.          </widget>
  165.         </item>
  166.         <item row="3" column="0">
  167.          <widget class="QSlider" name="exposureCompensation">
  168.           <property name="minimum">
  169.            <number>-4</number>
  170.           </property>
  171.           <property name="maximum">
  172.            <number>4</number>
  173.           </property>
  174.           <property name="pageStep">
  175.            <number>2</number>
  176.           </property>
  177.           <property name="orientation">
  178.            <enum>Qt::Horizontal</enum>
  179.           </property>
  180.           <property name="tickPosition">
  181.            <enum>QSlider::TicksAbove</enum>
  182.           </property>
  183.          </widget>
  184.         </item>
  185.        </layout>
  186.       </widget>
  187.       <widget class="QWidget" name="tab">
  188.        <attribute name="title">
  189.         <string>Video</string>
  190.        </attribute>
  191.        <layout class="QGridLayout" name="gridLayout_2">
  192.         <item row="0" column="0">
  193.          <widget class="QPushButton" name="recordButton">
  194.           <property name="text">
  195.            <string>Record</string>
  196.           </property>
  197.          </widget>
  198.         </item>
  199.         <item row="1" column="0">
  200.          <widget class="QPushButton" name="pauseButton">
  201.           <property name="text">
  202.            <string>Pause</string>
  203.           </property>
  204.          </widget>
  205.         </item>
  206.         <item row="2" column="0">
  207.          <widget class="QPushButton" name="stopButton">
  208.           <property name="text">
  209.            <string>Stop</string>
  210.           </property>
  211.          </widget>
  212.         </item>
  213.         <item row="3" column="0">
  214.          <spacer name="verticalSpacer">
  215.           <property name="orientation">
  216.            <enum>Qt::Vertical</enum>
  217.           </property>
  218.           <property name="sizeHint" stdset="0">
  219.            <size>
  220.             <width>20</width>
  221.             <height>76</height>
  222.            </size>
  223.           </property>
  224.          </spacer>
  225.         </item>
  226.         <item row="4" column="0">
  227.          <widget class="QPushButton" name="muteButton">
  228.           <property name="text">
  229.            <string>Mute</string>
  230.           </property>
  231.           <property name="checkable">
  232.            <bool>true</bool>
  233.           </property>
  234.          </widget>
  235.         </item>
  236.        </layout>
  237.       </widget>
  238.      </widget>
  239.     </item>
  240.    </layout>
  241.   </widget>
  242.   <widget class="QMenuBar" name="menubar">
  243.    <property name="geometry">
  244.     <rect>
  245.      <x>0</x>
  246.      <y>0</y>
  247.      <width>668</width>
  248.      <height>29</height>
  249.     </rect>
  250.    </property>
  251.    <widget class="QMenu" name="menuFile">
  252.     <property name="title">
  253.      <string>File</string>
  254.     </property>
  255.     <addaction name="actionStartCamera"/>
  256.     <addaction name="actionStopCamera"/>
  257.     <addaction name="separator"/>
  258.     <addaction name="actionSettings"/>
  259.     <addaction name="separator"/>
  260.     <addaction name="actionExit"/>
  261.    </widget>
  262.    <widget class="QMenu" name="menuDevices">
  263.     <property name="title">
  264.      <string>Devices</string>
  265.     </property>
  266.    </widget>
  267.    <addaction name="menuFile"/>
  268.    <addaction name="menuDevices"/>
  269.   </widget>
  270.   <widget class="QStatusBar" name="statusbar"/>
  271.   <action name="actionExit">
  272.    <property name="text">
  273.     <string>Exit</string>
  274.    </property>
  275.   </action>
  276.   <action name="actionStartCamera">
  277.    <property name="text">
  278.     <string>Start Camera</string>
  279.    </property>
  280.   </action>
  281.   <action name="actionStopCamera">
  282.    <property name="text">
  283.     <string>Stop Camera</string>
  284.    </property>
  285.   </action>
  286.   <action name="actionSettings">
  287.    <property name="text">
  288.     <string>Settings</string>
  289.    </property>
  290.   </action>
  291.  </widget>
  292.  <customwidgets>
  293.   <customwidget>
  294.    <class>QCameraViewfinder</class>
  295.    <extends>QWidget</extends>
  296.    <header>PyQt5.QtMultimediaWidgets</header>
  297.    <container>1</container>
  298.   </customwidget>
  299.  </customwidgets>
  300.  <resources/>
  301.  <connections>
  302.   <connection>
  303.    <sender>recordButton</sender>
  304.    <signal>clicked()</signal>
  305.    <receiver>Camera</receiver>
  306.    <slot>record()</slot>
  307.    <hints>
  308.     <hint type="sourcelabel">
  309.      <x>647</x>
  310.      <y>149</y>
  311.     </hint>
  312.     <hint type="destinationlabel">
  313.      <x>61</x>
  314.      <y>238</y>
  315.     </hint>
  316.    </hints>
  317.   </connection>
  318.   <connection>
  319.    <sender>stopButton</sender>
  320.    <signal>clicked()</signal>
  321.    <receiver>Camera</receiver>
  322.    <slot>stop()</slot>
  323.    <hints>
  324.     <hint type="sourcelabel">
  325.      <x>647</x>
  326.      <y>225</y>
  327.     </hint>
  328.     <hint type="destinationlabel">
  329.      <x>140</x>
  330.      <y>236</y>
  331.     </hint>
  332.    </hints>
  333.   </connection>
  334.   <connection>
  335.    <sender>pauseButton</sender>
  336.    <signal>clicked()</signal>
  337.    <receiver>Camera</receiver>
  338.    <slot>pause()</slot>
  339.    <hints>
  340.     <hint type="sourcelabel">
  341.      <x>647</x>
  342.      <y>187</y>
  343.     </hint>
  344.     <hint type="destinationlabel">
  345.      <x>234</x>
  346.      <y>237</y>
  347.     </hint>
  348.    </hints>
  349.   </connection>
  350.   <connection>
  351.    <sender>actionExit</sender>
  352.    <signal>triggered()</signal>
  353.    <receiver>Camera</receiver>
  354.    <slot>close()</slot>
  355.    <hints>
  356.     <hint type="sourcelabel">
  357.      <x>-1</x>
  358.      <y>-1</y>
  359.     </hint>
  360.     <hint type="destinationlabel">
  361.      <x>154</x>
  362.      <y>130</y>
  363.     </hint>
  364.    </hints>
  365.   </connection>
  366.   <connection>
  367.    <sender>takeImageButton</sender>
  368.    <signal>clicked()</signal>
  369.    <receiver>Camera</receiver>
  370.    <slot>takeImage()</slot>
  371.    <hints>
  372.     <hint type="sourcelabel">
  373.      <x>625</x>
  374.      <y>132</y>
  375.     </hint>
  376.     <hint type="destinationlabel">
  377.      <x>603</x>
  378.      <y>169</y>
  379.     </hint>
  380.    </hints>
  381.   </connection>
  382.   <connection>
  383.    <sender>lockButton</sender>
  384.    <signal>clicked()</signal>
  385.    <receiver>Camera</receiver>
  386.    <slot>toggleLock()</slot>
  387.    <hints>
  388.     <hint type="sourcelabel">
  389.      <x>658</x>
  390.      <y>75</y>
  391.     </hint>
  392.     <hint type="destinationlabel">
  393.      <x>453</x>
  394.      <y>119</y>
  395.     </hint>
  396.    </hints>
  397.   </connection>
  398.   <connection>
  399.    <sender>muteButton</sender>
  400.    <signal>toggled(bool)</signal>
  401.    <receiver>Camera</receiver>
  402.    <slot>setMuted(bool)</slot>
  403.    <hints>
  404.     <hint type="sourcelabel">
  405.      <x>647</x>
  406.      <y>377</y>
  407.     </hint>
  408.     <hint type="destinationlabel">
  409.      <x>5</x>
  410.      <y>280</y>
  411.     </hint>
  412.    </hints>
  413.   </connection>
  414.   <connection>
  415.    <sender>exposureCompensation</sender>
  416.    <signal>valueChanged(int)</signal>
  417.    <receiver>Camera</receiver>
  418.    <slot>setExposureCompensation(int)</slot>
  419.    <hints>
  420.     <hint type="sourcelabel">
  421.      <x>559</x>
  422.      <y>367</y>
  423.     </hint>
  424.     <hint type="destinationlabel">
  425.      <x>665</x>
  426.      <y>365</y>
  427.     </hint>
  428.    </hints>
  429.   </connection>
  430.   <connection>
  431.    <sender>actionSettings</sender>
  432.    <signal>triggered()</signal>
  433.    <receiver>Camera</receiver>
  434.    <slot>configureCaptureSettings()</slot>
  435.    <hints>
  436.     <hint type="sourcelabel">
  437.      <x>-1</x>
  438.      <y>-1</y>
  439.     </hint>
  440.     <hint type="destinationlabel">
  441.      <x>333</x>
  442.      <y>210</y>
  443.     </hint>
  444.    </hints>
  445.   </connection>
  446.   <connection>
  447.    <sender>actionStartCamera</sender>
  448.    <signal>triggered()</signal>
  449.    <receiver>Camera</receiver>
  450.    <slot>startCamera()</slot>
  451.    <hints>
  452.     <hint type="sourcelabel">
  453.      <x>-1</x>
  454.      <y>-1</y>
  455.     </hint>
  456.     <hint type="destinationlabel">
  457.      <x>333</x>
  458.      <y>210</y>
  459.     </hint>
  460.    </hints>
  461.   </connection>
  462.   <connection>
  463.    <sender>actionStopCamera</sender>
  464.    <signal>triggered()</signal>
  465.    <receiver>Camera</receiver>
  466.    <slot>stopCamera()</slot>
  467.    <hints>
  468.     <hint type="sourcelabel">
  469.      <x>-1</x>
  470.      <y>-1</y>
  471.     </hint>
  472.     <hint type="destinationlabel">
  473.      <x>333</x>
  474.      <y>210</y>
  475.     </hint>
  476.    </hints>
  477.   </connection>
  478.  </connections>
  479.  <slots>
  480.   <slot>record()</slot>
  481.   <slot>pause()</slot>
  482.   <slot>stop()</slot>
  483.   <slot>enablePreview(bool)</slot>
  484.   <slot>configureCaptureSettings()</slot>
  485.   <slot>takeImage()</slot>
  486.   <slot>startCamera()</slot>
  487.   <slot>toggleLock()</slot>
  488.   <slot>setMuted(bool)</slot>
  489.   <slot>stopCamera()</slot>
  490.   <slot>setExposureCompensation(int)</slot>
  491.  </slots>
  492. </ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement