qtmobility/examples/sensors/sensor_explorer/explorer.ui
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
       
     3 /****************************************************************************
       
     4 **
       
     5 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     6 ** All rights reserved.
       
     7 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     8 **
       
     9 ** This file is part of the Qt Mobility Components.
       
    10 **
       
    11 ** $QT_BEGIN_LICENSE:LGPL$
       
    12 ** No Commercial Usage
       
    13 ** This file contains pre-release code and may not be distributed.
       
    14 ** You may use this file in accordance with the terms and conditions
       
    15 ** contained in the Technology Preview License Agreement accompanying
       
    16 ** this package.
       
    17 **
       
    18 ** GNU Lesser General Public License Usage
       
    19 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    20 ** General Public License version 2.1 as published by the Free Software
       
    21 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    22 ** packaging of this file.  Please review the following information to
       
    23 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    24 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    25 **
       
    26 ** In addition, as a special exception, Nokia gives you certain additional
       
    27 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    28 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    29 **
       
    30 ** If you have questions regarding the use of this file, please contact
       
    31 ** Nokia at qt-info@nokia.com.
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 **
       
    39 **
       
    40 ** $QT_END_LICENSE$
       
    41 **
       
    42 ****************************************************************************/
       
    43 -->
       
    44 <ui version="4.0">
     2 <ui version="4.0">
    45  <class>Explorer</class>
     3  <class>Explorer</class>
    46  <widget class="QMainWindow" name="Explorer">
     4  <widget class="QMainWindow" name="Explorer">
    47   <property name="geometry">
     5   <property name="geometry">
    48    <rect>
     6    <rect>
    49     <x>0</x>
     7     <x>0</x>
    50     <y>0</y>
     8     <y>0</y>
    51     <width>665</width>
     9     <width>760</width>
    52     <height>547</height>
    10     <height>636</height>
    53    </rect>
    11    </rect>
    54   </property>
    12   </property>
    55   <property name="sizePolicy">
    13   <property name="sizePolicy">
    56    <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
    14    <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
    57     <horstretch>0</horstretch>
    15     <horstretch>0</horstretch>
    60   </property>
    18   </property>
    61   <property name="windowTitle">
    19   <property name="windowTitle">
    62    <string>MainWindow</string>
    20    <string>MainWindow</string>
    63   </property>
    21   </property>
    64   <widget class="QWidget" name="centralwidget">
    22   <widget class="QWidget" name="centralwidget">
    65    <layout class="QVBoxLayout" name="verticalLayout">
    23    <layout class="QVBoxLayout" name="verticalLayout_4">
       
    24     <property name="spacing">
       
    25      <number>9</number>
       
    26     </property>
    66     <item>
    27     <item>
    67      <widget class="QLabel" name="label">
    28      <widget class="QLabel" name="label">
    68       <property name="text">
    29       <property name="text">
    69        <string>Sensors that were detected on the device are listed in the list on the left, grouped by type. The reading properties for the sensor will be presented on the right.</string>
    30        <string>Sensors that were detected on the device are listed in the list on the left, grouped by type. The reading properties for the sensor will be presented on the right.</string>
    70       </property>
    31       </property>
    75        <bool>true</bool>
    36        <bool>true</bool>
    76       </property>
    37       </property>
    77      </widget>
    38      </widget>
    78     </item>
    39     </item>
    79     <item>
    40     <item>
    80      <widget class="QSplitter" name="widget">
    41      <widget class="QWidget" name="widget" native="true">
    81       <property name="sizePolicy">
    42       <layout class="QHBoxLayout" name="horizontalLayout">
    82        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
    43        <property name="spacing">
    83         <horstretch>0</horstretch>
    44         <number>9</number>
    84         <verstretch>0</verstretch>
       
    85        </sizepolicy>
       
    86       </property>
       
    87       <property name="orientation">
       
    88        <enum>Qt::Horizontal</enum>
       
    89       </property>
       
    90       <widget class="QGroupBox" name="groupBox">
       
    91        <property name="title">
       
    92         <string>Sensor</string>
       
    93        </property>
    45        </property>
    94        <layout class="QHBoxLayout" name="horizontalLayout">
    46        <property name="margin">
    95         <property name="margin">
    47         <number>0</number>
    96          <number>3</number>
    48        </property>
    97         </property>
    49        <item>
    98         <item>
    50         <widget class="QWidget" name="widget_2" native="true">
    99          <widget class="QTreeWidget" name="m_sensors">
    51          <layout class="QVBoxLayout" name="verticalLayout">
   100           <property name="sizePolicy">
    52           <property name="spacing">
   101            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
    53            <number>9</number>
   102             <horstretch>0</horstretch>
       
   103             <verstretch>0</verstretch>
       
   104            </sizepolicy>
       
   105           </property>
    54           </property>
   106           <property name="alternatingRowColors">
    55           <property name="margin">
   107            <bool>true</bool>
    56            <number>0</number>
   108           </property>
    57           </property>
   109           <property name="selectionBehavior">
    58           <item>
   110            <enum>QAbstractItemView::SelectRows</enum>
    59            <widget class="QLabel" name="label_2">
       
    60             <property name="text">
       
    61              <string>Sensor</string>
       
    62             </property>
       
    63             <property name="buddy">
       
    64              <cstring>sensors</cstring>
       
    65             </property>
       
    66            </widget>
       
    67           </item>
       
    68           <item>
       
    69            <widget class="QTreeWidget" name="sensors">
       
    70             <property name="sizePolicy">
       
    71              <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
       
    72               <horstretch>0</horstretch>
       
    73               <verstretch>0</verstretch>
       
    74              </sizepolicy>
       
    75             </property>
       
    76             <property name="alternatingRowColors">
       
    77              <bool>true</bool>
       
    78             </property>
       
    79             <property name="selectionBehavior">
       
    80              <enum>QAbstractItemView::SelectRows</enum>
       
    81             </property>
       
    82             <property name="rootIsDecorated">
       
    83              <bool>false</bool>
       
    84             </property>
       
    85             <property name="itemsExpandable">
       
    86              <bool>false</bool>
       
    87             </property>
       
    88             <property name="expandsOnDoubleClick">
       
    89              <bool>false</bool>
       
    90             </property>
       
    91             <attribute name="headerVisible">
       
    92              <bool>false</bool>
       
    93             </attribute>
       
    94             <attribute name="headerVisible">
       
    95              <bool>false</bool>
       
    96             </attribute>
       
    97             <column>
       
    98              <property name="text">
       
    99               <string notr="true">Sensor</string>
       
   100              </property>
       
   101             </column>
       
   102             <item>
       
   103              <property name="text">
       
   104               <string notr="true">dummy.accelerometer</string>
       
   105              </property>
       
   106             </item>
       
   107            </widget>
       
   108           </item>
       
   109          </layout>
       
   110         </widget>
       
   111        </item>
       
   112        <item>
       
   113         <widget class="QScrollArea" name="scrollArea">
       
   114          <property name="frameShape">
       
   115           <enum>QFrame::NoFrame</enum>
       
   116          </property>
       
   117          <property name="widgetResizable">
       
   118           <bool>true</bool>
       
   119          </property>
       
   120          <widget class="QWidget" name="scrollAreaWidgetContents">
       
   121           <property name="geometry">
       
   122            <rect>
       
   123             <x>0</x>
       
   124             <y>0</y>
       
   125             <width>477</width>
       
   126             <height>556</height>
       
   127            </rect>
   111           </property>
   128           </property>
   112           <property name="rootIsDecorated">
   129           <layout class="QVBoxLayout" name="verticalLayout_5">
   113            <bool>false</bool>
   130            <property name="spacing">
   114           </property>
   131             <number>9</number>
   115           <property name="columnCount">
       
   116            <number>1</number>
       
   117           </property>
       
   118           <attribute name="headerVisible">
       
   119            <bool>false</bool>
       
   120           </attribute>
       
   121           <attribute name="headerVisible">
       
   122            <bool>false</bool>
       
   123           </attribute>
       
   124           <column>
       
   125            <property name="text">
       
   126             <string>Sensor</string>
       
   127            </property>
   132            </property>
   128           </column>
   133            <property name="margin">
   129           <item>
   134             <number>0</number>
   130            <property name="text">
       
   131             <string>QAccelerometer</string>
       
   132            </property>
   135            </property>
   133            <item>
   136            <item>
   134             <property name="text">
   137             <widget class="QWidget" name="widget_4" native="true">
   135              <string>dummy.accelerometer</string>
   138              <property name="sizePolicy">
   136             </property>
   139               <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
       
   140                <horstretch>0</horstretch>
       
   141                <verstretch>0</verstretch>
       
   142               </sizepolicy>
       
   143              </property>
       
   144              <layout class="QVBoxLayout" name="verticalLayout_3">
       
   145               <property name="spacing">
       
   146                <number>9</number>
       
   147               </property>
       
   148               <property name="margin">
       
   149                <number>0</number>
       
   150               </property>
       
   151               <item>
       
   152                <widget class="QLabel" name="label_4">
       
   153                 <property name="text">
       
   154                  <string>Sensor Properties</string>
       
   155                 </property>
       
   156                </widget>
       
   157               </item>
       
   158               <item>
       
   159                <widget class="QTableWidget" name="sensorprops">
       
   160                 <property name="sizePolicy">
       
   161                  <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
       
   162                   <horstretch>0</horstretch>
       
   163                   <verstretch>0</verstretch>
       
   164                  </sizepolicy>
       
   165                 </property>
       
   166                 <property name="verticalScrollBarPolicy">
       
   167                  <enum>Qt::ScrollBarAlwaysOff</enum>
       
   168                 </property>
       
   169                 <property name="alternatingRowColors">
       
   170                  <bool>true</bool>
       
   171                 </property>
       
   172                 <property name="columnCount">
       
   173                  <number>3</number>
       
   174                 </property>
       
   175                 <attribute name="verticalHeaderVisible">
       
   176                  <bool>false</bool>
       
   177                 </attribute>
       
   178                 <attribute name="verticalHeaderVisible">
       
   179                  <bool>false</bool>
       
   180                 </attribute>
       
   181                 <row>
       
   182                  <property name="text">
       
   183                   <string notr="true">1</string>
       
   184                  </property>
       
   185                 </row>
       
   186                 <column>
       
   187                  <property name="text">
       
   188                   <string>Name</string>
       
   189                  </property>
       
   190                 </column>
       
   191                 <column>
       
   192                  <property name="text">
       
   193                   <string>Type</string>
       
   194                  </property>
       
   195                 </column>
       
   196                 <column>
       
   197                  <property name="text">
       
   198                   <string>Value</string>
       
   199                  </property>
       
   200                 </column>
       
   201                 <item row="0" column="0">
       
   202                  <property name="text">
       
   203                   <string notr="true">supportedIntervals</string>
       
   204                  </property>
       
   205                 </item>
       
   206                 <item row="0" column="1">
       
   207                  <property name="text">
       
   208                   <string notr="true">qrangelist</string>
       
   209                  </property>
       
   210                 </item>
       
   211                 <item row="0" column="2">
       
   212                  <property name="text">
       
   213                   <string/>
       
   214                  </property>
       
   215                 </item>
       
   216                </widget>
       
   217               </item>
       
   218              </layout>
       
   219             </widget>
   137            </item>
   220            </item>
   138           </item>
   221            <item>
       
   222             <widget class="QWidget" name="widget_3" native="true">
       
   223              <layout class="QHBoxLayout" name="horizontalLayout_2">
       
   224               <property name="spacing">
       
   225                <number>9</number>
       
   226               </property>
       
   227               <property name="margin">
       
   228                <number>0</number>
       
   229               </property>
       
   230               <item>
       
   231                <widget class="QPushButton" name="start">
       
   232                 <property name="text">
       
   233                  <string>start</string>
       
   234                 </property>
       
   235                </widget>
       
   236               </item>
       
   237               <item>
       
   238                <widget class="QPushButton" name="stop">
       
   239                 <property name="text">
       
   240                  <string>stop</string>
       
   241                 </property>
       
   242                </widget>
       
   243               </item>
       
   244               <item>
       
   245                <spacer name="horizontalSpacer">
       
   246                 <property name="orientation">
       
   247                  <enum>Qt::Horizontal</enum>
       
   248                 </property>
       
   249                 <property name="sizeHint" stdset="0">
       
   250                  <size>
       
   251                   <width>40</width>
       
   252                   <height>20</height>
       
   253                  </size>
       
   254                 </property>
       
   255                </spacer>
       
   256               </item>
       
   257              </layout>
       
   258             </widget>
       
   259            </item>
       
   260            <item>
       
   261             <widget class="QWidget" name="widget_5" native="true">
       
   262              <property name="sizePolicy">
       
   263               <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
       
   264                <horstretch>0</horstretch>
       
   265                <verstretch>0</verstretch>
       
   266               </sizepolicy>
       
   267              </property>
       
   268              <layout class="QVBoxLayout" name="verticalLayout_2">
       
   269               <property name="spacing">
       
   270                <number>9</number>
       
   271               </property>
       
   272               <property name="margin">
       
   273                <number>0</number>
       
   274               </property>
       
   275               <item>
       
   276                <widget class="QLabel" name="label_6">
       
   277                 <property name="text">
       
   278                  <string>Reading Properties</string>
       
   279                 </property>
       
   280                </widget>
       
   281               </item>
       
   282               <item>
       
   283                <widget class="QTableWidget" name="reading">
       
   284                 <property name="sizePolicy">
       
   285                  <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
       
   286                   <horstretch>0</horstretch>
       
   287                   <verstretch>0</verstretch>
       
   288                  </sizepolicy>
       
   289                 </property>
       
   290                 <property name="verticalScrollBarPolicy">
       
   291                  <enum>Qt::ScrollBarAlwaysOff</enum>
       
   292                 </property>
       
   293                 <property name="alternatingRowColors">
       
   294                  <bool>true</bool>
       
   295                 </property>
       
   296                 <property name="columnCount">
       
   297                  <number>4</number>
       
   298                 </property>
       
   299                 <attribute name="verticalHeaderVisible">
       
   300                  <bool>false</bool>
       
   301                 </attribute>
       
   302                 <attribute name="verticalHeaderVisible">
       
   303                  <bool>false</bool>
       
   304                 </attribute>
       
   305                 <row>
       
   306                  <property name="text">
       
   307                   <string notr="true">1</string>
       
   308                  </property>
       
   309                 </row>
       
   310                 <row>
       
   311                  <property name="text">
       
   312                   <string notr="true">2</string>
       
   313                  </property>
       
   314                 </row>
       
   315                 <column>
       
   316                  <property name="text">
       
   317                   <string>Index</string>
       
   318                  </property>
       
   319                 </column>
       
   320                 <column>
       
   321                  <property name="text">
       
   322                   <string>Value</string>
       
   323                  </property>
       
   324                 </column>
       
   325                 <column>
       
   326                  <property name="text">
       
   327                   <string>Type</string>
       
   328                  </property>
       
   329                 </column>
       
   330                 <column>
       
   331                  <property name="text">
       
   332                   <string>Value</string>
       
   333                  </property>
       
   334                 </column>
       
   335                 <item row="0" column="0">
       
   336                  <property name="text">
       
   337                   <string notr="true">0</string>
       
   338                  </property>
       
   339                 </item>
       
   340                 <item row="0" column="1">
       
   341                  <property name="text">
       
   342                   <string notr="true">x</string>
       
   343                  </property>
       
   344                 </item>
       
   345                 <item row="0" column="2">
       
   346                  <property name="text">
       
   347                   <string notr="true">qreal</string>
       
   348                  </property>
       
   349                 </item>
       
   350                 <item row="0" column="3">
       
   351                  <property name="text">
       
   352                   <string>9.8</string>
       
   353                  </property>
       
   354                 </item>
       
   355                 <item row="1" column="0">
       
   356                  <property name="text">
       
   357                   <string notr="true">0</string>
       
   358                  </property>
       
   359                 </item>
       
   360                 <item row="1" column="1">
       
   361                  <property name="text">
       
   362                   <string notr="true">changeOfBeingEaten</string>
       
   363                  </property>
       
   364                 </item>
       
   365                 <item row="1" column="2">
       
   366                  <property name="text">
       
   367                   <string notr="true">bool</string>
       
   368                  </property>
       
   369                 </item>
       
   370                 <item row="1" column="3">
       
   371                  <property name="text">
       
   372                   <string>true</string>
       
   373                  </property>
       
   374                 </item>
       
   375                </widget>
       
   376               </item>
       
   377              </layout>
       
   378             </widget>
       
   379            </item>
       
   380            <item>
       
   381             <spacer name="verticalSpacer">
       
   382              <property name="orientation">
       
   383               <enum>Qt::Vertical</enum>
       
   384              </property>
       
   385              <property name="sizeHint" stdset="0">
       
   386               <size>
       
   387                <width>0</width>
       
   388                <height>18</height>
       
   389               </size>
       
   390              </property>
       
   391             </spacer>
       
   392            </item>
       
   393           </layout>
   139          </widget>
   394          </widget>
   140         </item>
   395         </widget>
   141        </layout>
   396        </item>
   142       </widget>
   397       </layout>
   143       <widget class="QGroupBox" name="groupBox_2">
       
   144        <property name="title">
       
   145         <string>Properties</string>
       
   146        </property>
       
   147        <layout class="QHBoxLayout" name="horizontalLayout_2">
       
   148         <property name="margin">
       
   149          <number>3</number>
       
   150         </property>
       
   151         <item>
       
   152          <widget class="QTableWidget" name="m_reading">
       
   153           <property name="sizePolicy">
       
   154            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
       
   155             <horstretch>0</horstretch>
       
   156             <verstretch>0</verstretch>
       
   157            </sizepolicy>
       
   158           </property>
       
   159           <property name="alternatingRowColors">
       
   160            <bool>true</bool>
       
   161           </property>
       
   162           <property name="selectionMode">
       
   163            <enum>QAbstractItemView::ExtendedSelection</enum>
       
   164           </property>
       
   165           <property name="columnCount">
       
   166            <number>3</number>
       
   167           </property>
       
   168           <attribute name="verticalHeaderVisible">
       
   169            <bool>false</bool>
       
   170           </attribute>
       
   171           <attribute name="verticalHeaderVisible">
       
   172            <bool>false</bool>
       
   173           </attribute>
       
   174           <row>
       
   175            <property name="text">
       
   176             <string notr="true">1</string>
       
   177            </property>
       
   178           </row>
       
   179           <row>
       
   180            <property name="text">
       
   181             <string notr="true">2</string>
       
   182            </property>
       
   183           </row>
       
   184           <column>
       
   185            <property name="text">
       
   186             <string>Index</string>
       
   187            </property>
       
   188           </column>
       
   189           <column>
       
   190            <property name="text">
       
   191             <string>Name</string>
       
   192            </property>
       
   193           </column>
       
   194           <column>
       
   195            <property name="text">
       
   196             <string>Type</string>
       
   197            </property>
       
   198           </column>
       
   199           <item row="0" column="0">
       
   200            <property name="text">
       
   201             <string notr="true">0</string>
       
   202            </property>
       
   203           </item>
       
   204           <item row="0" column="1">
       
   205            <property name="text">
       
   206             <string notr="true">x</string>
       
   207            </property>
       
   208           </item>
       
   209           <item row="0" column="2">
       
   210            <property name="text">
       
   211             <string notr="true">qreal</string>
       
   212            </property>
       
   213           </item>
       
   214           <item row="1" column="0">
       
   215            <property name="text">
       
   216             <string notr="true">0</string>
       
   217            </property>
       
   218           </item>
       
   219           <item row="1" column="1">
       
   220            <property name="text">
       
   221             <string notr="true">changeOfBeingEaten</string>
       
   222            </property>
       
   223           </item>
       
   224           <item row="1" column="2">
       
   225            <property name="text">
       
   226             <string notr="true">1</string>
       
   227            </property>
       
   228           </item>
       
   229          </widget>
       
   230         </item>
       
   231        </layout>
       
   232       </widget>
       
   233      </widget>
   398      </widget>
   234     </item>
   399     </item>
   235    </layout>
   400    </layout>
   236   </widget>
   401   </widget>
   237   <widget class="QStatusBar" name="statusbar"/>
   402   <widget class="QStatusBar" name="statusbar"/>
   238  </widget>
   403  </widget>
   239  <resources/>
   404  <resources/>
   240  <connections>
   405  <connections/>
   241   <connection>
       
   242    <sender>m_sensors</sender>
       
   243    <signal>currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)</signal>
       
   244    <receiver>Explorer</receiver>
       
   245    <slot>loadReading()</slot>
       
   246    <hints>
       
   247     <hint type="sourcelabel">
       
   248      <x>148</x>
       
   249      <y>316</y>
       
   250     </hint>
       
   251     <hint type="destinationlabel">
       
   252      <x>594</x>
       
   253      <y>460</y>
       
   254     </hint>
       
   255    </hints>
       
   256   </connection>
       
   257  </connections>
       
   258  <slots>
       
   259   <slot>loadReading()</slot>
       
   260  </slots>
       
   261 </ui>
   406 </ui>