Changeset 29 in tspsg-svn for trunk/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.
Location:
trunk/ui
Files:
3 edited

Legend:

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

    r27 r29  
    282282     <string>&amp;Settings</string>
    283283    </property>
    284     <addaction name="actionSettingsSettings"/>
     284    <widget class="QMenu" name="menuSettingsLanguage">
     285     <property name="toolTip">
     286      <string>Select language</string>
     287     </property>
     288     <property name="statusTip">
     289      <string>Select application language</string>
     290     </property>
     291     <property name="title">
     292      <string extracomment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
     293     </property>
     294     <addaction name="actionSettingsLanguageAutodetect"/>
     295    </widget>
     296    <addaction name="menuSettingsLanguage"/>
     297    <addaction name="separator"/>
     298    <addaction name="actionSettingsPreferences"/>
    285299   </widget>
    286300   <widget class="QMenu" name="menuHelp">
     
    317331   <addaction name="actionFileSaveTask"/>
    318332   <addaction name="separator"/>
    319    <addaction name="actionSettingsSettings"/>
     333   <addaction name="actionSettingsPreferences"/>
    320334   <addaction name="separator"/>
    321335   <addaction name="actionFileExit"/>
     
    408422   </property>
    409423  </action>
    410   <action name="actionSettingsSettings">
     424  <action name="actionSettingsPreferences">
    411425   <property name="icon">
    412426    <iconset resource="../resources/tspsg.qrc">
     
    502516   <property name="shortcut">
    503517    <string>Ctrl+S</string>
     518   </property>
     519  </action>
     520  <action name="actionSettingsLanguageAutodetect">
     521   <property name="checkable">
     522    <bool>true</bool>
     523   </property>
     524   <property name="checked">
     525    <bool>true</bool>
     526   </property>
     527   <property name="text">
     528    <string>&amp;Autodetect</string>
     529   </property>
     530   <property name="toolTip">
     531    <string>Detect language automatically</string>
     532   </property>
     533   <property name="statusTip">
     534    <string>Detect language automatically based on regional settings</string>
    504535   </property>
    505536  </action>
  • 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>
  • trunk/ui/settingsdialog.ce.ui

    r27 r29  
    88    <y>0</y>
    99    <width>235</width>
    10     <height>190</height>
     10    <height>180</height>
    1111   </rect>
    1212  </property>
Note: See TracChangeset for help on using the changeset viewer.