Changeset 50 in tspsg-svn for trunk/ui/mainwindow.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.ui

    r48 r50  
    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.