source: tspsg/ui/mainwindow.ui @ 317ba0432e

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 317ba0432e was 317ba0432e, checked in by Oleksii Serdiuk, 14 years ago
  • Improved the solution output generation algorithm. Now it works directly with QTextDocument instead of "feeding" it with HTML. Thanks to this the solution output generation is now about 1.65 times faster.
  • Added .txt extension to ChangeLog?, INSTALL and README files to simplify opening these files in Windows.
  • Made a small improvement to Settings Dialog to follow the current application palette.
  • Output text color if not set is now determmined based on the current application palette.
  • Property mode set to 100644
File size: 16.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <author>Lёppa: $Id$</author>
4 <class>MainWindow</class>
5 <widget class="QMainWindow" name="MainWindow">
6  <property name="geometry">
7   <rect>
8        <x>0</x>
9        <y>0</y>
10        <width>550</width>
11        <height>450</height>
12   </rect>
13  </property>
14  <property name="windowTitle">
15   <string>Travelling Salesman Problem</string>
16  </property>
17  <property name="windowIcon">
18   <iconset resource="../resources/tspsg.qrc">
19        <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset>
20  </property>
21  <widget class="QTabWidget" name="tabWidget">
22   <property name="tabPosition">
23        <enum>QTabWidget::North</enum>
24   </property>
25   <widget class="QWidget" name="tabTask">
26        <attribute name="title">
27         <string>Task</string>
28        </attribute>
29        <layout class="QVBoxLayout" name="_2">
30         <item>
31          <layout class="QHBoxLayout" name="_4">
32           <item>
33                <spacer name="spacer">
34                 <property name="orientation">
35                  <enum>Qt::Horizontal</enum>
36                 </property>
37                 <property name="sizeHint" stdset="0">
38                  <size>
39                   <width>40</width>
40                   <height>20</height>
41                  </size>
42                 </property>
43                </spacer>
44           </item>
45           <item>
46                <widget class="QLabel" name="labelVariant">
47                 <property name="text">
48                  <string>&amp;Variant:</string>
49                 </property>
50                 <property name="buddy">
51                  <cstring>spinVariant</cstring>
52                 </property>
53                </widget>
54           </item>
55           <item>
56                <widget class="QSpinBox" name="spinVariant">
57                 <property name="cursor">
58                  <cursorShape>PointingHandCursor</cursorShape>
59                 </property>
60                 <property name="statusTip">
61                  <string>Number of variant</string>
62                 </property>
63                 <property name="minimum">
64                  <number>1</number>
65                 </property>
66                </widget>
67           </item>
68           <item>
69                <widget class="QLabel" name="labelCities">
70                 <property name="text">
71                  <string>&amp;Cities:</string>
72                 </property>
73                 <property name="buddy">
74                  <cstring>spinCities</cstring>
75                 </property>
76                </widget>
77           </item>
78           <item>
79                <widget class="QSpinBox" name="spinCities">
80                 <property name="cursor">
81                  <cursorShape>PointingHandCursor</cursorShape>
82                 </property>
83                 <property name="statusTip">
84                  <string>Number of cities</string>
85                 </property>
86                 <property name="minimum">
87                  <number>3</number>
88                 </property>
89                 <property name="value">
90                  <number>5</number>
91                 </property>
92                </widget>
93           </item>
94           <item>
95                <spacer name="spacer_2">
96                 <property name="orientation">
97                  <enum>Qt::Horizontal</enum>
98                 </property>
99                 <property name="sizeHint" stdset="0">
100                  <size>
101                   <width>40</width>
102                   <height>20</height>
103                  </size>
104                 </property>
105                </spacer>
106           </item>
107          </layout>
108         </item>
109         <item>
110          <widget class="QTableView" name="taskView">
111           <property name="statusTip">
112                <string>Cost of travel from city to city</string>
113           </property>
114           <property name="selectionMode">
115                <enum>QAbstractItemView::NoSelection</enum>
116           </property>
117          </widget>
118         </item>
119         <item>
120          <layout class="QHBoxLayout" name="_5">
121           <item>
122                <spacer name="spacer_3">
123                 <property name="orientation">
124                  <enum>Qt::Horizontal</enum>
125                 </property>
126                 <property name="sizeHint" stdset="0">
127                  <size>
128                   <width>40</width>
129                   <height>20</height>
130                  </size>
131                 </property>
132                </spacer>
133           </item>
134           <item>
135                <widget class="QPushButton" name="buttonRandom">
136                 <property name="cursor">
137                  <cursorShape>PointingHandCursor</cursorShape>
138                 </property>
139                 <property name="statusTip">
140                  <string>Fill table with random numbers</string>
141                 </property>
142                 <property name="text">
143                  <string>Random</string>
144                 </property>
145                 <property name="icon">
146                  <iconset resource="../resources/tspsg.qrc">
147                   <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset>
148                 </property>
149                </widget>
150           </item>
151           <item>
152                <widget class="QPushButton" name="buttonSolve">
153                 <property name="cursor">
154                  <cursorShape>PointingHandCursor</cursorShape>
155                 </property>
156                 <property name="statusTip">
157                  <string>Solve current task</string>
158                 </property>
159                 <property name="text">
160                  <string>Solve</string>
161                 </property>
162                 <property name="icon">
163                  <iconset resource="../resources/tspsg.qrc">
164                   <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
165                 </property>
166                </widget>
167           </item>
168          </layout>
169         </item>
170        </layout>
171   </widget>
172   <widget class="QWidget" name="tabSolution">
173        <attribute name="title">
174         <string>Solution</string>
175        </attribute>
176        <layout class="QVBoxLayout" name="_3">
177         <item>
178          <widget class="QTextEdit" name="solutionText">
179           <property name="enabled">
180                <bool>false</bool>
181           </property>
182           <property name="statusTip">
183                <string>Solution steps</string>
184           </property>
185           <property name="undoRedoEnabled">
186                <bool>false</bool>
187           </property>
188           <property name="readOnly">
189                <bool>true</bool>
190           </property>
191           <property name="textInteractionFlags">
192                <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
193           </property>
194          </widget>
195         </item>
196         <item>
197          <layout class="QHBoxLayout" name="_6">
198           <item>
199                <widget class="QPushButton" name="buttonSaveSolution">
200                 <property name="enabled">
201                  <bool>false</bool>
202                 </property>
203                 <property name="cursor">
204                  <cursorShape>PointingHandCursor</cursorShape>
205                 </property>
206                 <property name="statusTip">
207                  <string>Save solution to a file</string>
208                 </property>
209                 <property name="text">
210                  <string>Save Solution</string>
211                 </property>
212                 <property name="icon">
213                  <iconset resource="../resources/tspsg.qrc">
214                   <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
215                 </property>
216                </widget>
217           </item>
218           <item>
219                <spacer name="spacer_4">
220                 <property name="orientation">
221                  <enum>Qt::Horizontal</enum>
222                 </property>
223                 <property name="sizeHint" stdset="0">
224                  <size>
225                   <width>40</width>
226                   <height>20</height>
227                  </size>
228                 </property>
229                </spacer>
230           </item>
231           <item>
232                <widget class="QPushButton" name="buttonBackToTask">
233                 <property name="cursor">
234                  <cursorShape>PointingHandCursor</cursorShape>
235                 </property>
236                 <property name="statusTip">
237                  <string>Go back to Task tab</string>
238                 </property>
239                 <property name="text">
240                  <string>Back to Task</string>
241                 </property>
242                 <property name="icon">
243                  <iconset resource="../resources/tspsg.qrc">
244                   <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
245                 </property>
246                </widget>
247           </item>
248          </layout>
249         </item>
250        </layout>
251   </widget>
252  </widget>
253  <widget class="QMenuBar" name="menubar">
254   <property name="geometry">
255        <rect>
256         <x>0</x>
257         <y>0</y>
258         <width>550</width>
259         <height>21</height>
260        </rect>
261   </property>
262   <widget class="QMenu" name="menuFile">
263        <property name="windowIcon">
264         <iconset>
265          <normaloff/>
266         </iconset>
267        </property>
268        <property name="title">
269         <string>&amp;File</string>
270        </property>
271        <widget class="QMenu" name="menuFileSaveAs">
272         <property name="title">
273          <string>Save &amp;As</string>
274         </property>
275         <property name="icon">
276          <iconset resource="../resources/tspsg.qrc">
277           <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
278         </property>
279         <addaction name="actionFileSaveAsTask"/>
280         <addaction name="actionFileSaveAsSolution"/>
281        </widget>
282        <addaction name="actionFileNew"/>
283        <addaction name="actionFileOpen"/>
284        <addaction name="actionFileSave"/>
285        <addaction name="menuFileSaveAs"/>
286        <addaction name="separator"/>
287        <addaction name="actionFileExit"/>
288   </widget>
289   <widget class="QMenu" name="menuSettings">
290        <property name="title">
291         <string>&amp;Settings</string>
292        </property>
293        <widget class="QMenu" name="menuSettingsLanguage">
294         <property name="toolTip">
295          <string>Select language</string>
296         </property>
297         <property name="statusTip">
298          <string>Select application language</string>
299         </property>
300         <property name="title">
301          <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
302         </property>
303         <property name="icon">
304          <iconset resource="../resources/tspsg.qrc">
305           <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
306         </property>
307         <addaction name="actionSettingsLanguageAutodetect"/>
308         <addaction name="separator"/>
309         <addaction name="actionSettingsLanguageEnglish"/>
310        </widget>
311        <addaction name="menuSettingsLanguage"/>
312        <addaction name="separator"/>
313        <addaction name="actionSettingsPreferences"/>
314   </widget>
315   <widget class="QMenu" name="menuHelp">
316        <property name="title">
317         <string>&amp;Help</string>
318        </property>
319        <addaction name="actionHelpContents"/>
320        <addaction name="actionHelpContextual"/>
321        <addaction name="separator"/>
322        <addaction name="actionHelpAboutQt"/>
323        <addaction name="actionHelpAbout"/>
324   </widget>
325   <addaction name="menuFile"/>
326   <addaction name="menuSettings"/>
327   <addaction name="menuHelp"/>
328  </widget>
329  <widget class="QToolBar" name="toolBar">
330   <property name="cursor">
331        <cursorShape>ArrowCursor</cursorShape>
332   </property>
333   <property name="windowTitle">
334        <string>Toolbar</string>
335   </property>
336   <attribute name="toolBarArea">
337        <enum>TopToolBarArea</enum>
338   </attribute>
339   <attribute name="toolBarBreak">
340        <bool>false</bool>
341   </attribute>
342   <addaction name="actionFileNew"/>
343   <addaction name="actionFileOpen"/>
344   <addaction name="actionFileSave"/>
345   <addaction name="separator"/>
346   <addaction name="actionSettingsPreferences"/>
347   <addaction name="separator"/>
348   <addaction name="actionFileExit"/>
349  </widget>
350  <action name="actionFileSaveAsSolution">
351   <property name="enabled">
352        <bool>false</bool>
353   </property>
354   <property name="text">
355        <string>&amp;Solution...</string>
356   </property>
357   <property name="toolTip">
358        <string>Save solution</string>
359   </property>
360   <property name="statusTip">
361        <string>Save solution to a file</string>
362   </property>
363  </action>
364  <action name="actionFileNew">
365   <property name="icon">
366        <iconset resource="../resources/tspsg.qrc">
367         <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
368   </property>
369   <property name="text">
370        <string>&amp;New</string>
371   </property>
372   <property name="toolTip">
373        <string>New task</string>
374   </property>
375   <property name="statusTip">
376        <string>Create new task</string>
377   </property>
378   <property name="shortcut">
379        <string>Ctrl+N</string>
380   </property>
381  </action>
382  <action name="actionFileOpen">
383   <property name="icon">
384        <iconset resource="../resources/tspsg.qrc">
385         <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
386   </property>
387   <property name="text">
388        <string>&amp;Open...</string>
389   </property>
390   <property name="toolTip">
391        <string>Open task</string>
392   </property>
393   <property name="statusTip">
394        <string>Open saved task</string>
395   </property>
396   <property name="shortcut">
397        <string>Ctrl+O</string>
398   </property>
399  </action>
400  <action name="actionSettingsPreferences">
401   <property name="icon">
402        <iconset resource="../resources/tspsg.qrc">
403         <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
404   </property>
405   <property name="text">
406        <string>&amp;Preferences...</string>
407   </property>
408   <property name="statusTip">
409        <string>Application preferences</string>
410   </property>
411  </action>
412  <action name="actionHelpContents">
413   <property name="enabled">
414        <bool>false</bool>
415   </property>
416   <property name="icon">
417        <iconset resource="../resources/tspsg.qrc">
418         <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
419   </property>
420   <property name="text">
421        <string>&amp;Contents</string>
422   </property>
423   <property name="statusTip">
424        <string>Open help contents</string>
425   </property>
426   <property name="shortcut">
427        <string>Ctrl+F1</string>
428   </property>
429  </action>
430  <action name="actionHelpContextual">
431   <property name="enabled">
432        <bool>false</bool>
433   </property>
434   <property name="icon">
435        <iconset resource="../resources/tspsg.qrc">
436         <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
437   </property>
438   <property name="text">
439        <string>Context &amp;Help</string>
440   </property>
441   <property name="statusTip">
442        <string>Open context help</string>
443   </property>
444   <property name="shortcut">
445        <string>F1</string>
446   </property>
447  </action>
448  <action name="actionHelpAbout">
449   <property name="icon">
450        <iconset resource="../resources/tspsg.qrc">
451         <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
452   </property>
453   <property name="text">
454        <string>&amp;About TSPSG...</string>
455   </property>
456   <property name="statusTip">
457        <string>About application</string>
458   </property>
459  </action>
460  <action name="actionFileExit">
461   <property name="icon">
462        <iconset resource="../resources/tspsg.qrc">
463         <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
464   </property>
465   <property name="text">
466        <string>E&amp;xit</string>
467   </property>
468   <property name="statusTip">
469        <string>Exit application</string>
470   </property>
471  </action>
472  <action name="actionFileSaveAsTask">
473   <property name="text">
474        <string>&amp;Task...</string>
475   </property>
476   <property name="toolTip">
477        <string>Save task</string>
478   </property>
479   <property name="statusTip">
480        <string>Save task to file</string>
481   </property>
482  </action>
483  <action name="actionSettingsLanguageAutodetect">
484   <property name="checkable">
485        <bool>true</bool>
486   </property>
487   <property name="checked">
488        <bool>true</bool>
489   </property>
490   <property name="text">
491        <string>&amp;Autodetect</string>
492   </property>
493   <property name="toolTip">
494        <string>Detect language automatically</string>
495   </property>
496   <property name="statusTip">
497        <string>Detect language automatically based on regional settings</string>
498   </property>
499  </action>
500  <action name="actionSettingsLanguageEnglish">
501   <property name="checkable">
502        <bool>true</bool>
503   </property>
504   <property name="checked">
505        <bool>true</bool>
506   </property>
507   <property name="text">
508        <string notr="true">&amp;English</string>
509   </property>
510   <property name="iconText">
511        <string notr="true">English</string>
512   </property>
513  </action>
514  <action name="actionFileSave">
515   <property name="icon">
516        <iconset resource="../resources/tspsg.qrc">
517         <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
518   </property>
519   <property name="text">
520        <string>&amp;Save</string>
521   </property>
522   <property name="toolTip">
523        <string>Save task</string>
524   </property>
525   <property name="statusTip">
526        <string>Save current task</string>
527   </property>
528   <property name="shortcut">
529        <string>Ctrl+S</string>
530   </property>
531  </action>
532  <action name="actionHelpAboutQt">
533   <property name="icon">
534        <iconset resource="../resources/tspsg.qrc">
535         <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
536   </property>
537   <property name="text">
538        <string>About &amp;Qt...</string>
539   </property>
540   <property name="statusTip">
541        <string>About Qt library</string>
542   </property>
543  </action>
544 </widget>
545 <resources>
546  <include location="../resources/tspsg.qrc"/>
547 </resources>
548 <connections>
549  <connection>
550   <sender>actionFileExit</sender>
551   <signal>triggered()</signal>
552   <receiver>MainWindow</receiver>
553   <slot>close()</slot>
554   <hints>
555        <hint type="sourcelabel">
556         <x>-1</x>
557         <y>-1</y>
558        </hint>
559        <hint type="destinationlabel">
560         <x>294</x>
561         <y>229</y>
562        </hint>
563   </hints>
564  </connection>
565  <connection>
566   <sender>buttonSaveSolution</sender>
567   <signal>clicked()</signal>
568   <receiver>actionFileSaveAsSolution</receiver>
569   <slot>trigger()</slot>
570   <hints>
571        <hint type="sourcelabel">
572         <x>58</x>
573         <y>327</y>
574        </hint>
575        <hint type="destinationlabel">
576         <x>-1</x>
577         <y>-1</y>
578        </hint>
579   </hints>
580  </connection>
581 </connections>
582</ui>
Note: See TracBrowser for help on using the repository browser.