source: tspsg-svn/trunk/ui/settingsdialog.ui @ 84

Last change on this file since 84 was 82, checked in by laleppa, 15 years ago

+ Added the ability to select between using Native and Qt's File Dialog.

  • Updated translations to reflect changes.
  • Property svn:keywords set to Id
File size: 11.6 KB
RevLine 
[17]1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
[73]3 <author>Lёppa: $Id: settingsdialog.ui 82 2010-01-07 14:48:24Z laleppa $</author>
[1]4 <class>SettingsDialog</class>
[78]5 <widget class="QDialog" name="SettingsDialog">
[17]6  <property name="windowTitle">
[27]7   <string>Preferences</string>
[1]8  </property>
[17]9  <property name="windowIcon">
10   <iconset resource="../resources/tspsg.qrc">
[38]11    <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
[1]12  </property>
[56]13  <widget class="Line" name="lineHorizontal">
14   <property name="maximumSize">
15    <size>
16     <width>16777215</width>
17     <height>2</height>
18    </size>
[1]19   </property>
[56]20   <property name="frameShadow">
21    <enum>QFrame::Plain</enum>
22   </property>
23   <property name="lineWidth">
24    <number>2</number>
25   </property>
26   <property name="orientation">
27    <enum>Qt::Horizontal</enum>
28   </property>
29  </widget>
30  <widget class="QWidget" name="bgGrey" native="true">
31   <property name="sizePolicy">
32    <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
33     <horstretch>0</horstretch>
34     <verstretch>0</verstretch>
35    </sizepolicy>
36   </property>
37   <property name="palette">
38    <palette>
39     <active>
40      <colorrole role="Window">
41       <brush brushstyle="SolidPattern">
42        <color alpha="255">
43         <red>240</red>
44         <green>240</green>
45         <blue>240</blue>
46        </color>
47       </brush>
48      </colorrole>
49     </active>
50     <inactive>
51      <colorrole role="Window">
52       <brush brushstyle="SolidPattern">
53        <color alpha="255">
54         <red>240</red>
55         <green>240</green>
56         <blue>240</blue>
57        </color>
58       </brush>
59      </colorrole>
60     </inactive>
61     <disabled>
62      <colorrole role="Window">
63       <brush brushstyle="SolidPattern">
64        <color alpha="255">
65         <red>240</red>
66         <green>240</green>
67         <blue>240</blue>
68        </color>
69       </brush>
70      </colorrole>
71     </disabled>
72    </palette>
73   </property>
74   <property name="autoFillBackground">
75    <bool>true</bool>
76   </property>
77   <widget class="QToolButton" name="buttonHelp">
78    <property name="enabled">
79     <bool>false</bool>
80    </property>
81    <property name="cursor">
82     <cursorShape>PointingHandCursor</cursorShape>
83    </property>
84    <property name="toolTip">
85     <string>Help</string>
86    </property>
87    <property name="statusTip">
88     <string>Get preferences help</string>
89    </property>
90    <property name="text">
91     <string>Help</string>
92    </property>
93    <property name="icon">
94     <iconset resource="../resources/tspsg.qrc">
95      <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset>
96    </property>
97    <property name="autoRaise">
98     <bool>true</bool>
99    </property>
100   </widget>
[78]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>
110    </property>
111   </widget>
[56]112  </widget>
113  <widget class="QWidget" name="bgWhite" native="true">
114   <property name="palette">
115    <palette>
116     <active>
117      <colorrole role="Window">
118       <brush brushstyle="SolidPattern">
119        <color alpha="255">
120         <red>255</red>
121         <green>255</green>
122         <blue>255</blue>
123        </color>
124       </brush>
125      </colorrole>
126     </active>
127     <inactive>
128      <colorrole role="Window">
129       <brush brushstyle="SolidPattern">
130        <color alpha="255">
131         <red>255</red>
132         <green>255</green>
133         <blue>255</blue>
134        </color>
135       </brush>
136      </colorrole>
137     </inactive>
138     <disabled>
139      <colorrole role="Window">
140       <brush brushstyle="SolidPattern">
141        <color alpha="255">
142         <red>255</red>
143         <green>255</green>
144         <blue>255</blue>
145        </color>
146       </brush>
147      </colorrole>
148     </disabled>
149    </palette>
150   </property>
151   <property name="autoFillBackground">
152    <bool>true</bool>
153   </property>
154   <widget class="QGroupBox" name="groupRandomSettings">
155    <property name="title">
156     <string>Random values:</string>
157    </property>
158    <layout class="QVBoxLayout">
[1]159     <item>
[58]160      <layout class="QHBoxLayout" name="_2">
[56]161       <item>
162        <widget class="QLabel" name="labelRandMin">
163         <property name="text">
164          <string>&amp;Minimal:</string>
165         </property>
166         <property name="buddy">
167          <cstring>spinRandMin</cstring>
168         </property>
169        </widget>
170       </item>
171       <item>
172        <widget class="QSpinBox" name="spinRandMin">
173         <property name="sizePolicy">
174          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
175           <horstretch>0</horstretch>
176           <verstretch>0</verstretch>
177          </sizepolicy>
178         </property>
179         <property name="cursor">
180          <cursorShape>PointingHandCursor</cursorShape>
181         </property>
182         <property name="statusTip">
183          <string>Minimum for random number generation</string>
184         </property>
185        </widget>
186       </item>
187      </layout>
[1]188     </item>
189     <item>
[58]190      <layout class="QHBoxLayout" name="_3">
[56]191       <item>
192        <widget class="QLabel" name="labelRandMax">
193         <property name="text">
194          <string>Ma&amp;ximal:</string>
195         </property>
196         <property name="buddy">
197          <cstring>spinRandMax</cstring>
198         </property>
199        </widget>
200       </item>
201       <item>
202        <widget class="QSpinBox" name="spinRandMax">
203         <property name="sizePolicy">
204          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
205           <horstretch>0</horstretch>
206           <verstretch>0</verstretch>
207          </sizepolicy>
208         </property>
209         <property name="cursor">
210          <cursorShape>PointingHandCursor</cursorShape>
211         </property>
212         <property name="statusTip">
213          <string>Maximum for random number generation</string>
214         </property>
215        </widget>
216       </item>
217      </layout>
[1]218     </item>
219    </layout>
[56]220   </widget>
221   <widget class="QGroupBox" name="groupOutputSettings">
222    <property name="title">
223     <string>Output settings:</string>
224    </property>
225    <widget class="QPushButton" name="buttonFont">
226     <property name="cursor">
227      <cursorShape>PointingHandCursor</cursorShape>
[1]228     </property>
[56]229     <property name="statusTip">
230      <string>Font face for printing</string>
[1]231     </property>
[56]232     <property name="text">
233      <string>&amp;Font...</string>
[1]234     </property>
[56]235     <property name="icon">
236      <iconset resource="../resources/tspsg.qrc">
237       <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
238     </property>
[1]239    </widget>
[56]240    <widget class="QPushButton" name="buttonColor">
241     <property name="cursor">
242      <cursorShape>PointingHandCursor</cursorShape>
[1]243     </property>
[56]244     <property name="statusTip">
245      <string>Font color for printing</string>
246     </property>
247     <property name="text">
248      <string>&amp;Color...</string>
249     </property>
250     <property name="icon">
251      <iconset resource="../resources/tspsg.qrc">
252       <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
253     </property>
254    </widget>
255   </widget>
[57]256   <widget class="QCheckBox" name="cbAutosize">
[58]257    <property name="cursor">
258     <cursorShape>PointingHandCursor</cursorShape>
[57]259    </property>
260    <property name="statusTip">
[58]261     <string>Automatically resize rows and columns to their contents</string>
[57]262    </property>
263    <property name="text">
[58]264     <string>Autosize of rows and columns</string>
[57]265    </property>
266   </widget>
[78]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">
[81]283     <string>Show or hide solution steps' matrices based on number of cities in the task</string>
[78]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">
[82]291     <string>Maximum number of cities to show solution steps' matrices</string>
[78]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>
[81]300   <widget class="QCheckBox" name="cbFractionalRandom">
301    <property name="cursor">
302     <cursorShape>PointingHandCursor</cursorShape>
303    </property>
304    <property name="statusTip">
305     <string>Generate fractional random values with the accuracy of 2 decimal places</string>
306    </property>
307    <property name="text">
308     <string>Fractional random values</string>
309    </property>
310   </widget>
311   <widget class="QCheckBox" name="cbScrollToEnd">
312    <property name="cursor">
313     <cursorShape>PointingHandCursor</cursorShape>
314    </property>
315    <property name="statusTip">
316     <string>Scroll to the end of solution output after solving</string>
317    </property>
318    <property name="text">
319     <string>Scroll to solution end</string>
320    </property>
321   </widget>
[82]322   <widget class="QCheckBox" name="cbUseNativeDialogs">
323    <property name="cursor">
324     <cursorShape>PointingHandCursor</cursorShape>
325    </property>
326    <property name="statusTip">
327     <string>Use native File Open and File Save dialogs (uncheck to use Qt's File Dialogs)</string>
328    </property>
329    <property name="text">
330     <string>Use native file dialogs</string>
331    </property>
332   </widget>
[56]333  </widget>
[1]334 </widget>
335 <resources>
[17]336  <include location="../resources/tspsg.qrc"/>
[1]337 </resources>
[78]338 <connections>
339  <connection>
340   <sender>buttonBox</sender>
341   <signal>accepted()</signal>
342   <receiver>SettingsDialog</receiver>
343   <slot>accept()</slot>
344   <hints>
345    <hint type="sourcelabel">
346     <x>155</x>
347     <y>252</y>
348    </hint>
349    <hint type="destinationlabel">
350     <x>306</x>
351     <y>231</y>
352    </hint>
353   </hints>
354  </connection>
355  <connection>
356   <sender>buttonBox</sender>
357   <signal>rejected()</signal>
358   <receiver>SettingsDialog</receiver>
359   <slot>reject()</slot>
360   <hints>
361    <hint type="sourcelabel">
362     <x>155</x>
363     <y>252</y>
364    </hint>
365    <hint type="destinationlabel">
366     <x>262</x>
367     <y>245</y>
368    </hint>
369   </hints>
370  </connection>
371  <connection>
372   <sender>cbShowMatrix</sender>
373   <signal>toggled(bool)</signal>
374   <receiver>cbCitiesLimit</receiver>
375   <slot>setEnabled(bool)</slot>
376   <hints>
377    <hint type="sourcelabel">
378     <x>81</x>
379     <y>8</y>
380    </hint>
381    <hint type="destinationlabel">
382     <x>46</x>
383     <y>8</y>
384    </hint>
385   </hints>
386  </connection>
387  <connection>
388   <sender>cbShowMatrix</sender>
389   <signal>toggled(bool)</signal>
390   <receiver>cbCitiesLimit</receiver>
391   <slot>setChecked(bool)</slot>
392   <hints>
393    <hint type="sourcelabel">
394     <x>81</x>
395     <y>8</y>
396    </hint>
397    <hint type="destinationlabel">
398     <x>46</x>
399     <y>8</y>
400    </hint>
401   </hints>
402  </connection>
403  <connection>
404   <sender>cbCitiesLimit</sender>
405   <signal>toggled(bool)</signal>
406   <receiver>spinCitiesLimit</receiver>
407   <slot>setEnabled(bool)</slot>
408   <hints>
409    <hint type="sourcelabel">
410     <x>46</x>
411     <y>8</y>
412    </hint>
413    <hint type="destinationlabel">
414     <x>29</x>
415     <y>9</y>
416    </hint>
417   </hints>
418  </connection>
419 </connections>
[1]420</ui>
Note: See TracBrowser for help on using the repository browser.