Changeset 29 in tspsg-svn for trunk/ui/mainwindow.ui


Ignore:
Timestamp:
Jun 24, 2009, 6:54:10 PM (15 years ago)
Author:
laleppa
Message:

+ Selected application language is now saved and restored.
+ Added language selection entries to main menu.
+ On-the-fly language switching.
+ Loading corresponding Qt library language, if exists.

  • File/New? sets all table cells to zeros.
  • Translation updates to reflect recent changes.
  • Renamed language files from language names to language codes.
  • Renamed some slot to have unified signal/slot naming.
  • Printer settings are now persistant until application close.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ui/mainwindow.ui

    r27 r29  
    237237    </property>
    238238    <widget class="QMenu" name="menuFileSave">
    239      <property name="statusTip">
    240       <string/>
    241      </property>
    242239     <property name="title">
    243240      <string>&amp;Save</string>
     
    249246     <addaction name="actionFileSaveTask"/>
    250247     <addaction name="separator"/>
    251      <addaction name="actionFileSaveResultAll"/>
    252      <addaction name="actionFileSaveResultMatrices"/>
    253      <addaction name="actionFileSaveResultGraph"/>
     248     <addaction name="actionFileSaveSolutionAll"/>
     249     <addaction name="actionFileSaveSolutionMatrices"/>
     250     <addaction name="actionFileSaveSolutionGraph"/>
    254251    </widget>
    255252    <addaction name="actionFileNew"/>
     
    266263     <string>&amp;Settings</string>
    267264    </property>
    268     <addaction name="actionSettingsSettings"/>
     265    <widget class="QMenu" name="menuSettingsLanguage">
     266     <property name="toolTip">
     267      <string>Select language</string>
     268     </property>
     269     <property name="statusTip">
     270      <string>Select application language</string>
     271     </property>
     272     <property name="title">
     273      <string extracomment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
     274     </property>
     275     <addaction name="actionSettingsLanguageAutodetect"/>
     276    </widget>
     277    <addaction name="menuSettingsLanguage"/>
     278    <addaction name="separator"/>
     279    <addaction name="actionSettingsPreferences"/>
    269280   </widget>
    270281   <widget class="QMenu" name="menuHelp">
     
    303314   <addaction name="separator"/>
    304315   <addaction name="actionFilePrint"/>
    305    <addaction name="actionSettingsSettings"/>
     316   <addaction name="actionSettingsPreferences"/>
    306317   <addaction name="separator"/>
    307318   <addaction name="actionFileExit"/>
     
    337348   </property>
    338349  </action>
    339   <action name="actionFileSaveResultMatrices">
     350  <action name="actionFileSaveSolutionMatrices">
    340351   <property name="enabled">
    341352    <bool>false</bool>
     
    351362   </property>
    352363  </action>
    353   <action name="actionFileSaveResultGraph">
     364  <action name="actionFileSaveSolutionGraph">
    354365   <property name="enabled">
    355366    <bool>false</bool>
     
    365376   </property>
    366377  </action>
    367   <action name="actionFileSaveResultAll">
     378  <action name="actionFileSaveSolutionAll">
    368379   <property name="enabled">
    369380    <bool>false</bool>
     
    424435   </property>
    425436  </action>
    426   <action name="actionSettingsSettings">
     437  <action name="actionSettingsPreferences">
    427438   <property name="icon">
    428439    <iconset resource="../resources/tspsg.qrc">
     
    518529   <property name="shortcut">
    519530    <string>Ctrl+S</string>
     531   </property>
     532  </action>
     533  <action name="actionSettingsLanguageAutodetect">
     534   <property name="checkable">
     535    <bool>true</bool>
     536   </property>
     537   <property name="checked">
     538    <bool>true</bool>
     539   </property>
     540   <property name="text">
     541    <string>&amp;Autodetect</string>
     542   </property>
     543   <property name="toolTip">
     544    <string>Detect language automatically</string>
     545   </property>
     546   <property name="statusTip">
     547    <string>Detect language automatically based on regional settings</string>
    520548   </property>
    521549  </action>
Note: See TracChangeset for help on using the changeset viewer.