source: tspsg/ui/settingsdialog.ui @ a5be8eb2c8

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

Reworked Settings Dialog layout.

  • Property mode set to 100644
File size: 16.4 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   <layout class="QVBoxLayout" name="verticalLayout_3">
155    <item>
156     <widget class="QTabWidget" name="tabWidget">
157      <property name="currentIndex">
158       <number>0</number>
159      </property>
160      <widget class="QWidget" name="tabGeneral">
161       <attribute name="title">
162        <string>General</string>
163       </attribute>
164       <attribute name="toolTip">
165        <string>General TSPSG settings</string>
166       </attribute>
167       <layout class="QVBoxLayout" name="verticalLayout_2">
168        <item>
169         <widget class="QCheckBox" name="cbAutosize">
170          <property name="cursor">
171           <cursorShape>PointingHandCursor</cursorShape>
172          </property>
173          <property name="statusTip">
174           <string>Automatically resize rows and columns to their contents</string>
175          </property>
176          <property name="text">
177           <string>Autosize of rows and columns</string>
178          </property>
179         </widget>
180        </item>
181        <item>
182         <widget class="QCheckBox" name="cbUseNativeDialogs">
183          <property name="cursor">
184           <cursorShape>PointingHandCursor</cursorShape>
185          </property>
186          <property name="statusTip">
187           <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string>
188          </property>
189          <property name="text">
190           <string>Use native file dialogs</string>
191          </property>
192         </widget>
193        </item>
194        <item>
195         <spacer name="verticalSpacer_2">
196          <property name="orientation">
197           <enum>Qt::Vertical</enum>
198          </property>
199          <property name="sizeHint" stdset="0">
200           <size>
201            <width>0</width>
202            <height>0</height>
203           </size>
204          </property>
205         </spacer>
206        </item>
207       </layout>
208      </widget>
209      <widget class="QWidget" name="tabRandom">
210       <attribute name="title">
211        <string>Random</string>
212       </attribute>
213       <attribute name="toolTip">
214        <string>Random number generation settings</string>
215       </attribute>
216       <layout class="QVBoxLayout" name="verticalLayout_4">
217        <item>
218         <layout class="QHBoxLayout" name="horizontalLayout_2">
219          <item>
220           <layout class="QFormLayout" name="formLayout">
221            <item row="0" column="0">
222             <widget class="QLabel" name="labelRandMin">
223              <property name="text">
224               <string>&amp;Minimal:</string>
225              </property>
226              <property name="buddy">
227               <cstring>spinRandMin</cstring>
228              </property>
229             </widget>
230            </item>
231            <item row="0" column="1">
232             <widget class="QSpinBox" name="spinRandMin">
233              <property name="cursor">
234               <cursorShape>PointingHandCursor</cursorShape>
235              </property>
236              <property name="statusTip">
237               <string>Minimum for random number generation</string>
238              </property>
239             </widget>
240            </item>
241            <item row="1" column="0">
242             <widget class="QLabel" name="labelRandMax">
243              <property name="text">
244               <string>Ma&amp;ximal:</string>
245              </property>
246              <property name="buddy">
247               <cstring>spinRandMax</cstring>
248              </property>
249             </widget>
250            </item>
251            <item row="1" column="1">
252             <widget class="QSpinBox" name="spinRandMax">
253              <property name="cursor">
254               <cursorShape>PointingHandCursor</cursorShape>
255              </property>
256              <property name="statusTip">
257               <string>Maximum for random number generation</string>
258              </property>
259             </widget>
260            </item>
261           </layout>
262          </item>
263          <item>
264           <spacer name="horizontalSpacer_5">
265            <property name="orientation">
266             <enum>Qt::Horizontal</enum>
267            </property>
268            <property name="sizeHint" stdset="0">
269             <size>
270              <width>10</width>
271              <height>0</height>
272             </size>
273            </property>
274           </spacer>
275          </item>
276         </layout>
277        </item>
278        <item>
279         <widget class="QCheckBox" name="cbFractionalRandom">
280          <property name="cursor">
281           <cursorShape>PointingHandCursor</cursorShape>
282          </property>
283          <property name="statusTip">
284           <string>Generate fractional random values with the accuracy of 2 decimal places</string>
285          </property>
286          <property name="text">
287           <string>Fractional random values</string>
288          </property>
289         </widget>
290        </item>
291        <item>
292         <spacer name="verticalSpacer_3">
293          <property name="orientation">
294           <enum>Qt::Vertical</enum>
295          </property>
296          <property name="sizeHint" stdset="0">
297           <size>
298            <width>0</width>
299            <height>25</height>
300           </size>
301          </property>
302         </spacer>
303        </item>
304       </layout>
305      </widget>
306      <widget class="QWidget" name="tabOutput">
307       <attribute name="title">
308        <string>Output</string>
309       </attribute>
310       <attribute name="toolTip">
311        <string>Solution output settings</string>
312       </attribute>
313       <layout class="QVBoxLayout" name="verticalLayout">
314        <item>
315         <widget class="QCheckBox" name="cbShowMatrix">
316          <property name="cursor">
317           <cursorShape>PointingHandCursor</cursorShape>
318          </property>
319          <property name="statusTip">
320           <string>Show solution steps' matrices for every solution step</string>
321          </property>
322          <property name="text">
323           <string>Show solution steps' matrices</string>
324          </property>
325         </widget>
326        </item>
327        <item>
328         <layout class="QHBoxLayout" name="layoutCititesLimit">
329          <property name="spacing">
330           <number>0</number>
331          </property>
332          <item>
333           <spacer name="horizontalSpacer_3">
334            <property name="orientation">
335             <enum>Qt::Horizontal</enum>
336            </property>
337            <property name="sizeType">
338             <enum>QSizePolicy::Fixed</enum>
339            </property>
340            <property name="sizeHint" stdset="0">
341             <size>
342              <width>10</width>
343              <height>0</height>
344             </size>
345            </property>
346           </spacer>
347          </item>
348          <item>
349           <widget class="QCheckBox" name="cbCitiesLimit">
350            <property name="cursor">
351             <cursorShape>PointingHandCursor</cursorShape>
352            </property>
353            <property name="statusTip">
354             <string>Show or hide solution steps' matrices based on number of cities in the task</string>
355            </property>
356            <property name="text">
357             <string>Only when &lt;=</string>
358            </property>
359           </widget>
360          </item>
361          <item>
362           <widget class="QSpinBox" name="spinCitiesLimit">
363            <property name="statusTip">
364             <string>Maximum number of cities to show solution steps' matrices</string>
365            </property>
366            <property name="suffix">
367             <string comment="Don't forget a space at the beginning!"> cities</string>
368            </property>
369            <property name="minimum">
370             <number>1</number>
371            </property>
372           </widget>
373          </item>
374          <item>
375           <spacer name="horizontalSpacer_4">
376            <property name="orientation">
377             <enum>Qt::Horizontal</enum>
378            </property>
379            <property name="sizeHint" stdset="0">
380             <size>
381              <width>0</width>
382              <height>0</height>
383             </size>
384            </property>
385           </spacer>
386          </item>
387         </layout>
388        </item>
389        <item>
390         <widget class="QCheckBox" name="cbScrollToEnd">
391          <property name="cursor">
392           <cursorShape>PointingHandCursor</cursorShape>
393          </property>
394          <property name="statusTip">
395           <string>Scroll to the end of solution output after solving</string>
396          </property>
397          <property name="text">
398           <string>Scroll to solution end</string>
399          </property>
400         </widget>
401        </item>
402        <item>
403         <layout class="QHBoxLayout" name="horizontalLayout">
404          <item>
405           <widget class="QPushButton" name="buttonFont">
406            <property name="cursor">
407             <cursorShape>PointingHandCursor</cursorShape>
408            </property>
409            <property name="statusTip">
410             <string>Font face for solution output</string>
411            </property>
412            <property name="text">
413             <string>&amp;Font...</string>
414            </property>
415            <property name="icon">
416             <iconset resource="../resources/tspsg.qrc">
417              <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
418            </property>
419           </widget>
420          </item>
421          <item>
422           <widget class="QPushButton" name="buttonColor">
423            <property name="cursor">
424             <cursorShape>PointingHandCursor</cursorShape>
425            </property>
426            <property name="statusTip">
427             <string>Font color for solution output</string>
428            </property>
429            <property name="text">
430             <string>&amp;Color...</string>
431            </property>
432            <property name="icon">
433             <iconset resource="../resources/tspsg.qrc">
434              <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
435            </property>
436           </widget>
437          </item>
438          <item>
439           <spacer name="horizontalSpacer_2">
440            <property name="orientation">
441             <enum>Qt::Horizontal</enum>
442            </property>
443            <property name="sizeHint" stdset="0">
444             <size>
445              <width>0</width>
446              <height>0</height>
447             </size>
448            </property>
449           </spacer>
450          </item>
451         </layout>
452        </item>
453        <item>
454         <spacer name="verticalSpacer">
455          <property name="orientation">
456           <enum>Qt::Vertical</enum>
457          </property>
458          <property name="sizeHint" stdset="0">
459           <size>
460            <width>0</width>
461            <height>0</height>
462           </size>
463          </property>
464         </spacer>
465        </item>
466       </layout>
467      </widget>
468     </widget>
469    </item>
470   </layout>
471  </widget>
472 </widget>
473 <resources>
474  <include location="../resources/tspsg.qrc"/>
475 </resources>
476 <connections>
477  <connection>
478   <sender>buttonBox</sender>
479   <signal>accepted()</signal>
480   <receiver>SettingsDialog</receiver>
481   <slot>accept()</slot>
482   <hints>
483    <hint type="sourcelabel">
484     <x>155</x>
485     <y>252</y>
486    </hint>
487    <hint type="destinationlabel">
488     <x>306</x>
489     <y>231</y>
490    </hint>
491   </hints>
492  </connection>
493  <connection>
494   <sender>buttonBox</sender>
495   <signal>rejected()</signal>
496   <receiver>SettingsDialog</receiver>
497   <slot>reject()</slot>
498   <hints>
499    <hint type="sourcelabel">
500     <x>155</x>
501     <y>252</y>
502    </hint>
503    <hint type="destinationlabel">
504     <x>262</x>
505     <y>245</y>
506    </hint>
507   </hints>
508  </connection>
509  <connection>
510   <sender>cbShowMatrix</sender>
511   <signal>toggled(bool)</signal>
512   <receiver>cbCitiesLimit</receiver>
513   <slot>setEnabled(bool)</slot>
514   <hints>
515    <hint type="sourcelabel">
516     <x>81</x>
517     <y>8</y>
518    </hint>
519    <hint type="destinationlabel">
520     <x>46</x>
521     <y>8</y>
522    </hint>
523   </hints>
524  </connection>
525  <connection>
526   <sender>cbShowMatrix</sender>
527   <signal>toggled(bool)</signal>
528   <receiver>cbCitiesLimit</receiver>
529   <slot>setChecked(bool)</slot>
530   <hints>
531    <hint type="sourcelabel">
532     <x>81</x>
533     <y>8</y>
534    </hint>
535    <hint type="destinationlabel">
536     <x>46</x>
537     <y>8</y>
538    </hint>
539   </hints>
540  </connection>
541  <connection>
542   <sender>cbCitiesLimit</sender>
543   <signal>toggled(bool)</signal>
544   <receiver>spinCitiesLimit</receiver>
545   <slot>setEnabled(bool)</slot>
546   <hints>
547    <hint type="sourcelabel">
548     <x>46</x>
549     <y>8</y>
550    </hint>
551    <hint type="destinationlabel">
552     <x>29</x>
553     <y>9</y>
554    </hint>
555   </hints>
556  </connection>
557 </connections>
558</ui>
Note: See TracBrowser for help on using the repository browser.