examples/script/calculator/calculator.ui
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 <ui version="4.0" >
       
     2  <class>Calculator</class>
       
     3  <widget class="QWidget" name="Calculator" >
       
     4   <property name="geometry" >
       
     5    <rect>
       
     6     <x>0</x>
       
     7     <y>0</y>
       
     8     <width>314</width>
       
     9     <height>301</height>
       
    10    </rect>
       
    11   </property>
       
    12   <property name="sizePolicy" >
       
    13    <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
       
    14     <horstretch>0</horstretch>
       
    15     <verstretch>0</verstretch>
       
    16    </sizepolicy>
       
    17   </property>
       
    18   <property name="minimumSize" >
       
    19    <size>
       
    20     <width>314</width>
       
    21     <height>301</height>
       
    22    </size>
       
    23   </property>
       
    24   <property name="maximumSize" >
       
    25    <size>
       
    26     <width>314</width>
       
    27     <height>301</height>
       
    28    </size>
       
    29   </property>
       
    30   <property name="windowTitle" >
       
    31    <string>Calculator</string>
       
    32   </property>
       
    33   <widget class="QToolButton" name="backspaceButton" >
       
    34    <property name="geometry" >
       
    35     <rect>
       
    36      <x>10</x>
       
    37      <y>50</y>
       
    38      <width>91</width>
       
    39      <height>41</height>
       
    40     </rect>
       
    41    </property>
       
    42    <property name="text" >
       
    43     <string>Backspace</string>
       
    44    </property>
       
    45   </widget>
       
    46   <widget class="QToolButton" name="clearButton" >
       
    47    <property name="geometry" >
       
    48     <rect>
       
    49      <x>110</x>
       
    50      <y>50</y>
       
    51      <width>91</width>
       
    52      <height>41</height>
       
    53     </rect>
       
    54    </property>
       
    55    <property name="text" >
       
    56     <string>Clear</string>
       
    57    </property>
       
    58   </widget>
       
    59   <widget class="QToolButton" name="clearAllButton" >
       
    60    <property name="geometry" >
       
    61     <rect>
       
    62      <x>210</x>
       
    63      <y>50</y>
       
    64      <width>91</width>
       
    65      <height>41</height>
       
    66     </rect>
       
    67    </property>
       
    68    <property name="text" >
       
    69     <string>Clear All</string>
       
    70    </property>
       
    71   </widget>
       
    72   <widget class="QToolButton" name="clearMemoryButton" >
       
    73    <property name="geometry" >
       
    74     <rect>
       
    75      <x>10</x>
       
    76      <y>100</y>
       
    77      <width>41</width>
       
    78      <height>41</height>
       
    79     </rect>
       
    80    </property>
       
    81    <property name="text" >
       
    82     <string>MC</string>
       
    83    </property>
       
    84   </widget>
       
    85   <widget class="QToolButton" name="readMemoryButton" >
       
    86    <property name="geometry" >
       
    87     <rect>
       
    88      <x>10</x>
       
    89      <y>150</y>
       
    90      <width>41</width>
       
    91      <height>41</height>
       
    92     </rect>
       
    93    </property>
       
    94    <property name="text" >
       
    95     <string>MR</string>
       
    96    </property>
       
    97   </widget>
       
    98   <widget class="QToolButton" name="setMemoryButton" >
       
    99    <property name="geometry" >
       
   100     <rect>
       
   101      <x>10</x>
       
   102      <y>200</y>
       
   103      <width>41</width>
       
   104      <height>41</height>
       
   105     </rect>
       
   106    </property>
       
   107    <property name="text" >
       
   108     <string>MS</string>
       
   109    </property>
       
   110   </widget>
       
   111   <widget class="QToolButton" name="addToMemoryButton" >
       
   112    <property name="geometry" >
       
   113     <rect>
       
   114      <x>10</x>
       
   115      <y>250</y>
       
   116      <width>41</width>
       
   117      <height>41</height>
       
   118     </rect>
       
   119    </property>
       
   120    <property name="text" >
       
   121     <string>M+</string>
       
   122    </property>
       
   123   </widget>
       
   124   <widget class="QToolButton" name="sevenButton" >
       
   125    <property name="geometry" >
       
   126     <rect>
       
   127      <x>60</x>
       
   128      <y>100</y>
       
   129      <width>41</width>
       
   130      <height>41</height>
       
   131     </rect>
       
   132    </property>
       
   133    <property name="text" >
       
   134     <string>7</string>
       
   135    </property>
       
   136   </widget>
       
   137   <widget class="QToolButton" name="eightButton" >
       
   138    <property name="geometry" >
       
   139     <rect>
       
   140      <x>110</x>
       
   141      <y>100</y>
       
   142      <width>41</width>
       
   143      <height>41</height>
       
   144     </rect>
       
   145    </property>
       
   146    <property name="text" >
       
   147     <string>8</string>
       
   148    </property>
       
   149   </widget>
       
   150   <widget class="QToolButton" name="nineButton" >
       
   151    <property name="geometry" >
       
   152     <rect>
       
   153      <x>160</x>
       
   154      <y>100</y>
       
   155      <width>41</width>
       
   156      <height>41</height>
       
   157     </rect>
       
   158    </property>
       
   159    <property name="text" >
       
   160     <string>9</string>
       
   161    </property>
       
   162   </widget>
       
   163   <widget class="QToolButton" name="fourButton" >
       
   164    <property name="geometry" >
       
   165     <rect>
       
   166      <x>60</x>
       
   167      <y>150</y>
       
   168      <width>41</width>
       
   169      <height>41</height>
       
   170     </rect>
       
   171    </property>
       
   172    <property name="text" >
       
   173     <string>4</string>
       
   174    </property>
       
   175   </widget>
       
   176   <widget class="QToolButton" name="fiveButton" >
       
   177    <property name="geometry" >
       
   178     <rect>
       
   179      <x>110</x>
       
   180      <y>150</y>
       
   181      <width>41</width>
       
   182      <height>41</height>
       
   183     </rect>
       
   184    </property>
       
   185    <property name="text" >
       
   186     <string>5</string>
       
   187    </property>
       
   188   </widget>
       
   189   <widget class="QToolButton" name="sixButton" >
       
   190    <property name="geometry" >
       
   191     <rect>
       
   192      <x>160</x>
       
   193      <y>150</y>
       
   194      <width>41</width>
       
   195      <height>41</height>
       
   196     </rect>
       
   197    </property>
       
   198    <property name="text" >
       
   199     <string>6</string>
       
   200    </property>
       
   201   </widget>
       
   202   <widget class="QToolButton" name="oneButton" >
       
   203    <property name="geometry" >
       
   204     <rect>
       
   205      <x>60</x>
       
   206      <y>200</y>
       
   207      <width>41</width>
       
   208      <height>41</height>
       
   209     </rect>
       
   210    </property>
       
   211    <property name="text" >
       
   212     <string>1</string>
       
   213    </property>
       
   214   </widget>
       
   215   <widget class="QToolButton" name="twoButton" >
       
   216    <property name="geometry" >
       
   217     <rect>
       
   218      <x>110</x>
       
   219      <y>200</y>
       
   220      <width>41</width>
       
   221      <height>41</height>
       
   222     </rect>
       
   223    </property>
       
   224    <property name="text" >
       
   225     <string>2</string>
       
   226    </property>
       
   227   </widget>
       
   228   <widget class="QToolButton" name="threeButton" >
       
   229    <property name="geometry" >
       
   230     <rect>
       
   231      <x>160</x>
       
   232      <y>200</y>
       
   233      <width>41</width>
       
   234      <height>41</height>
       
   235     </rect>
       
   236    </property>
       
   237    <property name="text" >
       
   238     <string>3</string>
       
   239    </property>
       
   240   </widget>
       
   241   <widget class="QToolButton" name="zeroButton" >
       
   242    <property name="geometry" >
       
   243     <rect>
       
   244      <x>60</x>
       
   245      <y>250</y>
       
   246      <width>41</width>
       
   247      <height>41</height>
       
   248     </rect>
       
   249    </property>
       
   250    <property name="text" >
       
   251     <string>0</string>
       
   252    </property>
       
   253   </widget>
       
   254   <widget class="QToolButton" name="pointButton" >
       
   255    <property name="geometry" >
       
   256     <rect>
       
   257      <x>110</x>
       
   258      <y>250</y>
       
   259      <width>41</width>
       
   260      <height>41</height>
       
   261     </rect>
       
   262    </property>
       
   263    <property name="text" >
       
   264     <string>.</string>
       
   265    </property>
       
   266   </widget>
       
   267   <widget class="QToolButton" name="changeSignButton" >
       
   268    <property name="geometry" >
       
   269     <rect>
       
   270      <x>160</x>
       
   271      <y>250</y>
       
   272      <width>41</width>
       
   273      <height>41</height>
       
   274     </rect>
       
   275    </property>
       
   276    <property name="text" >
       
   277     <string>+-</string>
       
   278    </property>
       
   279   </widget>
       
   280   <widget class="QToolButton" name="plusButton" >
       
   281    <property name="geometry" >
       
   282     <rect>
       
   283      <x>210</x>
       
   284      <y>250</y>
       
   285      <width>41</width>
       
   286      <height>41</height>
       
   287     </rect>
       
   288    </property>
       
   289    <property name="text" >
       
   290     <string>+</string>
       
   291    </property>
       
   292   </widget>
       
   293   <widget class="QToolButton" name="divisionButton" >
       
   294    <property name="geometry" >
       
   295     <rect>
       
   296      <x>210</x>
       
   297      <y>100</y>
       
   298      <width>41</width>
       
   299      <height>41</height>
       
   300     </rect>
       
   301    </property>
       
   302    <property name="text" >
       
   303     <string>/</string>
       
   304    </property>
       
   305   </widget>
       
   306   <widget class="QToolButton" name="timesButton" >
       
   307    <property name="geometry" >
       
   308     <rect>
       
   309      <x>210</x>
       
   310      <y>150</y>
       
   311      <width>41</width>
       
   312      <height>41</height>
       
   313     </rect>
       
   314    </property>
       
   315    <property name="text" >
       
   316     <string>*</string>
       
   317    </property>
       
   318   </widget>
       
   319   <widget class="QToolButton" name="minusButton" >
       
   320    <property name="geometry" >
       
   321     <rect>
       
   322      <x>210</x>
       
   323      <y>200</y>
       
   324      <width>41</width>
       
   325      <height>41</height>
       
   326     </rect>
       
   327    </property>
       
   328    <property name="text" >
       
   329     <string>-</string>
       
   330    </property>
       
   331   </widget>
       
   332   <widget class="QToolButton" name="squareRootButton" >
       
   333    <property name="geometry" >
       
   334     <rect>
       
   335      <x>260</x>
       
   336      <y>100</y>
       
   337      <width>41</width>
       
   338      <height>41</height>
       
   339     </rect>
       
   340    </property>
       
   341    <property name="text" >
       
   342     <string>Sqrt</string>
       
   343    </property>
       
   344   </widget>
       
   345   <widget class="QToolButton" name="powerButton" >
       
   346    <property name="geometry" >
       
   347     <rect>
       
   348      <x>260</x>
       
   349      <y>150</y>
       
   350      <width>41</width>
       
   351      <height>41</height>
       
   352     </rect>
       
   353    </property>
       
   354    <property name="text" >
       
   355     <string>x^2</string>
       
   356    </property>
       
   357   </widget>
       
   358   <widget class="QToolButton" name="reciprocalButton" >
       
   359    <property name="geometry" >
       
   360     <rect>
       
   361      <x>260</x>
       
   362      <y>200</y>
       
   363      <width>41</width>
       
   364      <height>41</height>
       
   365     </rect>
       
   366    </property>
       
   367    <property name="text" >
       
   368     <string>1/x</string>
       
   369    </property>
       
   370   </widget>
       
   371   <widget class="QToolButton" name="equalButton" >
       
   372    <property name="geometry" >
       
   373     <rect>
       
   374      <x>260</x>
       
   375      <y>250</y>
       
   376      <width>41</width>
       
   377      <height>41</height>
       
   378     </rect>
       
   379    </property>
       
   380    <property name="text" >
       
   381     <string>=</string>
       
   382    </property>
       
   383   </widget>
       
   384   <widget class="QLineEdit" name="display" >
       
   385    <property name="geometry" >
       
   386     <rect>
       
   387      <x>10</x>
       
   388      <y>10</y>
       
   389      <width>291</width>
       
   390      <height>31</height>
       
   391     </rect>
       
   392    </property>
       
   393    <property name="maxLength" >
       
   394     <number>15</number>
       
   395    </property>
       
   396    <property name="alignment" >
       
   397     <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
       
   398    </property>
       
   399    <property name="readOnly" >
       
   400     <bool>true</bool>
       
   401    </property>
       
   402   </widget>
       
   403  </widget>
       
   404  <resources/>
       
   405  <connections/>
       
   406 </ui>