Changeset aaf2113307 in tspsg for ui


Ignore:
Timestamp:
Aug 3, 2009, 5:15:46 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
f44855d99e
Parents:
e96fad3079
Message:

+ Implemented File/Save? action.
+ Added "Save Solution" and "Back to Task" buttons to Solution tab for better usability.

  • Increased maximum number of cities to 20. Solving for 18-20 cities is already takes much time, so I thought it doesn't make sense to increase more.
  • Columns and rows are now resized to contents on all platforms.
Location:
ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ui/mainwindow.ce.ui

    re96fad3079 raaf2113307  
    1010    <x>0</x>
    1111    <y>0</y>
    12     <width>225</width>
    13     <height>322</height>
     12    <width>247</width>
     13    <height>339</height>
    1414   </rect>
    1515  </property>
    1616  <property name="windowTitle">
    17    <string>Travelling Salesman Problem[*]</string>
     17   <string>Travelling Salesman Problem</string>
    1818  </property>
    1919  <property name="windowIcon">
     
    3030      <x>9</x>
    3131      <y>9</y>
    32       <width>207</width>
    33       <height>248</height>
     32      <width>221</width>
     33      <height>261</height>
    3434     </rect>
    3535    </property>
     
    112112          <property name="minimum">
    113113           <number>3</number>
    114           </property>
    115           <property name="maximum">
    116            <number>5</number>
    117114          </property>
    118115          <property name="value">
     
    220217       </widget>
    221218      </item>
     219      <item>
     220       <layout class="QHBoxLayout" name="horizontalLayout">
     221        <item>
     222         <widget class="QPushButton" name="buttonSaveSolution">
     223          <property name="enabled">
     224           <bool>false</bool>
     225          </property>
     226          <property name="cursor">
     227           <cursorShape>PointingHandCursor</cursorShape>
     228          </property>
     229          <property name="statusTip">
     230           <string>Save solution to a file</string>
     231          </property>
     232          <property name="text">
     233           <string>Save Solution</string>
     234          </property>
     235          <property name="icon">
     236           <iconset resource="../resources/tspsg.qrc">
     237            <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
     238          </property>
     239         </widget>
     240        </item>
     241        <item>
     242         <spacer name="horizontalSpacer">
     243          <property name="orientation">
     244           <enum>Qt::Horizontal</enum>
     245          </property>
     246          <property name="sizeHint" stdset="0">
     247           <size>
     248            <width>40</width>
     249            <height>20</height>
     250           </size>
     251          </property>
     252         </spacer>
     253        </item>
     254        <item>
     255         <widget class="QPushButton" name="buttonBackToTask">
     256          <property name="cursor">
     257           <cursorShape>PointingHandCursor</cursorShape>
     258          </property>
     259          <property name="statusTip">
     260           <string>Go back to Task tab</string>
     261          </property>
     262          <property name="text">
     263           <string>Back to Task</string>
     264          </property>
     265          <property name="icon">
     266           <iconset resource="../resources/tspsg.qrc">
     267            <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
     268          </property>
     269         </widget>
     270        </item>
     271       </layout>
     272      </item>
    222273     </layout>
    223274    </widget>
     
    229280     <x>0</x>
    230281     <y>0</y>
    231      <width>225</width>
     282     <width>247</width>
    232283     <height>22</height>
    233284    </rect>
     
    247298     </property>
    248299     <property name="title">
    249       <string>Save &amp;As...</string>
     300      <string>Save &amp;As</string>
    250301     </property>
    251302     <property name="icon">
     
    363414   </property>
    364415   <property name="statusTip">
    365     <string>Save solution steps and graph</string>
     416    <string>Save solution to a file</string>
    366417   </property>
    367418  </action>
     
    437488    <string>Open help contents</string>
    438489   </property>
     490   <property name="shortcut">
     491    <string>Ctrl+F1</string>
     492   </property>
    439493  </action>
    440494  <action name="actionHelpContextual">
     
    452506    <string>Open context help</string>
    453507   </property>
     508   <property name="shortcut">
     509    <string>F1</string>
     510   </property>
    454511  </action>
    455512  <action name="actionHelpAbout">
     
    496553   <property name="statusTip">
    497554    <string>Save task to file</string>
    498    </property>
    499    <property name="shortcut">
    500     <string>Ctrl+S</string>
    501555   </property>
    502556  </action>
     
    526580   </property>
    527581   <property name="text">
     582    <string notr="true">&amp;English</string>
     583   </property>
     584   <property name="iconText">
    528585    <string notr="true">English</string>
    529586   </property>
    530    <property name="iconText">
    531     <string notr="true">English</string>
    532    </property>
    533587  </action>
    534588  <action name="actionFileSave">
    535    <property name="enabled">
    536     <bool>false</bool>
    537    </property>
    538589   <property name="icon">
    539590    <iconset resource="../resources/tspsg.qrc">
     
    548599   <property name="statusTip">
    549600    <string>Save current task</string>
     601   </property>
     602   <property name="shortcut">
     603    <string>Ctrl+S</string>
    550604   </property>
    551605  </action>
     
    589643   </hints>
    590644  </connection>
     645  <connection>
     646   <sender>buttonBackToTask</sender>
     647   <signal>clicked()</signal>
     648   <receiver>actionFileSaveAsSolution</receiver>
     649   <slot>trigger()</slot>
     650   <hints>
     651    <hint type="sourcelabel">
     652     <x>172</x>
     653     <y>299</y>
     654    </hint>
     655    <hint type="destinationlabel">
     656     <x>-1</x>
     657     <y>-1</y>
     658    </hint>
     659   </hints>
     660  </connection>
    591661 </connections>
    592662</ui>
  • ui/mainwindow.ui

    re96fad3079 raaf2113307  
    77    <x>0</x>
    88    <y>0</y>
    9     <width>491</width>
    10     <height>400</height>
     9    <width>502</width>
     10    <height>407</height>
    1111   </rect>
    1212  </property>
     
    2424      <x>0</x>
    2525      <y>0</y>
    26       <width>481</width>
    27       <height>311</height>
     26      <width>287</width>
     27      <height>298</height>
    2828     </rect>
    2929    </property>
     
    100100          <property name="minimum">
    101101           <number>3</number>
    102           </property>
    103           <property name="maximum">
    104            <number>5</number>
    105102          </property>
    106103          <property name="value">
     
    208205       </widget>
    209206      </item>
     207      <item>
     208       <layout class="QHBoxLayout" name="horizontalLayout">
     209        <item>
     210         <widget class="QPushButton" name="buttonSaveSolution">
     211          <property name="enabled">
     212           <bool>false</bool>
     213          </property>
     214          <property name="cursor">
     215           <cursorShape>PointingHandCursor</cursorShape>
     216          </property>
     217          <property name="statusTip">
     218           <string>Save solution to a file</string>
     219          </property>
     220          <property name="text">
     221           <string>Save Solution</string>
     222          </property>
     223          <property name="icon">
     224           <iconset resource="../resources/tspsg.qrc">
     225            <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
     226          </property>
     227         </widget>
     228        </item>
     229        <item>
     230         <spacer name="horizontalSpacer">
     231          <property name="orientation">
     232           <enum>Qt::Horizontal</enum>
     233          </property>
     234          <property name="sizeHint" stdset="0">
     235           <size>
     236            <width>40</width>
     237            <height>20</height>
     238           </size>
     239          </property>
     240         </spacer>
     241        </item>
     242        <item>
     243         <widget class="QPushButton" name="buttonBackToTask">
     244          <property name="cursor">
     245           <cursorShape>PointingHandCursor</cursorShape>
     246          </property>
     247          <property name="statusTip">
     248           <string>Go back to Task tab</string>
     249          </property>
     250          <property name="text">
     251           <string>Back to Task</string>
     252          </property>
     253          <property name="icon">
     254           <iconset resource="../resources/tspsg.qrc">
     255            <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
     256          </property>
     257         </widget>
     258        </item>
     259       </layout>
     260      </item>
    210261     </layout>
    211262    </widget>
     
    217268     <x>0</x>
    218269     <y>0</y>
    219      <width>491</width>
     270     <width>502</width>
    220271     <height>22</height>
    221272    </rect>
     
    232283    <widget class="QMenu" name="menuFileSaveAs">
    233284     <property name="title">
    234       <string>Save &amp;As...</string>
     285      <string>Save &amp;As</string>
    235286     </property>
    236287     <property name="icon">
     
    379430    <string>&amp;Solution...</string>
    380431   </property>
     432   <property name="iconText">
     433    <string>Solution...</string>
     434   </property>
    381435   <property name="toolTip">
    382436    <string>Save solution</string>
    383437   </property>
    384438   <property name="statusTip">
    385     <string>Save solution steps and graph</string>
     439    <string>Save solution to a file</string>
    386440   </property>
    387441  </action>
     
    457511    <string>Open help contents</string>
    458512   </property>
     513   <property name="shortcut">
     514    <string>Ctrl+F1</string>
     515   </property>
    459516  </action>
    460517  <action name="actionHelpContextual">
     
    472529    <string>Open context help</string>
    473530   </property>
     531   <property name="shortcut">
     532    <string>F1</string>
     533   </property>
    474534  </action>
    475535  <action name="actionHelpAbout">
     
    512572   <property name="statusTip">
    513573    <string>Save task to file</string>
    514    </property>
    515    <property name="shortcut">
    516     <string>Ctrl+S</string>
    517574   </property>
    518575  </action>
     
    542599   </property>
    543600   <property name="text">
     601    <string notr="true">&amp;English</string>
     602   </property>
     603   <property name="iconText">
    544604    <string notr="true">English</string>
    545605   </property>
    546    <property name="iconText">
    547     <string notr="true">English</string>
    548    </property>
    549606  </action>
    550607  <action name="actionFileSave">
    551    <property name="enabled">
    552     <bool>false</bool>
    553    </property>
    554608   <property name="icon">
    555609    <iconset resource="../resources/tspsg.qrc">
     
    567621   <property name="statusTip">
    568622    <string>Save current task</string>
     623   </property>
     624   <property name="shortcut">
     625    <string>Ctrl+S</string>
    569626   </property>
    570627  </action>
     
    605662   </hints>
    606663  </connection>
     664  <connection>
     665   <sender>buttonSaveSolution</sender>
     666   <signal>clicked()</signal>
     667   <receiver>actionFileSaveAsSolution</receiver>
     668   <slot>trigger()</slot>
     669   <hints>
     670    <hint type="sourcelabel">
     671     <x>58</x>
     672     <y>327</y>
     673    </hint>
     674    <hint type="destinationlabel">
     675     <x>-1</x>
     676     <y>-1</y>
     677    </hint>
     678   </hints>
     679  </connection>
    607680 </connections>
    608681</ui>
Note: See TracChangeset for help on using the changeset viewer.