source: tspsg/ui/mainwindow.ui @ 0621172ec1

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 0621172ec1 was aecdf994f9, checked in by Oleksii Serdiuk, 15 years ago

+ Settings are now saved and restored.
+ Font color selection in settings.
+ Primitive about dialog.
+ Automatic resizing of cells to its contents in wince.

  • No "Save window position" checkbox in wince.
  • Property mode set to 100644
File size: 16.1 KB
RevLine 
[5354a01311]1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
[5515c2c2a7]3 <class>MainWindow</class>
[5354a01311]4 <widget class="QMainWindow" name="MainWindow">
5  <property name="geometry">
[5515c2c2a7]6   <rect>
7    <x>0</x>
8    <y>0</y>
[7177744fc7]9    <width>640</width>
10    <height>480</height>
[5515c2c2a7]11   </rect>
12  </property>
[5354a01311]13  <property name="windowTitle">
[5515c2c2a7]14   <string>Задача коммивояжера</string>
15  </property>
[5354a01311]16  <property name="windowIcon">
17   <iconset resource="../resources/tspsg.qrc">
18    <normaloff>:/images/Icon.png</normaloff>:/images/Icon.png</iconset>
[5515c2c2a7]19  </property>
[5354a01311]20  <widget class="QWidget" name="centralwidget">
21   <layout class="QGridLayout">
22    <item row="0" column="0">
23     <widget class="QTabWidget" name="tabWidget">
24      <property name="sizePolicy">
25       <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
[5515c2c2a7]26        <horstretch>0</horstretch>
27        <verstretch>0</verstretch>
28       </sizepolicy>
29      </property>
[5354a01311]30      <property name="currentIndex">
[5515c2c2a7]31       <number>0</number>
32      </property>
[5354a01311]33      <widget class="QWidget" name="tabTask">
34       <attribute name="title">
[7177744fc7]35        <string>Задача</string>
[5515c2c2a7]36       </attribute>
[5354a01311]37       <layout class="QVBoxLayout">
[5515c2c2a7]38        <item>
[5354a01311]39         <layout class="QHBoxLayout">
[5515c2c2a7]40          <item>
41           <spacer>
[5354a01311]42            <property name="orientation">
[5515c2c2a7]43             <enum>Qt::Horizontal</enum>
44            </property>
[5354a01311]45            <property name="sizeHint" stdset="0">
[5515c2c2a7]46             <size>
47              <width>40</width>
48              <height>20</height>
49             </size>
50            </property>
51           </spacer>
52          </item>
53          <item>
[5354a01311]54           <widget class="QLabel" name="labelVariant">
55            <property name="text">
[5515c2c2a7]56             <string>&amp;Вариант:</string>
57            </property>
[5354a01311]58            <property name="buddy">
[5515c2c2a7]59             <cstring>spinVariant</cstring>
60            </property>
61           </widget>
62          </item>
63          <item>
[5354a01311]64           <widget class="QSpinBox" name="spinVariant">
65            <property name="cursor">
[5515c2c2a7]66             <cursorShape>PointingHandCursor</cursorShape>
67            </property>
[5354a01311]68            <property name="statusTip">
[7177744fc7]69             <string>Номер варианта</string>
70            </property>
[5354a01311]71            <property name="minimum">
[5515c2c2a7]72             <number>1</number>
73            </property>
74           </widget>
75          </item>
76          <item>
[5354a01311]77           <widget class="QLabel" name="labelCities">
78            <property name="text">
[5515c2c2a7]79             <string>&amp;Городов:</string>
80            </property>
[5354a01311]81            <property name="buddy">
[5515c2c2a7]82             <cstring>spinCities</cstring>
83            </property>
84           </widget>
85          </item>
86          <item>
[5354a01311]87           <widget class="QSpinBox" name="spinCities">
88            <property name="cursor">
[5515c2c2a7]89             <cursorShape>PointingHandCursor</cursorShape>
90            </property>
[5354a01311]91            <property name="statusTip">
[bcfd415fe2]92             <string>Количество городов, которые обходит коммивояжер</string>
[7177744fc7]93            </property>
[5354a01311]94            <property name="minimum">
[5515c2c2a7]95             <number>3</number>
96            </property>
[5354a01311]97            <property name="maximum">
[003e4193be]98             <number>5</number>
99            </property>
[5354a01311]100            <property name="value">
[003e4193be]101             <number>5</number>
102            </property>
[5515c2c2a7]103           </widget>
104          </item>
105          <item>
106           <spacer>
[5354a01311]107            <property name="orientation">
[5515c2c2a7]108             <enum>Qt::Horizontal</enum>
109            </property>
[5354a01311]110            <property name="sizeHint" stdset="0">
[5515c2c2a7]111             <size>
112              <width>40</width>
113              <height>20</height>
114             </size>
115            </property>
116           </spacer>
117          </item>
118         </layout>
119        </item>
120        <item>
[5354a01311]121         <widget class="QTableView" name="taskView">
122          <property name="statusTip">
[7177744fc7]123           <string>Стоимости переходов/переездов из города в город</string>
124          </property>
[5354a01311]125          <property name="selectionMode">
[003e4193be]126           <enum>QAbstractItemView::NoSelection</enum>
127          </property>
128         </widget>
[5515c2c2a7]129        </item>
130        <item>
[5354a01311]131         <layout class="QHBoxLayout">
[5515c2c2a7]132          <item>
133           <spacer>
[5354a01311]134            <property name="orientation">
[5515c2c2a7]135             <enum>Qt::Horizontal</enum>
136            </property>
[5354a01311]137            <property name="sizeHint" stdset="0">
[5515c2c2a7]138             <size>
139              <width>40</width>
140              <height>20</height>
141             </size>
142            </property>
143           </spacer>
144          </item>
145          <item>
[5354a01311]146           <widget class="QPushButton" name="buttonRandom">
147            <property name="cursor">
[5515c2c2a7]148             <cursorShape>PointingHandCursor</cursorShape>
149            </property>
[5354a01311]150            <property name="statusTip">
[5515c2c2a7]151             <string>Заполнить таблицу случайными значениями</string>
152            </property>
[5354a01311]153            <property name="text">
[5515c2c2a7]154             <string>Случайно</string>
155            </property>
156           </widget>
157          </item>
158          <item>
[5354a01311]159           <widget class="QPushButton" name="buttonSolve">
160            <property name="cursor">
[5515c2c2a7]161             <cursorShape>PointingHandCursor</cursorShape>
162            </property>
[5354a01311]163            <property name="statusTip">
[5515c2c2a7]164             <string>Решить текущую задачу</string>
165            </property>
[5354a01311]166            <property name="text">
[5515c2c2a7]167             <string>Решить</string>
168            </property>
[5354a01311]169            <property name="icon">
170             <iconset resource="../resources/tspsg.qrc">
171              <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset>
[5515c2c2a7]172            </property>
173           </widget>
174          </item>
175         </layout>
176        </item>
177       </layout>
178      </widget>
[5354a01311]179      <widget class="QWidget" name="tabSolution">
180       <attribute name="title">
[7177744fc7]181        <string>Решение</string>
[5515c2c2a7]182       </attribute>
[5354a01311]183       <layout class="QVBoxLayout">
[5515c2c2a7]184        <item>
[5354a01311]185         <layout class="QHBoxLayout">
186          <property name="spacing">
[5515c2c2a7]187           <number>0</number>
188          </property>
189          <item>
[5354a01311]190           <widget class="QTextEdit" name="textEdit">
191            <property name="sizePolicy">
192             <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
[5515c2c2a7]193              <horstretch>0</horstretch>
194              <verstretch>0</verstretch>
195             </sizepolicy>
196            </property>
[5354a01311]197            <property name="statusTip">
[7177744fc7]198             <string>Ход решения</string>
199            </property>
[5354a01311]200            <property name="readOnly">
[5515c2c2a7]201             <bool>true</bool>
202            </property>
203           </widget>
204          </item>
205          <item>
[5354a01311]206           <widget class="QGraphicsView" name="graphicsView">
207            <property name="statusTip">
[7177744fc7]208             <string>Граф решения</string>
209            </property>
210           </widget>
[5515c2c2a7]211          </item>
212         </layout>
213        </item>
214       </layout>
215      </widget>
216     </widget>
217    </item>
218   </layout>
219  </widget>
[5354a01311]220  <widget class="QMenuBar" name="menubar">
221   <property name="geometry">
[5515c2c2a7]222    <rect>
223     <x>0</x>
224     <y>0</y>
[7177744fc7]225     <width>640</width>
[5354a01311]226     <height>22</height>
[5515c2c2a7]227    </rect>
228   </property>
[5354a01311]229   <widget class="QMenu" name="menuFile">
230    <property name="windowIcon">
231     <iconset>
232      <normaloff/>
233     </iconset>
[5515c2c2a7]234    </property>
[5354a01311]235    <property name="title">
[5515c2c2a7]236     <string>&amp;Файл</string>
237    </property>
[5354a01311]238    <widget class="QMenu" name="menuFileSave">
239     <property name="statusTip">
[7177744fc7]240      <string/>
241     </property>
[5354a01311]242     <property name="title">
[5515c2c2a7]243      <string>Со&amp;хранить</string>
244     </property>
[5354a01311]245     <property name="icon">
246      <iconset resource="../resources/tspsg.qrc">
247       <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[5515c2c2a7]248     </property>
[5354a01311]249     <addaction name="actionFileSaveTask"/>
250     <addaction name="separator"/>
251     <addaction name="actionFileSaveResultAll"/>
252     <addaction name="actionFileSaveResultMatrices"/>
253     <addaction name="actionFileSaveResultGraph"/>
[5515c2c2a7]254    </widget>
[5354a01311]255    <addaction name="actionFileNew"/>
256    <addaction name="actionFileOpen"/>
257    <addaction name="menuFileSave"/>
258    <addaction name="separator"/>
259    <addaction name="actionFilePrintSetup"/>
260    <addaction name="actionFilePrint"/>
261    <addaction name="separator"/>
262    <addaction name="actionFileExit"/>
[5515c2c2a7]263   </widget>
[5354a01311]264   <widget class="QMenu" name="menuSettings">
265    <property name="title">
[5515c2c2a7]266     <string>&amp;Настройки</string>
267    </property>
[5354a01311]268    <addaction name="actionSettingsSettings"/>
[5515c2c2a7]269   </widget>
[5354a01311]270   <widget class="QMenu" name="menuHelp">
271    <property name="title">
[5515c2c2a7]272     <string>&amp;Помощь</string>
273    </property>
[5354a01311]274    <addaction name="actionHelpContents"/>
275    <addaction name="actionHelpContextual"/>
276    <addaction name="separator"/>
277    <addaction name="actionHelpAbout"/>
[5515c2c2a7]278   </widget>
[5354a01311]279   <addaction name="menuFile"/>
280   <addaction name="menuSettings"/>
281   <addaction name="menuHelp"/>
[5515c2c2a7]282  </widget>
[5354a01311]283  <widget class="QStatusBar" name="statusbar"/>
284  <widget class="QToolBar" name="toolBar">
285   <property name="cursor">
[5515c2c2a7]286    <cursorShape>ArrowCursor</cursorShape>
287   </property>
[5354a01311]288   <property name="iconSize">
[5515c2c2a7]289    <size>
290     <width>17</width>
291     <height>18</height>
292    </size>
293   </property>
[5354a01311]294   <attribute name="toolBarArea">
[5515c2c2a7]295    <enum>TopToolBarArea</enum>
296   </attribute>
[5354a01311]297   <attribute name="toolBarBreak">
[5515c2c2a7]298    <bool>false</bool>
299   </attribute>
[5354a01311]300   <addaction name="actionFileNew"/>
301   <addaction name="actionFileOpen"/>
302   <addaction name="actionFileSaveTask"/>
303   <addaction name="separator"/>
304   <addaction name="actionFilePrint"/>
305   <addaction name="actionSettingsSettings"/>
306   <addaction name="separator"/>
307   <addaction name="actionFileExit"/>
[5515c2c2a7]308  </widget>
[5354a01311]309  <action name="actionFilePrintSetup">
310   <property name="icon">
311    <iconset resource="../resources/tspsg.qrc">
312     <normaloff>:/images/buttons/buttons/PrintSetup.png</normaloff>:/images/buttons/buttons/PrintSetup.png</iconset>
[5515c2c2a7]313   </property>
[5354a01311]314   <property name="text">
[5515c2c2a7]315    <string>&amp;Настройка печати</string>
316   </property>
[5354a01311]317   <property name="statusTip">
[7177744fc7]318    <string>Настроить принтер для печати</string>
319   </property>
[5515c2c2a7]320  </action>
[5354a01311]321  <action name="actionFilePrint">
322   <property name="enabled">
[7177744fc7]323    <bool>false</bool>
324   </property>
[5354a01311]325   <property name="icon">
326    <iconset resource="../resources/tspsg.qrc">
327     <normaloff>:/images/buttons/buttons/Print.png</normaloff>:/images/buttons/buttons/Print.png</iconset>
[5515c2c2a7]328   </property>
[5354a01311]329   <property name="text">
[5515c2c2a7]330    <string>&amp;Печать...</string>
331   </property>
[5354a01311]332   <property name="statusTip">
[7177744fc7]333    <string>Распечатать результаты решения</string>
334   </property>
[5354a01311]335   <property name="shortcut">
[5515c2c2a7]336    <string>Ctrl+P</string>
337   </property>
338  </action>
[5354a01311]339  <action name="actionFileSaveResultMatrices">
340   <property name="enabled">
[7177744fc7]341    <bool>false</bool>
342   </property>
[5354a01311]343   <property name="text">
[5515c2c2a7]344    <string>&amp;Ход решения</string>
345   </property>
[5354a01311]346   <property name="statusTip">
[7177744fc7]347    <string>Сохранить только хоод решения</string>
348   </property>
[5515c2c2a7]349  </action>
[5354a01311]350  <action name="actionFileSaveResultGraph">
351   <property name="enabled">
[7177744fc7]352    <bool>false</bool>
353   </property>
[5354a01311]354   <property name="text">
[5515c2c2a7]355    <string>&amp;Граф решения</string>
356   </property>
[5354a01311]357   <property name="statusTip">
[7177744fc7]358    <string>Сохранить только граф решения</string>
359   </property>
[5515c2c2a7]360  </action>
[5354a01311]361  <action name="actionFileSaveResultAll">
362   <property name="enabled">
[7177744fc7]363    <bool>false</bool>
[5515c2c2a7]364   </property>
[5354a01311]365   <property name="text">
[7177744fc7]366    <string>&amp;Решение</string>
367   </property>
[5354a01311]368   <property name="statusTip">
[7177744fc7]369    <string>Сохранить ход и граф решения</string>
[5515c2c2a7]370   </property>
371  </action>
[5354a01311]372  <action name="actionFileNew">
373   <property name="icon">
374    <iconset resource="../resources/tspsg.qrc">
375     <normaloff>:/images/buttons/buttons/Document.png</normaloff>:/images/buttons/buttons/Document.png</iconset>
[5515c2c2a7]376   </property>
[5354a01311]377   <property name="text">
[5515c2c2a7]378    <string>&amp;Создать</string>
379   </property>
[5354a01311]380   <property name="statusTip">
[7177744fc7]381    <string>Создать новую задачу</string>
382   </property>
[5354a01311]383   <property name="shortcut">
[5515c2c2a7]384    <string>Ctrl+N</string>
385   </property>
386  </action>
[5354a01311]387  <action name="actionFileOpen">
388   <property name="icon">
389    <iconset resource="../resources/tspsg.qrc">
390     <normaloff>:/images/buttons/buttons/OpenFolder.png</normaloff>:/images/buttons/buttons/OpenFolder.png</iconset>
[5515c2c2a7]391   </property>
[5354a01311]392   <property name="text">
[5515c2c2a7]393    <string>&amp;Открыть</string>
394   </property>
[5354a01311]395   <property name="toolTip">
[7177744fc7]396    <string>Открыть задачу</string>
397   </property>
[5354a01311]398   <property name="statusTip">
[7177744fc7]399    <string>Открыть сохраненное условие задачи</string>
400   </property>
[5354a01311]401   <property name="shortcut">
[5515c2c2a7]402    <string>Ctrl+O</string>
403   </property>
404  </action>
[5354a01311]405  <action name="actionSettingsSettings">
406   <property name="icon">
407    <iconset resource="../resources/tspsg.qrc">
408     <normaloff>:/images/buttons/buttons/Properties.png</normaloff>:/images/buttons/buttons/Properties.png</iconset>
[5515c2c2a7]409   </property>
[5354a01311]410   <property name="text">
[5515c2c2a7]411    <string>&amp;Параметры</string>
412   </property>
[5354a01311]413   <property name="statusTip">
[7177744fc7]414    <string>Настройка параметров программмы</string>
415   </property>
[5515c2c2a7]416  </action>
[5354a01311]417  <action name="actionHelpContents">
418   <property name="icon">
419    <iconset resource="../resources/tspsg.qrc">
420     <normaloff>:/images/buttons/buttons/book_open.png</normaloff>:/images/buttons/buttons/book_open.png</iconset>
[5515c2c2a7]421   </property>
[5354a01311]422   <property name="text">
[5515c2c2a7]423    <string>&amp;Содежание</string>
424   </property>
[5354a01311]425   <property name="statusTip">
[7177744fc7]426    <string>Вызвать справку по программе</string>
427   </property>
[5515c2c2a7]428  </action>
[5354a01311]429  <action name="actionHelpContextual">
430   <property name="icon">
431    <iconset resource="../resources/tspsg.qrc">
432     <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset>
[5515c2c2a7]433   </property>
[5354a01311]434   <property name="text">
[5515c2c2a7]435    <string>&amp;Контекстная справка</string>
436   </property>
[5354a01311]437   <property name="statusTip">
[7177744fc7]438    <string>Вызвать контекстную справку</string>
439   </property>
[5515c2c2a7]440  </action>
[5354a01311]441  <action name="actionHelpAbout">
442   <property name="icon">
443    <iconset resource="../resources/tspsg.qrc">
444     <normaloff>:/images/buttons/buttons/infoBubble.png</normaloff>:/images/buttons/buttons/infoBubble.png</iconset>
[5515c2c2a7]445   </property>
[5354a01311]446   <property name="text">
[5515c2c2a7]447    <string>&amp;Про...</string>
448   </property>
[5354a01311]449   <property name="statusTip">
[fc9f661ded]450    <string>Получить информацию о программе</string>
451   </property>
[5515c2c2a7]452  </action>
[5354a01311]453  <action name="actionFileExit">
454   <property name="icon">
455    <iconset resource="../resources/tspsg.qrc">
456     <normaloff>:/images/buttons/buttons/NoAction.png</normaloff>:/images/buttons/buttons/NoAction.png</iconset>
[5515c2c2a7]457   </property>
[5354a01311]458   <property name="text">
[5515c2c2a7]459    <string>В&amp;ыход</string>
460   </property>
[5354a01311]461   <property name="statusTip">
[5515c2c2a7]462    <string>Выйти из программы</string>
463   </property>
464  </action>
[5354a01311]465  <action name="actionFileSaveTask">
466   <property name="icon">
467    <iconset resource="../resources/tspsg.qrc">
468     <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset>
[7177744fc7]469   </property>
[5354a01311]470   <property name="text">
[7177744fc7]471    <string>&amp;Задачу</string>
472   </property>
[5354a01311]473   <property name="iconText">
[7177744fc7]474    <string>Сохранить</string>
475   </property>
[5354a01311]476   <property name="toolTip">
[7177744fc7]477    <string>Сохранить задачу</string>
478   </property>
[5354a01311]479   <property name="statusTip">
[7177744fc7]480    <string>Сохранить условие задачи в файл</string>
481   </property>
[5354a01311]482   <property name="shortcut">
[7177744fc7]483    <string>Ctrl+S</string>
484   </property>
485  </action>
[5515c2c2a7]486 </widget>
487 <resources>
[5354a01311]488  <include location="../resources/tspsg.qrc"/>
[5515c2c2a7]489 </resources>
490 <connections>
491  <connection>
492   <sender>actionFileExit</sender>
493   <signal>triggered()</signal>
494   <receiver>MainWindow</receiver>
495   <slot>close()</slot>
496   <hints>
[5354a01311]497    <hint type="sourcelabel">
[5515c2c2a7]498     <x>-1</x>
499     <y>-1</y>
500    </hint>
[5354a01311]501    <hint type="destinationlabel">
[5515c2c2a7]502     <x>294</x>
503     <y>229</y>
504    </hint>
505   </hints>
506  </connection>
507 </connections>
508</ui>
Note: See TracBrowser for help on using the repository browser.