Changeset 50 in tspsg-svn for trunk/ui/mainwindow.ce.ui


Ignore:
Timestamp:
Aug 3, 2009, 5:15:46 PM (15 years ago)
Author:
laleppa
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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ui/mainwindow.ce.ui

    r48 r50  
    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>
Note: See TracChangeset for help on using the changeset viewer.