Changeset b2bf8e3b6b in tspsg for ui


Ignore:
Timestamp:
Feb 25, 2010, 9:48:46 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
278bc7818f
Parents:
6beb157497
Message:

+ Added SIP show/hide handling under wince.

  • Renamed translation files to follow common conventions.
  • Language name is now stored in the translation file. No need for language.ini anymore.
  • Updated translations.
Location:
ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ui/mainwindow.ui

    r6beb157497 rb2bf8e3b6b  
    44 <class>MainWindow</class>
    55 <widget class="QMainWindow" name="MainWindow">
     6  <property name="geometry">
     7   <rect>
     8    <x>0</x>
     9    <y>0</y>
     10    <width>301</width>
     11    <height>352</height>
     12   </rect>
     13  </property>
    614  <property name="windowTitle">
    715   <string>Travelling Salesman Problem</string>
     
    917  <property name="windowIcon">
    1018   <iconset resource="../resources/tspsg.qrc">
    11         <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset>
     19    <normaloff>:/images/tspsg.png</normaloff>:/images/tspsg.png</iconset>
    1220  </property>
    1321  <widget class="QTabWidget" name="tabWidget">
    1422   <property name="tabPosition">
    15         <enum>QTabWidget::North</enum>
     23    <enum>QTabWidget::North</enum>
    1624   </property>
    1725   <widget class="QWidget" name="tabTask">
    18         <attribute name="title">
    19         <string>Task</string>
    20         </attribute>
    21         <layout class="QVBoxLayout" name="_2">
    22         <item>
    23           <layout class="QHBoxLayout">
    24            <item>
    25                 <spacer>
    26                 <property name="orientation">
    27                   <enum>Qt::Horizontal</enum>
    28                 </property>
    29                 <property name="sizeHint" stdset="0">
    30                   <size>
    31                    <width>40</width>
    32                    <height>20</height>
    33                   </size>
    34                 </property>
    35                 </spacer>
    36            </item>
    37            <item>
    38                 <widget class="QLabel" name="labelVariant">
    39                 <property name="text">
    40                   <string>&amp;Variant:</string>
    41                 </property>
    42                 <property name="buddy">
    43                   <cstring>spinVariant</cstring>
    44                 </property>
    45                 </widget>
    46            </item>
    47            <item>
    48                 <widget class="QSpinBox" name="spinVariant">
    49                 <property name="cursor">
    50                   <cursorShape>PointingHandCursor</cursorShape>
    51                 </property>
    52                 <property name="statusTip">
    53                   <string>Number of variant</string>
    54                 </property>
    55                 <property name="minimum">
    56                   <number>1</number>
    57                 </property>
    58                 </widget>
    59            </item>
    60            <item>
    61                 <widget class="QLabel" name="labelCities">
    62                 <property name="text">
    63                   <string>&amp;Cities:</string>
    64                 </property>
    65                 <property name="buddy">
    66                   <cstring>spinCities</cstring>
    67                 </property>
    68                 </widget>
    69            </item>
    70            <item>
    71                 <widget class="QSpinBox" name="spinCities">
    72                 <property name="cursor">
    73                   <cursorShape>PointingHandCursor</cursorShape>
    74                 </property>
    75                 <property name="statusTip">
    76                   <string>Number of cities</string>
    77                 </property>
    78                 <property name="minimum">
    79                   <number>3</number>
    80                 </property>
    81                 <property name="value">
    82                   <number>5</number>
    83                 </property>
    84                 </widget>
    85            </item>
    86            <item>
    87                 <spacer>
    88                 <property name="orientation">
    89                   <enum>Qt::Horizontal</enum>
    90                 </property>
    91                 <property name="sizeHint" stdset="0">
    92                   <size>
    93                    <width>40</width>
    94                    <height>20</height>
    95                   </size>
    96                 </property>
    97                 </spacer>
    98            </item>
    99           </layout>
    100         </item>
    101         <item>
    102           <widget class="QTableView" name="taskView">
    103            <property name="statusTip">
    104                 <string>Cost of travel from city to city</string>
    105            </property>
    106            <property name="selectionMode">
    107                 <enum>QAbstractItemView::NoSelection</enum>
    108            </property>
    109           </widget>
    110         </item>
    111         <item>
    112           <layout class="QHBoxLayout">
    113            <item>
    114                 <spacer>
    115                 <property name="orientation">
    116                   <enum>Qt::Horizontal</enum>
    117                 </property>
    118                 <property name="sizeHint" stdset="0">
    119                   <size>
    120                    <width>40</width>
    121                    <height>20</height>
    122                   </size>
    123                 </property>
    124                 </spacer>
    125            </item>
    126            <item>
    127                 <widget class="QPushButton" name="buttonRandom">
    128                 <property name="cursor">
    129                   <cursorShape>PointingHandCursor</cursorShape>
    130                 </property>
    131                 <property name="statusTip">
    132                   <string>Fill table with random numbers</string>
    133                 </property>
    134                 <property name="text">
    135                   <string>Random</string>
    136                 </property>
    137                 <property name="icon">
    138                   <iconset resource="../resources/tspsg.qrc">
    139                    <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset>
    140                 </property>
    141                 </widget>
    142            </item>
    143            <item>
    144                 <widget class="QPushButton" name="buttonSolve">
    145                 <property name="cursor">
    146                   <cursorShape>PointingHandCursor</cursorShape>
    147                 </property>
    148                 <property name="statusTip">
    149                   <string>Solve current task</string>
    150                 </property>
    151                 <property name="text">
    152                   <string>Solve</string>
    153                 </property>
    154                 <property name="icon">
    155                   <iconset resource="../resources/tspsg.qrc">
    156                    <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
    157                 </property>
    158                 </widget>
    159            </item>
    160           </layout>
    161         </item>
    162         </layout>
     26    <attribute name="title">
     27    <string>Task</string>
     28    </attribute>
     29    <layout class="QVBoxLayout" name="_2">
     30    <item>
     31      <layout class="QHBoxLayout">
     32       <item>
     33        <spacer>
     34        <property name="orientation">
     35          <enum>Qt::Horizontal</enum>
     36        </property>
     37        <property name="sizeHint" stdset="0">
     38          <size>
     39           <width>40</width>
     40           <height>20</height>
     41          </size>
     42        </property>
     43        </spacer>
     44       </item>
     45       <item>
     46        <widget class="QLabel" name="labelVariant">
     47        <property name="text">
     48          <string>&amp;Variant:</string>
     49        </property>
     50        <property name="buddy">
     51          <cstring>spinVariant</cstring>
     52        </property>
     53        </widget>
     54       </item>
     55       <item>
     56        <widget class="QSpinBox" name="spinVariant">
     57        <property name="cursor">
     58          <cursorShape>PointingHandCursor</cursorShape>
     59        </property>
     60        <property name="statusTip">
     61          <string>Number of variant</string>
     62        </property>
     63        <property name="minimum">
     64          <number>1</number>
     65        </property>
     66        </widget>
     67       </item>
     68       <item>
     69        <widget class="QLabel" name="labelCities">
     70        <property name="text">
     71          <string>&amp;Cities:</string>
     72        </property>
     73        <property name="buddy">
     74          <cstring>spinCities</cstring>
     75        </property>
     76        </widget>
     77       </item>
     78       <item>
     79        <widget class="QSpinBox" name="spinCities">
     80        <property name="cursor">
     81          <cursorShape>PointingHandCursor</cursorShape>
     82        </property>
     83        <property name="statusTip">
     84          <string>Number of cities</string>
     85        </property>
     86        <property name="minimum">
     87          <number>3</number>
     88        </property>
     89        <property name="value">
     90          <number>5</number>
     91        </property>
     92        </widget>
     93       </item>
     94       <item>
     95        <spacer>
     96        <property name="orientation">
     97          <enum>Qt::Horizontal</enum>
     98        </property>
     99        <property name="sizeHint" stdset="0">
     100          <size>
     101           <width>40</width>
     102           <height>20</height>
     103          </size>
     104        </property>
     105        </spacer>
     106       </item>
     107      </layout>
     108    </item>
     109    <item>
     110      <widget class="QTableView" name="taskView">
     111       <property name="statusTip">
     112        <string>Cost of travel from city to city</string>
     113       </property>
     114       <property name="selectionMode">
     115        <enum>QAbstractItemView::NoSelection</enum>
     116       </property>
     117      </widget>
     118    </item>
     119    <item>
     120      <layout class="QHBoxLayout">
     121       <item>
     122        <spacer>
     123        <property name="orientation">
     124          <enum>Qt::Horizontal</enum>
     125        </property>
     126        <property name="sizeHint" stdset="0">
     127          <size>
     128           <width>40</width>
     129           <height>20</height>
     130          </size>
     131        </property>
     132        </spacer>
     133       </item>
     134       <item>
     135        <widget class="QPushButton" name="buttonRandom">
     136        <property name="cursor">
     137          <cursorShape>PointingHandCursor</cursorShape>
     138        </property>
     139        <property name="statusTip">
     140          <string>Fill table with random numbers</string>
     141        </property>
     142        <property name="text">
     143          <string>Random</string>
     144        </property>
     145        <property name="icon">
     146          <iconset resource="../resources/tspsg.qrc">
     147           <normaloff>:/images/icons/roll.png</normaloff>:/images/icons/roll.png</iconset>
     148        </property>
     149        </widget>
     150       </item>
     151       <item>
     152        <widget class="QPushButton" name="buttonSolve">
     153        <property name="cursor">
     154          <cursorShape>PointingHandCursor</cursorShape>
     155        </property>
     156        <property name="statusTip">
     157          <string>Solve current task</string>
     158        </property>
     159        <property name="text">
     160          <string>Solve</string>
     161        </property>
     162        <property name="icon">
     163          <iconset resource="../resources/tspsg.qrc">
     164           <normaloff>:/images/icons/button_ok.png</normaloff>:/images/icons/button_ok.png</iconset>
     165        </property>
     166        </widget>
     167       </item>
     168      </layout>
     169    </item>
     170    </layout>
    163171   </widget>
    164172   <widget class="QWidget" name="tabSolution">
    165         <attribute name="title">
    166         <string>Solution</string>
    167         </attribute>
    168         <layout class="QVBoxLayout" name="_3">
    169         <item>
    170           <widget class="QTextEdit" name="solutionText">
    171            <property name="enabled">
    172                 <bool>false</bool>
    173            </property>
    174            <property name="statusTip">
    175                 <string>Solution steps</string>
    176            </property>
    177            <property name="readOnly">
    178                 <bool>true</bool>
    179            </property>
    180            <property name="textInteractionFlags">
    181                 <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
    182            </property>
    183           </widget>
    184         </item>
    185         <item>
    186           <layout class="QHBoxLayout" name="horizontalLayout">
    187            <item>
    188                 <widget class="QPushButton" name="buttonSaveSolution">
    189                 <property name="enabled">
    190                   <bool>false</bool>
    191                 </property>
    192                 <property name="cursor">
    193                   <cursorShape>PointingHandCursor</cursorShape>
    194                 </property>
    195                 <property name="statusTip">
    196                   <string>Save solution to a file</string>
    197                 </property>
    198                 <property name="text">
    199                   <string>Save Solution</string>
    200                 </property>
    201                 <property name="icon">
    202                   <iconset resource="../resources/tspsg.qrc">
    203                    <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
    204                 </property>
    205                 </widget>
    206            </item>
    207            <item>
    208                 <spacer name="horizontalSpacer">
    209                 <property name="orientation">
    210                   <enum>Qt::Horizontal</enum>
    211                 </property>
    212                 <property name="sizeHint" stdset="0">
    213                   <size>
    214                    <width>40</width>
    215                    <height>20</height>
    216                   </size>
    217                 </property>
    218                 </spacer>
    219            </item>
    220            <item>
    221                 <widget class="QPushButton" name="buttonBackToTask">
    222                 <property name="cursor">
    223                   <cursorShape>PointingHandCursor</cursorShape>
    224                 </property>
    225                 <property name="statusTip">
    226                   <string>Go back to Task tab</string>
    227                 </property>
    228                 <property name="text">
    229                   <string>Back to Task</string>
    230                 </property>
    231                 <property name="icon">
    232                   <iconset resource="../resources/tspsg.qrc">
    233                    <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
    234                 </property>
    235                 </widget>
    236            </item>
    237           </layout>
    238         </item>
    239         </layout>
     173    <attribute name="title">
     174    <string>Solution</string>
     175    </attribute>
     176    <layout class="QVBoxLayout" name="_3">
     177    <item>
     178      <widget class="QTextEdit" name="solutionText">
     179       <property name="enabled">
     180        <bool>false</bool>
     181       </property>
     182       <property name="statusTip">
     183        <string>Solution steps</string>
     184       </property>
     185       <property name="readOnly">
     186        <bool>true</bool>
     187       </property>
     188       <property name="textInteractionFlags">
     189        <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
     190       </property>
     191      </widget>
     192    </item>
     193    <item>
     194      <layout class="QHBoxLayout" name="horizontalLayout">
     195       <item>
     196        <widget class="QPushButton" name="buttonSaveSolution">
     197        <property name="enabled">
     198          <bool>false</bool>
     199        </property>
     200        <property name="cursor">
     201          <cursorShape>PointingHandCursor</cursorShape>
     202        </property>
     203        <property name="statusTip">
     204          <string>Save solution to a file</string>
     205        </property>
     206        <property name="text">
     207          <string>Save Solution</string>
     208        </property>
     209        <property name="icon">
     210          <iconset resource="../resources/tspsg.qrc">
     211           <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
     212        </property>
     213        </widget>
     214       </item>
     215       <item>
     216        <spacer name="horizontalSpacer">
     217        <property name="orientation">
     218          <enum>Qt::Horizontal</enum>
     219        </property>
     220        <property name="sizeHint" stdset="0">
     221          <size>
     222           <width>40</width>
     223           <height>20</height>
     224          </size>
     225        </property>
     226        </spacer>
     227       </item>
     228       <item>
     229        <widget class="QPushButton" name="buttonBackToTask">
     230        <property name="cursor">
     231          <cursorShape>PointingHandCursor</cursorShape>
     232        </property>
     233        <property name="statusTip">
     234          <string>Go back to Task tab</string>
     235        </property>
     236        <property name="text">
     237          <string>Back to Task</string>
     238        </property>
     239        <property name="icon">
     240          <iconset resource="../resources/tspsg.qrc">
     241           <normaloff>:/images/icons/back.png</normaloff>:/images/icons/back.png</iconset>
     242        </property>
     243        </widget>
     244       </item>
     245      </layout>
     246    </item>
     247    </layout>
    240248   </widget>
    241249  </widget>
    242250  <widget class="QMenuBar" name="menubar">
    243251   <property name="geometry">
    244         <rect>
    245         <x>0</x>
    246         <y>0</y>
    247          <width>287</width>
    248         <height>21</height>
    249         </rect>
     252    <rect>
     253    <x>0</x>
     254    <y>0</y>
     255     <width>301</width>
     256    <height>21</height>
     257    </rect>
    250258   </property>
    251259   <widget class="QMenu" name="menuFile">
    252         <property name="windowIcon">
    253         <iconset>
    254           <normaloff/>
    255         </iconset>
    256         </property>
    257         <property name="title">
    258         <string>&amp;File</string>
    259         </property>
    260         <widget class="QMenu" name="menuFileSaveAs">
    261         <property name="title">
    262           <string>Save &amp;As</string>
    263         </property>
    264         <property name="icon">
    265           <iconset resource="../resources/tspsg.qrc">
    266            <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
    267         </property>
    268         <addaction name="actionFileSaveAsTask"/>
    269         <addaction name="actionFileSaveAsSolution"/>
    270         </widget>
    271         <addaction name="actionFileNew"/>
    272         <addaction name="actionFileOpen"/>
    273         <addaction name="actionFileSave"/>
    274         <addaction name="menuFileSaveAs"/>
    275         <addaction name="separator"/>
    276         <addaction name="actionFileExit"/>
     260    <property name="windowIcon">
     261    <iconset>
     262      <normaloff/>
     263    </iconset>
     264    </property>
     265    <property name="title">
     266    <string>&amp;File</string>
     267    </property>
     268    <widget class="QMenu" name="menuFileSaveAs">
     269    <property name="title">
     270      <string>Save &amp;As</string>
     271    </property>
     272    <property name="icon">
     273      <iconset resource="../resources/tspsg.qrc">
     274       <normaloff>:/images/icons/filesaveas.png</normaloff>:/images/icons/filesaveas.png</iconset>
     275    </property>
     276    <addaction name="actionFileSaveAsTask"/>
     277    <addaction name="actionFileSaveAsSolution"/>
     278    </widget>
     279    <addaction name="actionFileNew"/>
     280    <addaction name="actionFileOpen"/>
     281    <addaction name="actionFileSave"/>
     282    <addaction name="menuFileSaveAs"/>
     283    <addaction name="separator"/>
     284    <addaction name="actionFileExit"/>
    277285   </widget>
    278286   <widget class="QMenu" name="menuSettings">
    279         <property name="title">
    280         <string>&amp;Settings</string>
    281         </property>
    282         <widget class="QMenu" name="menuSettingsLanguage">
    283         <property name="toolTip">
    284           <string>Select language</string>
    285         </property>
    286         <property name="statusTip">
    287           <string>Select application language</string>
    288         </property>
    289         <property name="title">
    290           <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
    291         </property>
    292         <property name="icon">
    293           <iconset resource="../resources/tspsg.qrc">
    294            <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
    295         </property>
    296         <addaction name="actionSettingsLanguageAutodetect"/>
    297         <addaction name="separator"/>
    298         <addaction name="actionSettingsLanguageEnglish"/>
    299         </widget>
    300         <addaction name="menuSettingsLanguage"/>
    301         <addaction name="separator"/>
    302         <addaction name="actionSettingsPreferences"/>
     287    <property name="title">
     288    <string>&amp;Settings</string>
     289    </property>
     290    <widget class="QMenu" name="menuSettingsLanguage">
     291    <property name="toolTip">
     292      <string>Select language</string>
     293    </property>
     294    <property name="statusTip">
     295      <string>Select application language</string>
     296    </property>
     297    <property name="title">
     298      <string comment="Please, append &quot; / Language&quot; when translating this string.">&amp;Language</string>
     299    </property>
     300    <property name="icon">
     301      <iconset resource="../resources/tspsg.qrc">
     302       <normaloff>:/images/icons/locale.png</normaloff>:/images/icons/locale.png</iconset>
     303    </property>
     304    <addaction name="actionSettingsLanguageAutodetect"/>
     305    <addaction name="separator"/>
     306    <addaction name="actionSettingsLanguageEnglish"/>
     307    </widget>
     308    <addaction name="menuSettingsLanguage"/>
     309    <addaction name="separator"/>
     310    <addaction name="actionSettingsPreferences"/>
    303311   </widget>
    304312   <widget class="QMenu" name="menuHelp">
    305         <property name="title">
    306         <string>&amp;Help</string>
    307         </property>
    308         <addaction name="actionHelpContents"/>
    309         <addaction name="actionHelpContextual"/>
    310         <addaction name="separator"/>
    311         <addaction name="actionHelpAboutQt"/>
    312         <addaction name="actionHelpAbout"/>
     313    <property name="title">
     314    <string>&amp;Help</string>
     315    </property>
     316    <addaction name="actionHelpContents"/>
     317    <addaction name="actionHelpContextual"/>
     318    <addaction name="separator"/>
     319    <addaction name="actionHelpAboutQt"/>
     320    <addaction name="actionHelpAbout"/>
    313321   </widget>
    314322   <addaction name="menuFile"/>
     
    318326  <widget class="QToolBar" name="toolBar">
    319327   <property name="cursor">
    320         <cursorShape>ArrowCursor</cursorShape>
     328    <cursorShape>ArrowCursor</cursorShape>
    321329   </property>
    322330   <property name="windowTitle">
    323         <string>Toolbar</string>
     331    <string>Toolbar</string>
    324332   </property>
    325333   <attribute name="toolBarArea">
    326         <enum>TopToolBarArea</enum>
     334    <enum>TopToolBarArea</enum>
    327335   </attribute>
    328336   <attribute name="toolBarBreak">
    329         <bool>false</bool>
     337    <bool>false</bool>
    330338   </attribute>
    331339   <addaction name="actionFileNew"/>
     
    339347  <action name="actionFileSaveAsSolution">
    340348   <property name="enabled">
    341         <bool>false</bool>
    342    </property>
    343    <property name="text">
    344         <string>&amp;Solution...</string>
     349    <bool>false</bool>
     350   </property>
     351   <property name="text">
     352    <string>&amp;Solution...</string>
    345353   </property>
    346354   <property name="toolTip">
    347         <string>Save solution</string>
    348    </property>
    349    <property name="statusTip">
    350         <string>Save solution to a file</string>
     355    <string>Save solution</string>
     356   </property>
     357   <property name="statusTip">
     358    <string>Save solution to a file</string>
    351359   </property>
    352360  </action>
    353361  <action name="actionFileNew">
    354362   <property name="icon">
    355         <iconset resource="../resources/tspsg.qrc">
    356         <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
    357    </property>
    358    <property name="text">
    359         <string>&amp;New</string>
     363    <iconset resource="../resources/tspsg.qrc">
     364    <normaloff>:/images/icons/filenew.png</normaloff>:/images/icons/filenew.png</iconset>
     365   </property>
     366   <property name="text">
     367    <string>&amp;New</string>
    360368   </property>
    361369   <property name="toolTip">
    362         <string>New task</string>
    363    </property>
    364    <property name="statusTip">
    365         <string>Create new task</string>
     370    <string>New task</string>
     371   </property>
     372   <property name="statusTip">
     373    <string>Create new task</string>
    366374   </property>
    367375   <property name="shortcut">
    368         <string>Ctrl+N</string>
     376    <string>Ctrl+N</string>
    369377   </property>
    370378  </action>
    371379  <action name="actionFileOpen">
    372380   <property name="icon">
    373         <iconset resource="../resources/tspsg.qrc">
    374         <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
    375    </property>
    376    <property name="text">
    377         <string>&amp;Open...</string>
     381    <iconset resource="../resources/tspsg.qrc">
     382    <normaloff>:/images/icons/fileopen.png</normaloff>:/images/icons/fileopen.png</iconset>
     383   </property>
     384   <property name="text">
     385    <string>&amp;Open...</string>
    378386   </property>
    379387   <property name="toolTip">
    380         <string>Open task</string>
    381    </property>
    382    <property name="statusTip">
    383         <string>Open saved task</string>
     388    <string>Open task</string>
     389   </property>
     390   <property name="statusTip">
     391    <string>Open saved task</string>
    384392   </property>
    385393   <property name="shortcut">
    386         <string>Ctrl+O</string>
     394    <string>Ctrl+O</string>
    387395   </property>
    388396  </action>
    389397  <action name="actionSettingsPreferences">
    390398   <property name="icon">
    391         <iconset resource="../resources/tspsg.qrc">
    392         <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
    393    </property>
    394    <property name="text">
    395         <string>&amp;Preferences...</string>
    396    </property>
    397    <property name="statusTip">
    398         <string>Application preferences</string>
     399    <iconset resource="../resources/tspsg.qrc">
     400    <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
     401   </property>
     402   <property name="text">
     403    <string>&amp;Preferences...</string>
     404   </property>
     405   <property name="statusTip">
     406    <string>Application preferences</string>
    399407   </property>
    400408  </action>
    401409  <action name="actionHelpContents">
    402410   <property name="enabled">
    403         <bool>false</bool>
    404    </property>
    405    <property name="icon">
    406         <iconset resource="../resources/tspsg.qrc">
    407         <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
    408    </property>
    409    <property name="text">
    410         <string>&amp;Contents</string>
    411    </property>
    412    <property name="statusTip">
    413         <string>Open help contents</string>
     411    <bool>false</bool>
     412   </property>
     413   <property name="icon">
     414    <iconset resource="../resources/tspsg.qrc">
     415    <normaloff>:/images/icons/contents.png</normaloff>:/images/icons/contents.png</iconset>
     416   </property>
     417   <property name="text">
     418    <string>&amp;Contents</string>
     419   </property>
     420   <property name="statusTip">
     421    <string>Open help contents</string>
    414422   </property>
    415423   <property name="shortcut">
    416         <string>Ctrl+F1</string>
     424    <string>Ctrl+F1</string>
    417425   </property>
    418426  </action>
    419427  <action name="actionHelpContextual">
    420428   <property name="enabled">
    421         <bool>false</bool>
    422    </property>
    423    <property name="icon">
    424         <iconset resource="../resources/tspsg.qrc">
    425         <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
    426    </property>
    427    <property name="text">
    428         <string>Context &amp;Help</string>
    429    </property>
    430    <property name="statusTip">
    431         <string>Open context help</string>
     429    <bool>false</bool>
     430   </property>
     431   <property name="icon">
     432    <iconset resource="../resources/tspsg.qrc">
     433    <normaloff>:/images/icons/help_browser.png</normaloff>:/images/icons/help_browser.png</iconset>
     434   </property>
     435   <property name="text">
     436    <string>Context &amp;Help</string>
     437   </property>
     438   <property name="statusTip">
     439    <string>Open context help</string>
    432440   </property>
    433441   <property name="shortcut">
    434         <string>F1</string>
     442    <string>F1</string>
    435443   </property>
    436444  </action>
    437445  <action name="actionHelpAbout">
    438446   <property name="icon">
    439         <iconset resource="../resources/tspsg.qrc">
    440         <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
    441    </property>
    442    <property name="text">
    443         <string>&amp;About TSPSG...</string>
    444    </property>
    445    <property name="statusTip">
    446         <string>About application</string>
     447    <iconset resource="../resources/tspsg.qrc">
     448    <normaloff>:/images/icons/help_about.png</normaloff>:/images/icons/help_about.png</iconset>
     449   </property>
     450   <property name="text">
     451    <string>&amp;About TSPSG...</string>
     452   </property>
     453   <property name="statusTip">
     454    <string>About application</string>
    447455   </property>
    448456  </action>
    449457  <action name="actionFileExit">
    450458   <property name="icon">
    451         <iconset resource="../resources/tspsg.qrc">
    452         <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
    453    </property>
    454    <property name="text">
    455         <string>E&amp;xit</string>
    456    </property>
    457    <property name="statusTip">
    458         <string>Exit application</string>
     459    <iconset resource="../resources/tspsg.qrc">
     460    <normaloff>:/images/icons/exit.png</normaloff>:/images/icons/exit.png</iconset>
     461   </property>
     462   <property name="text">
     463    <string>E&amp;xit</string>
     464   </property>
     465   <property name="statusTip">
     466    <string>Exit application</string>
    459467   </property>
    460468  </action>
    461469  <action name="actionFileSaveAsTask">
    462470   <property name="text">
    463         <string>&amp;Task...</string>
     471    <string>&amp;Task...</string>
    464472   </property>
    465473   <property name="toolTip">
    466         <string>Save task</string>
    467    </property>
    468    <property name="statusTip">
    469         <string>Save task to file</string>
     474    <string>Save task</string>
     475   </property>
     476   <property name="statusTip">
     477    <string>Save task to file</string>
    470478   </property>
    471479  </action>
    472480  <action name="actionSettingsLanguageAutodetect">
    473481   <property name="checkable">
    474         <bool>true</bool>
     482    <bool>true</bool>
    475483   </property>
    476484   <property name="checked">
    477         <bool>true</bool>
    478    </property>
    479    <property name="text">
    480         <string>&amp;Autodetect</string>
     485    <bool>true</bool>
     486   </property>
     487   <property name="text">
     488    <string>&amp;Autodetect</string>
    481489   </property>
    482490   <property name="toolTip">
    483         <string>Detect language automatically</string>
    484    </property>
    485    <property name="statusTip">
    486         <string>Detect language automatically based on regional settings</string>
     491    <string>Detect language automatically</string>
     492   </property>
     493   <property name="statusTip">
     494    <string>Detect language automatically based on regional settings</string>
    487495   </property>
    488496  </action>
    489497  <action name="actionSettingsLanguageEnglish">
    490498   <property name="checkable">
    491         <bool>true</bool>
     499    <bool>true</bool>
    492500   </property>
    493501   <property name="checked">
    494         <bool>true</bool>
    495    </property>
    496    <property name="text">
    497         <string notr="true">&amp;English</string>
     502    <bool>true</bool>
     503   </property>
     504   <property name="text">
     505    <string notr="true">&amp;English</string>
    498506   </property>
    499507   <property name="iconText">
    500         <string notr="true">English</string>
     508    <string notr="true">English</string>
    501509   </property>
    502510  </action>
    503511  <action name="actionFileSave">
    504512   <property name="icon">
    505         <iconset resource="../resources/tspsg.qrc">
    506         <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
    507    </property>
    508    <property name="text">
    509         <string>&amp;Save</string>
     513    <iconset resource="../resources/tspsg.qrc">
     514    <normaloff>:/images/icons/filesave.png</normaloff>:/images/icons/filesave.png</iconset>
     515   </property>
     516   <property name="text">
     517    <string>&amp;Save</string>
    510518   </property>
    511519   <property name="toolTip">
    512         <string>Save task</string>
    513    </property>
    514    <property name="statusTip">
    515         <string>Save current task</string>
     520    <string>Save task</string>
     521   </property>
     522   <property name="statusTip">
     523    <string>Save current task</string>
    516524   </property>
    517525   <property name="shortcut">
    518         <string>Ctrl+S</string>
     526    <string>Ctrl+S</string>
    519527   </property>
    520528  </action>
    521529  <action name="actionHelpAboutQt">
    522530   <property name="icon">
    523         <iconset resource="../resources/tspsg.qrc">
    524         <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
    525    </property>
    526    <property name="text">
    527         <string>About &amp;Qt...</string>
    528    </property>
    529    <property name="statusTip">
    530         <string>About Qt library</string>
     531    <iconset resource="../resources/tspsg.qrc">
     532    <normaloff>:/images/icons/qtlogo-64.png</normaloff>:/images/icons/qtlogo-64.png</iconset>
     533   </property>
     534   <property name="text">
     535    <string>About &amp;Qt...</string>
     536   </property>
     537   <property name="statusTip">
     538    <string>About Qt library</string>
    531539   </property>
    532540  </action>
     
    542550   <slot>close()</slot>
    543551   <hints>
    544         <hint type="sourcelabel">
    545         <x>-1</x>
    546         <y>-1</y>
    547         </hint>
    548         <hint type="destinationlabel">
    549         <x>294</x>
    550         <y>229</y>
    551         </hint>
     552    <hint type="sourcelabel">
     553    <x>-1</x>
     554    <y>-1</y>
     555    </hint>
     556    <hint type="destinationlabel">
     557    <x>294</x>
     558    <y>229</y>
     559    </hint>
    552560   </hints>
    553561  </connection>
     
    558566   <slot>trigger()</slot>
    559567   <hints>
    560         <hint type="sourcelabel">
    561         <x>58</x>
    562         <y>327</y>
    563         </hint>
    564         <hint type="destinationlabel">
    565         <x>-1</x>
    566         <y>-1</y>
    567         </hint>
     568    <hint type="sourcelabel">
     569    <x>58</x>
     570    <y>327</y>
     571    </hint>
     572    <hint type="destinationlabel">
     573    <x>-1</x>
     574    <y>-1</y>
     575    </hint>
    568576   </hints>
    569577  </connection>
  • ui/settingsdialog.ui

    r6beb157497 rb2bf8e3b6b  
    1111    <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
    1212  </property>
    13   <widget class="Line" name="lineHorizontal">
    14    <property name="maximumSize">
    15     <size>
    16      <width>16777215</width>
    17      <height>2</height>
    18     </size>
    19    </property>
    20    <property name="frameShadow">
    21     <enum>QFrame::Plain</enum>
    22    </property>
    23    <property name="lineWidth">
    24     <number>2</number>
    25    </property>
    26    <property name="orientation">
    27     <enum>Qt::Horizontal</enum>
    28    </property>
    29   </widget>
    3013  <widget class="QWidget" name="bgGrey" native="true">
    3114   <property name="sizePolicy">
     
    7558    <bool>true</bool>
    7659   </property>
    77    <widget class="QToolButton" name="buttonHelp">
    78     <property name="enabled">
    79      <bool>false</bool>
     60   <layout class="QVBoxLayout" name="_2">
     61    <property name="spacing">
     62     <number>0</number>
    8063    </property>
    81     <property name="cursor">
    82      <cursorShape>PointingHandCursor</cursorShape>
     64    <property name="margin">
     65     <number>0</number>
    8366    </property>
    84     <property name="toolTip">
    85      <string>Help</string>
    86     </property>
    87     <property name="statusTip">
    88      <string>Get preferences help</string>
    89     </property>
    90     <property name="text">
    91      <string>Help</string>
    92     </property>
    93     <property name="icon">
    94      <iconset resource="../resources/tspsg.qrc">
    95       <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset>
    96     </property>
    97     <property name="autoRaise">
    98      <bool>true</bool>
    99     </property>
    100    </widget>
    101    <widget class="QDialogButtonBox" name="buttonBox">
    102     <property name="sizePolicy">
    103      <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
    104       <horstretch>0</horstretch>
    105       <verstretch>0</verstretch>
    106      </sizepolicy>
    107     </property>
    108     <property name="standardButtons">
    109      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
    110     </property>
    111    </widget>
     67    <item>
     68     <widget class="Line" name="lineHorizontal">
     69      <property name="maximumSize">
     70       <size>
     71        <width>16777215</width>
     72        <height>2</height>
     73       </size>
     74      </property>
     75      <property name="frameShadow">
     76       <enum>QFrame::Plain</enum>
     77      </property>
     78      <property name="lineWidth">
     79       <number>2</number>
     80      </property>
     81      <property name="orientation">
     82       <enum>Qt::Horizontal</enum>
     83      </property>
     84     </widget>
     85    </item>
     86    <item>
     87     <layout class="QHBoxLayout" name="buttons">
     88      <property name="spacing">
     89       <number>6</number>
     90      </property>
     91      <property name="margin">
     92       <number>6</number>
     93      </property>
     94      <item>
     95       <widget class="QToolButton" name="buttonHelp">
     96        <property name="enabled">
     97         <bool>false</bool>
     98        </property>
     99        <property name="cursor">
     100         <cursorShape>PointingHandCursor</cursorShape>
     101        </property>
     102        <property name="toolTip">
     103         <string>Help</string>
     104        </property>
     105        <property name="statusTip">
     106         <string>Get preferences help</string>
     107        </property>
     108        <property name="text">
     109         <string>Help</string>
     110        </property>
     111        <property name="icon">
     112         <iconset resource="../resources/tspsg.qrc">
     113          <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset>
     114        </property>
     115        <property name="autoRaise">
     116         <bool>true</bool>
     117        </property>
     118       </widget>
     119      </item>
     120      <item>
     121       <widget class="QDialogButtonBox" name="buttonBox">
     122        <property name="standardButtons">
     123         <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
     124        </property>
     125       </widget>
     126      </item>
     127     </layout>
     128    </item>
     129   </layout>
    112130  </widget>
    113131  <widget class="QWidget" name="bgWhite" native="true">
     
    152170    <bool>true</bool>
    153171   </property>
    154    <layout class="QVBoxLayout" name="verticalLayout_3">
     172   <layout class="QHBoxLayout" name="_3">
    155173    <item>
    156174     <widget class="QTabWidget" name="tabWidget">
     
    162180        <string>General TSPSG settings</string>
    163181       </attribute>
    164        <layout class="QVBoxLayout" name="verticalLayout_2">
     182       <layout class="QVBoxLayout" name="_4">
    165183        <item>
    166184         <widget class="QCheckBox" name="cbAutosize">
     
    190208        </item>
    191209        <item>
    192          <spacer name="verticalSpacer_2">
     210         <spacer name="spacer">
    193211          <property name="orientation">
    194212           <enum>Qt::Vertical</enum>
     
    211229        <string>Task generation and solving settings</string>
    212230       </attribute>
    213        <layout class="QVBoxLayout" name="verticalLayout_4">
    214         <item>
    215          <layout class="QHBoxLayout" name="horizontalLayout_3">
     231       <layout class="QVBoxLayout" name="_5">
     232        <item>
     233         <layout class="QHBoxLayout" name="_10">
    216234          <item>
    217235           <widget class="QLabel" name="labelFractionalAccuracy">
     
    219237             <string>Fractional accuracy:</string>
    220238            </property>
    221             <property name="buddy">
    222              <cstring>spinFractionalAccuracy</cstring>
    223             </property>
    224239           </widget>
    225240          </item>
     
    238253          </item>
    239254          <item>
    240            <spacer name="horizontalSpacer_5">
     255           <spacer name="spacer_3">
    241256            <property name="orientation">
    242257             <enum>Qt::Horizontal</enum>
     
    253268        </item>
    254269        <item>
    255          <layout class="QHBoxLayout" name="horizontalLayout_2">
     270         <layout class="QHBoxLayout" name="_7">
    256271          <item>
    257272           <widget class="QGroupBox" name="groupBox">
     
    259274             <string>Random numbers</string>
    260275            </property>
    261             <layout class="QVBoxLayout" name="verticalLayout_5">
     276            <layout class="QVBoxLayout" name="_8">
    262277             <item>
    263               <layout class="QFormLayout" name="formLayout">
     278              <layout class="QFormLayout" name="_9">
    264279               <property name="fieldGrowthPolicy">
    265280                <enum>QFormLayout::ExpandingFieldsGrow</enum>
     
    324339          </item>
    325340          <item>
    326            <spacer name="horizontalSpacer">
     341           <spacer name="spacer_2">
    327342            <property name="orientation">
    328343             <enum>Qt::Horizontal</enum>
     
    339354        </item>
    340355        <item>
    341          <spacer name="verticalSpacer_3">
     356         <spacer name="spacer_5">
    342357          <property name="orientation">
    343358           <enum>Qt::Vertical</enum>
     
    346361           <size>
    347362            <width>0</width>
    348             <height>1</height>
     363            <height>0</height>
    349364           </size>
    350365          </property>
     
    360375        <string>Solution output settings</string>
    361376       </attribute>
    362        <layout class="QVBoxLayout" name="verticalLayout">
     377       <layout class="QVBoxLayout" name="_6">
    363378        <item>
    364379         <widget class="QCheckBox" name="cbShowMatrix">
     
    380395          </property>
    381396          <item>
    382            <spacer name="horizontalSpacer_3">
     397           <spacer name="spacer_4">
    383398            <property name="orientation">
    384399             <enum>Qt::Horizontal</enum>
     
    422437          </item>
    423438          <item>
    424            <spacer name="horizontalSpacer_4">
     439           <spacer name="spacer_6">
    425440            <property name="orientation">
    426441             <enum>Qt::Horizontal</enum>
     
    450465        </item>
    451466        <item>
    452          <layout class="QHBoxLayout" name="horizontalLayout_4">
    453           <item>
    454            <widget class="QGroupBox" name="groupBox_2">
     467         <layout class="QHBoxLayout" name="_11">
     468          <item>
     469           <widget class="QGroupBox" name="groupOutput">
    455470            <property name="title">
    456471             <string>Output font settings</string>
     
    495510          </item>
    496511          <item>
    497            <spacer name="horizontalSpacer_2">
     512           <spacer name="spacer_7">
    498513            <property name="orientation">
    499514             <enum>Qt::Horizontal</enum>
     
    540555   <hints>
    541556    <hint type="sourcelabel">
    542      <x>155</x>
    543      <y>252</y>
     557     <x>190</x>
     558     <y>30</y>
    544559    </hint>
    545560    <hint type="destinationlabel">
     
    556571   <hints>
    557572    <hint type="sourcelabel">
    558      <x>155</x>
    559      <y>252</y>
     573     <x>190</x>
     574     <y>30</y>
    560575    </hint>
    561576    <hint type="destinationlabel">
     
    572587   <hints>
    573588    <hint type="sourcelabel">
    574      <x>81</x>
    575      <y>8</y>
     589     <x>80</x>
     590     <y>150</y>
    576591    </hint>
    577592    <hint type="destinationlabel">
    578      <x>46</x>
    579      <y>8</y>
     593     <x>91</x>
     594     <y>175</y>
    580595    </hint>
    581596   </hints>
     
    588603   <hints>
    589604    <hint type="sourcelabel">
    590      <x>81</x>
    591      <y>8</y>
     605     <x>80</x>
     606     <y>150</y>
    592607    </hint>
    593608    <hint type="destinationlabel">
    594      <x>46</x>
    595      <y>8</y>
     609     <x>91</x>
     610     <y>175</y>
    596611    </hint>
    597612   </hints>
     
    604619   <hints>
    605620    <hint type="sourcelabel">
    606      <x>46</x>
    607      <y>8</y>
     621     <x>91</x>
     622     <y>175</y>
    608623    </hint>
    609624    <hint type="destinationlabel">
    610      <x>29</x>
    611      <y>9</y>
     625     <x>184</x>
     626     <y>174</y>
    612627    </hint>
    613628   </hints>
Note: See TracChangeset for help on using the changeset viewer.