qtmobility/examples/cameracapture/cameracapture.ui
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
     1 <ui version="4.0" >
       
     2  <class>CameraCapture</class>
       
     3  <widget class="QMainWindow" name="CameraCapture" >
       
     4   <property name="geometry" >
       
     5    <rect>
       
     6     <x>0</x>
       
     7     <y>0</y>
       
     8     <width>606</width>
       
     9     <height>425</height>
       
    10    </rect>
       
    11   </property>
       
    12   <property name="windowTitle" >
       
    13    <string>MainWindow</string>
       
    14   </property>
       
    15   <widget class="QWidget" name="centralwidget" >
       
    16    <layout class="QGridLayout" name="gridLayout_3" >
       
    17     <item rowspan="3" row="0" column="0" >
       
    18      <widget class="QStackedWidget" name="stackedWidget" >
       
    19       <property name="palette" >
       
    20        <palette>
       
    21         <active>
       
    22          <colorrole role="Base" >
       
    23           <brush brushstyle="SolidPattern" >
       
    24            <color alpha="255" >
       
    25             <red>255</red>
       
    26             <green>255</green>
       
    27             <blue>255</blue>
       
    28            </color>
       
    29           </brush>
       
    30          </colorrole>
       
    31          <colorrole role="Window" >
       
    32           <brush brushstyle="SolidPattern" >
       
    33            <color alpha="255" >
       
    34             <red>145</red>
       
    35             <green>145</green>
       
    36             <blue>145</blue>
       
    37            </color>
       
    38           </brush>
       
    39          </colorrole>
       
    40         </active>
       
    41         <inactive>
       
    42          <colorrole role="Base" >
       
    43           <brush brushstyle="SolidPattern" >
       
    44            <color alpha="255" >
       
    45             <red>255</red>
       
    46             <green>255</green>
       
    47             <blue>255</blue>
       
    48            </color>
       
    49           </brush>
       
    50          </colorrole>
       
    51          <colorrole role="Window" >
       
    52           <brush brushstyle="SolidPattern" >
       
    53            <color alpha="255" >
       
    54             <red>145</red>
       
    55             <green>145</green>
       
    56             <blue>145</blue>
       
    57            </color>
       
    58           </brush>
       
    59          </colorrole>
       
    60         </inactive>
       
    61         <disabled>
       
    62          <colorrole role="Base" >
       
    63           <brush brushstyle="SolidPattern" >
       
    64            <color alpha="255" >
       
    65             <red>145</red>
       
    66             <green>145</green>
       
    67             <blue>145</blue>
       
    68            </color>
       
    69           </brush>
       
    70          </colorrole>
       
    71          <colorrole role="Window" >
       
    72           <brush brushstyle="SolidPattern" >
       
    73            <color alpha="255" >
       
    74             <red>145</red>
       
    75             <green>145</green>
       
    76             <blue>145</blue>
       
    77            </color>
       
    78           </brush>
       
    79          </colorrole>
       
    80         </disabled>
       
    81        </palette>
       
    82       </property>
       
    83       <property name="currentIndex" >
       
    84        <number>-1</number>
       
    85       </property>
       
    86      </widget>
       
    87     </item>
       
    88     <item row="0" column="1" >
       
    89      <widget class="QToolButton" name="startCameraButton" >
       
    90       <property name="text" >
       
    91        <string>Start camera</string>
       
    92       </property>
       
    93       <property name="checkable" >
       
    94        <bool>true</bool>
       
    95       </property>
       
    96       <property name="checked" >
       
    97        <bool>false</bool>
       
    98       </property>
       
    99      </widget>
       
   100     </item>
       
   101     <item row="1" column="1" >
       
   102      <widget class="QGroupBox" name="imageCaptureBox" >
       
   103       <property name="enabled" >
       
   104        <bool>true</bool>
       
   105       </property>
       
   106       <property name="title" >
       
   107        <string>Image Capture</string>
       
   108       </property>
       
   109       <property name="checkable" >
       
   110        <bool>true</bool>
       
   111       </property>
       
   112       <property name="checked" >
       
   113        <bool>true</bool>
       
   114       </property>
       
   115       <layout class="QGridLayout" name="gridLayout_2" >
       
   116        <item row="0" column="0" >
       
   117         <widget class="QPushButton" name="takeImageButton" >
       
   118          <property name="text" >
       
   119           <string>Take Image</string>
       
   120          </property>
       
   121         </widget>
       
   122        </item>
       
   123        <item row="1" column="0" >
       
   124         <widget class="QLabel" name="lastImagePreviewLabel" >
       
   125          <property name="sizePolicy" >
       
   126           <sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
       
   127            <horstretch>0</horstretch>
       
   128            <verstretch>0</verstretch>
       
   129           </sizepolicy>
       
   130          </property>
       
   131          <property name="text" >
       
   132           <string/>
       
   133          </property>
       
   134         </widget>
       
   135        </item>
       
   136       </layout>
       
   137      </widget>
       
   138     </item>
       
   139     <item row="2" column="1" >
       
   140      <widget class="QGroupBox" name="videoCaptureBox" >
       
   141       <property name="title" >
       
   142        <string>Video Capture</string>
       
   143       </property>
       
   144       <property name="checkable" >
       
   145        <bool>true</bool>
       
   146       </property>
       
   147       <property name="checked" >
       
   148        <bool>true</bool>
       
   149       </property>
       
   150       <layout class="QGridLayout" name="gridLayout" >
       
   151        <item row="0" column="0" >
       
   152         <widget class="QPushButton" name="recordButton" >
       
   153          <property name="text" >
       
   154           <string>Record</string>
       
   155          </property>
       
   156         </widget>
       
   157        </item>
       
   158        <item row="1" column="0" >
       
   159         <widget class="QPushButton" name="pauseButton" >
       
   160          <property name="text" >
       
   161           <string>Pause</string>
       
   162          </property>
       
   163         </widget>
       
   164        </item>
       
   165        <item row="2" column="0" >
       
   166         <widget class="QPushButton" name="stopButton" >
       
   167          <property name="text" >
       
   168           <string>Stop</string>
       
   169          </property>
       
   170         </widget>
       
   171        </item>
       
   172        <item row="3" column="0" >
       
   173         <spacer name="verticalSpacer" >
       
   174          <property name="orientation" >
       
   175           <enum>Qt::Vertical</enum>
       
   176          </property>
       
   177          <property name="sizeHint" stdset="0" >
       
   178           <size>
       
   179            <width>20</width>
       
   180            <height>18</height>
       
   181           </size>
       
   182          </property>
       
   183         </spacer>
       
   184        </item>
       
   185       </layout>
       
   186      </widget>
       
   187     </item>
       
   188    </layout>
       
   189   </widget>
       
   190   <widget class="QMenuBar" name="menubar" >
       
   191    <property name="geometry" >
       
   192     <rect>
       
   193      <x>0</x>
       
   194      <y>0</y>
       
   195      <width>606</width>
       
   196      <height>19</height>
       
   197     </rect>
       
   198    </property>
       
   199    <widget class="QMenu" name="menuFile" >
       
   200     <property name="title" >
       
   201      <string>File</string>
       
   202     </property>
       
   203     <addaction name="actionExit" />
       
   204    </widget>
       
   205    <widget class="QMenu" name="menuDevices" >
       
   206     <property name="title" >
       
   207      <string>Devices</string>
       
   208     </property>
       
   209     <addaction name="separator" />
       
   210     <addaction name="actionSettings" />
       
   211     <addaction name="separator" />
       
   212     <addaction name="actionCamera" />
       
   213     <addaction name="actionAudio" />
       
   214    </widget>
       
   215    <addaction name="menuFile" />
       
   216    <addaction name="menuDevices" />
       
   217   </widget>
       
   218   <widget class="QStatusBar" name="statusbar" />
       
   219   <action name="actionExit" >
       
   220    <property name="text" >
       
   221     <string>Exit</string>
       
   222    </property>
       
   223   </action>
       
   224   <action name="actionSettings" >
       
   225    <property name="text" >
       
   226     <string>Settings</string>
       
   227    </property>
       
   228   </action>
       
   229   <action name="actionCamera" >
       
   230    <property name="text" >
       
   231     <string>Camera</string>
       
   232    </property>
       
   233   </action>
       
   234   <action name="actionAudio" >
       
   235    <property name="text" >
       
   236     <string>Audio</string>
       
   237    </property>
       
   238   </action>
       
   239  </widget>
       
   240  <resources/>
       
   241  <connections>
       
   242   <connection>
       
   243    <sender>recordButton</sender>
       
   244    <signal>clicked()</signal>
       
   245    <receiver>CameraCapture</receiver>
       
   246    <slot>record()</slot>
       
   247    <hints>
       
   248     <hint type="sourcelabel" >
       
   249      <x>554</x>
       
   250      <y>280</y>
       
   251     </hint>
       
   252     <hint type="destinationlabel" >
       
   253      <x>61</x>
       
   254      <y>238</y>
       
   255     </hint>
       
   256    </hints>
       
   257   </connection>
       
   258   <connection>
       
   259    <sender>stopButton</sender>
       
   260    <signal>clicked()</signal>
       
   261    <receiver>CameraCapture</receiver>
       
   262    <slot>stop()</slot>
       
   263    <hints>
       
   264     <hint type="sourcelabel" >
       
   265      <x>585</x>
       
   266      <y>352</y>
       
   267     </hint>
       
   268     <hint type="destinationlabel" >
       
   269      <x>140</x>
       
   270      <y>236</y>
       
   271     </hint>
       
   272    </hints>
       
   273   </connection>
       
   274   <connection>
       
   275    <sender>pauseButton</sender>
       
   276    <signal>clicked()</signal>
       
   277    <receiver>CameraCapture</receiver>
       
   278    <slot>pause()</slot>
       
   279    <hints>
       
   280     <hint type="sourcelabel" >
       
   281      <x>585</x>
       
   282      <y>316</y>
       
   283     </hint>
       
   284     <hint type="destinationlabel" >
       
   285      <x>234</x>
       
   286      <y>237</y>
       
   287     </hint>
       
   288    </hints>
       
   289   </connection>
       
   290   <connection>
       
   291    <sender>actionExit</sender>
       
   292    <signal>triggered()</signal>
       
   293    <receiver>CameraCapture</receiver>
       
   294    <slot>close()</slot>
       
   295    <hints>
       
   296     <hint type="sourcelabel" >
       
   297      <x>-1</x>
       
   298      <y>-1</y>
       
   299     </hint>
       
   300     <hint type="destinationlabel" >
       
   301      <x>154</x>
       
   302      <y>130</y>
       
   303     </hint>
       
   304    </hints>
       
   305   </connection>
       
   306   <connection>
       
   307    <sender>actionSettings</sender>
       
   308    <signal>triggered()</signal>
       
   309    <receiver>CameraCapture</receiver>
       
   310    <slot>settings()</slot>
       
   311    <hints>
       
   312     <hint type="sourcelabel" >
       
   313      <x>-1</x>
       
   314      <y>-1</y>
       
   315     </hint>
       
   316     <hint type="destinationlabel" >
       
   317      <x>242</x>
       
   318      <y>206</y>
       
   319     </hint>
       
   320    </hints>
       
   321   </connection>
       
   322   <connection>
       
   323    <sender>takeImageButton</sender>
       
   324    <signal>clicked()</signal>
       
   325    <receiver>CameraCapture</receiver>
       
   326    <slot>takeImage()</slot>
       
   327    <hints>
       
   328     <hint type="sourcelabel" >
       
   329      <x>518</x>
       
   330      <y>117</y>
       
   331     </hint>
       
   332     <hint type="destinationlabel" >
       
   333      <x>603</x>
       
   334      <y>169</y>
       
   335     </hint>
       
   336    </hints>
       
   337   </connection>
       
   338   <connection>
       
   339    <sender>startCameraButton</sender>
       
   340    <signal>clicked()</signal>
       
   341    <receiver>CameraCapture</receiver>
       
   342    <slot>toggleCamera()</slot>
       
   343    <hints>
       
   344     <hint type="sourcelabel" >
       
   345      <x>545</x>
       
   346      <y>51</y>
       
   347     </hint>
       
   348     <hint type="destinationlabel" >
       
   349      <x>589</x>
       
   350      <y>46</y>
       
   351     </hint>
       
   352    </hints>
       
   353   </connection>
       
   354  </connections>
       
   355  <slots>
       
   356   <slot>record()</slot>
       
   357   <slot>pause()</slot>
       
   358   <slot>stop()</slot>
       
   359   <slot>enablePreview(bool)</slot>
       
   360   <slot>settings()</slot>
       
   361   <slot>takeImage()</slot>
       
   362   <slot>toggleCamera()</slot>
       
   363  </slots>
       
   364 </ui>