source: tspsg/ui/settingsdialog.ui @ f1fb54b9f7

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since f1fb54b9f7 was f1fb54b9f7, checked in by Oleksii Serdiuk, 14 years ago

+ Added the ability to generate fractional random numbers.
+ Added "Scroll to the end of solution output after solving" option.

  • Set the accuracy for fractional numbers on output to 2 decimail places.
  • Updated translations to reflect changes.
  • Property mode set to 100644
File size: 11.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <author>Lёppa: $Id$</author>
4 <class>SettingsDialog</class>
5 <widget class="QDialog" name="SettingsDialog">
6  <property name="windowTitle">
7   <string>Preferences</string>
8  </property>
9  <property name="windowIcon">
10   <iconset resource="../resources/tspsg.qrc">
11    <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
12  </property>
13  <widget class="Line" name="lineHorizontal">
14   <property name="maximumSize">
15    <size>
16     <width>16777215</width>
17     <height>2</height>
18    </size>
19   </property>
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>
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>
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">
159     <item>
160      <layout class="QHBoxLayout" name="_2">
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>
188     </item>
189     <item>
190      <layout class="QHBoxLayout" name="_3">
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>
218     </item>
219    </layout>
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>
228     </property>
229     <property name="statusTip">
230      <string>Font face for printing</string>
231     </property>
232     <property name="text">
233      <string>&amp;Font...</string>
234     </property>
235     <property name="icon">
236      <iconset resource="../resources/tspsg.qrc">
237       <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
238     </property>
239    </widget>
240    <widget class="QPushButton" name="buttonColor">
241     <property name="cursor">
242      <cursorShape>PointingHandCursor</cursorShape>
243     </property>
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>
256   <widget class="QCheckBox" name="cbAutosize">
257    <property name="cursor">
258     <cursorShape>PointingHandCursor</cursorShape>
259    </property>
260    <property name="statusTip">
261     <string>Automatically resize rows and columns to their contents</string>
262    </property>
263    <property name="text">
264     <string>Autosize of rows and columns</string>
265    </property>
266   </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>Show or hide solution steps' matrices based on number of cities in the task</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>
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>
322  </widget>
323 </widget>
324 <resources>
325  <include location="../resources/tspsg.qrc"/>
326 </resources>
327 <connections>
328  <connection>
329   <sender>buttonBox</sender>
330   <signal>accepted()</signal>
331   <receiver>SettingsDialog</receiver>
332   <slot>accept()</slot>
333   <hints>
334    <hint type="sourcelabel">
335     <x>155</x>
336     <y>252</y>
337    </hint>
338    <hint type="destinationlabel">
339     <x>306</x>
340     <y>231</y>
341    </hint>
342   </hints>
343  </connection>
344  <connection>
345   <sender>buttonBox</sender>
346   <signal>rejected()</signal>
347   <receiver>SettingsDialog</receiver>
348   <slot>reject()</slot>
349   <hints>
350    <hint type="sourcelabel">
351     <x>155</x>
352     <y>252</y>
353    </hint>
354    <hint type="destinationlabel">
355     <x>262</x>
356     <y>245</y>
357    </hint>
358   </hints>
359  </connection>
360  <connection>
361   <sender>cbShowMatrix</sender>
362   <signal>toggled(bool)</signal>
363   <receiver>cbCitiesLimit</receiver>
364   <slot>setEnabled(bool)</slot>
365   <hints>
366    <hint type="sourcelabel">
367     <x>81</x>
368     <y>8</y>
369    </hint>
370    <hint type="destinationlabel">
371     <x>46</x>
372     <y>8</y>
373    </hint>
374   </hints>
375  </connection>
376  <connection>
377   <sender>cbShowMatrix</sender>
378   <signal>toggled(bool)</signal>
379   <receiver>cbCitiesLimit</receiver>
380   <slot>setChecked(bool)</slot>
381   <hints>
382    <hint type="sourcelabel">
383     <x>81</x>
384     <y>8</y>
385    </hint>
386    <hint type="destinationlabel">
387     <x>46</x>
388     <y>8</y>
389    </hint>
390   </hints>
391  </connection>
392  <connection>
393   <sender>cbCitiesLimit</sender>
394   <signal>toggled(bool)</signal>
395   <receiver>spinCitiesLimit</receiver>
396   <slot>setEnabled(bool)</slot>
397   <hints>
398    <hint type="sourcelabel">
399     <x>46</x>
400     <y>8</y>
401    </hint>
402    <hint type="destinationlabel">
403     <x>29</x>
404     <y>9</y>
405    </hint>
406   </hints>
407  </connection>
408 </connections>
409</ui>
Note: See TracBrowser for help on using the repository browser.