Changeset 1fbf016a09 in tspsg for ui


Ignore:
Timestamp:
Dec 18, 2009, 1:57:39 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
3bcb7e8910
Parents:
140109febb
Message:

+ Added an ability to disable showing of the solution steps' matrices in solution output.

  • Replaced Ok and Cancel buttons in SettingsDialog? with QButtonBox. Now the buttons conform the interface guidelines of the target platform.
  • Increased the allowed maximum number of cities to 50. Solution steps' matrices aren't shown by default if the number of cities in task is more than 15.
  • For WinCE the size of the toolbar buttons is now determined based on the device DPI instead of its resolution.
  • Open and save file dialogs are now using native dialogs where supported.
  • Reworked About dialog a little bit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ui/settingsdialog.ui

    r140109febb r1fbf016a09  
    33 <author>Lёppa: $Id$</author>
    44 <class>SettingsDialog</class>
    5  <widget class="QWidget" name="SettingsDialog">
     5 <widget class="QDialog" name="SettingsDialog">
    66  <property name="windowTitle">
    77   <string>Preferences</string>
     
    7575    <bool>true</bool>
    7676   </property>
    77    <widget class="QPushButton" name="buttonCancel">
    78     <property name="cursor">
    79      <cursorShape>PointingHandCursor</cursorShape>
    80     </property>
    81     <property name="statusTip">
    82      <string>Close without saving preferences</string>
    83     </property>
    84     <property name="text">
    85      <string>&amp;Cancel</string>
    86     </property>
    87     <property name="icon">
    88      <iconset resource="../resources/tspsg.qrc">
    89       <normaloff>:/images/icons/button_cancel.png</normaloff>:/images/icons/button_cancel.png</iconset>
    90     </property>
    91    </widget>
    92    <widget class="QPushButton" name="buttonOK">
    93     <property name="cursor">
    94      <cursorShape>PointingHandCursor</cursorShape>
    95     </property>
    96     <property name="statusTip">
    97      <string>Save new preferences</string>
    98     </property>
    99     <property name="text">
    100      <string>&amp;OK</string>
    101     </property>
    102     <property name="icon">
    103      <iconset resource="../resources/tspsg.qrc">
    104       <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
    105     </property>
    106     <property name="default">
    107      <bool>true</bool>
    108     </property>
    109    </widget>
    11077   <widget class="QToolButton" name="buttonHelp">
    11178    <property name="enabled">
     
    13097    <property name="autoRaise">
    13198     <bool>true</bool>
     99    </property>
     100   </widget>
     101   <widget class="QDialogButtonBox" name="buttonBox">
     102    <property name="sizePolicy">
     103     <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
     104      <horstretch>0</horstretch>
     105      <verstretch>0</verstretch>
     106     </sizepolicy>
     107    </property>
     108    <property name="standardButtons">
     109     <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
    132110    </property>
    133111   </widget>
     
    287265    </property>
    288266   </widget>
     267   <widget class="QCheckBox" name="cbShowMatrix">
     268    <property name="cursor">
     269     <cursorShape>PointingHandCursor</cursorShape>
     270    </property>
     271    <property name="statusTip">
     272     <string>Show solution steps' matrices for every solution step</string>
     273    </property>
     274    <property name="text">
     275     <string>Show solution steps' matrices</string>
     276    </property>
     277   </widget>
     278   <widget class="QCheckBox" name="cbCitiesLimit">
     279    <property name="cursor">
     280     <cursorShape>PointingHandCursor</cursorShape>
     281    </property>
     282    <property name="statusTip">
     283     <string>Use the number of cities in task to determine whether to show solution steps' matrices</string>
     284    </property>
     285    <property name="text">
     286     <string>Only when &lt;=</string>
     287    </property>
     288   </widget>
     289   <widget class="QSpinBox" name="spinCitiesLimit">
     290    <property name="statusTip">
     291     <string>Maximum number of cities for showing solution steps' matrices</string>
     292    </property>
     293    <property name="suffix">
     294     <string comment="Don't forget a space at the beginning!"> cities</string>
     295    </property>
     296    <property name="minimum">
     297     <number>1</number>
     298    </property>
     299   </widget>
    289300  </widget>
    290301 </widget>
     
    292303  <include location="../resources/tspsg.qrc"/>
    293304 </resources>
    294  <connections/>
     305 <connections>
     306  <connection>
     307   <sender>buttonBox</sender>
     308   <signal>accepted()</signal>
     309   <receiver>SettingsDialog</receiver>
     310   <slot>accept()</slot>
     311   <hints>
     312    <hint type="sourcelabel">
     313     <x>155</x>
     314     <y>252</y>
     315    </hint>
     316    <hint type="destinationlabel">
     317     <x>306</x>
     318     <y>231</y>
     319    </hint>
     320   </hints>
     321  </connection>
     322  <connection>
     323   <sender>buttonBox</sender>
     324   <signal>rejected()</signal>
     325   <receiver>SettingsDialog</receiver>
     326   <slot>reject()</slot>
     327   <hints>
     328    <hint type="sourcelabel">
     329     <x>155</x>
     330     <y>252</y>
     331    </hint>
     332    <hint type="destinationlabel">
     333     <x>262</x>
     334     <y>245</y>
     335    </hint>
     336   </hints>
     337  </connection>
     338  <connection>
     339   <sender>cbShowMatrix</sender>
     340   <signal>toggled(bool)</signal>
     341   <receiver>cbCitiesLimit</receiver>
     342   <slot>setEnabled(bool)</slot>
     343   <hints>
     344    <hint type="sourcelabel">
     345     <x>81</x>
     346     <y>8</y>
     347    </hint>
     348    <hint type="destinationlabel">
     349     <x>46</x>
     350     <y>8</y>
     351    </hint>
     352   </hints>
     353  </connection>
     354  <connection>
     355   <sender>cbShowMatrix</sender>
     356   <signal>toggled(bool)</signal>
     357   <receiver>cbCitiesLimit</receiver>
     358   <slot>setChecked(bool)</slot>
     359   <hints>
     360    <hint type="sourcelabel">
     361     <x>81</x>
     362     <y>8</y>
     363    </hint>
     364    <hint type="destinationlabel">
     365     <x>46</x>
     366     <y>8</y>
     367    </hint>
     368   </hints>
     369  </connection>
     370  <connection>
     371   <sender>cbCitiesLimit</sender>
     372   <signal>toggled(bool)</signal>
     373   <receiver>spinCitiesLimit</receiver>
     374   <slot>setEnabled(bool)</slot>
     375   <hints>
     376    <hint type="sourcelabel">
     377     <x>46</x>
     378     <y>8</y>
     379    </hint>
     380    <hint type="destinationlabel">
     381     <x>29</x>
     382     <y>9</y>
     383    </hint>
     384   </hints>
     385  </connection>
     386 </connections>
    295387</ui>
Note: See TracChangeset for help on using the changeset viewer.