Changeset 317ba0432e in tspsg for ui


Ignore:
Timestamp:
Apr 19, 2010, 10:33:02 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:
b574c383b7
Parents:
a23f4c292f
git-author:
Oleksii Serdiuk <contacts@…> (04/19/10 22:33:02)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:41:27)
Message:
  • Improved the solution output generation algorithm. Now it works directly with QTextDocument instead of "feeding" it with HTML. Thanks to this the solution output generation is now about 1.65 times faster.
  • Added .txt extension to ChangeLog?, INSTALL and README files to simplify opening these files in Windows.
  • Made a small improvement to Settings Dialog to follow the current application palette.
  • Output text color if not set is now determmined based on the current application palette.
Location:
ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ui/mainwindow.ui

    ra23f4c292f r317ba0432e  
    182182           <property name="statusTip">
    183183                <string>Solution steps</string>
     184           </property>
     185           <property name="undoRedoEnabled">
     186                <bool>false</bool>
    184187           </property>
    185188           <property name="readOnly">
  • ui/settingsdialog.ui

    ra23f4c292f r317ba0432e  
    99  <property name="windowIcon">
    1010   <iconset resource="../resources/tspsg.qrc">
    11     <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
     11        <normaloff>:/images/icons/preferences_system.png</normaloff>:/images/icons/preferences_system.png</iconset>
    1212  </property>
    1313  <widget class="QWidget" name="bgGrey" native="true">
    1414   <property name="sizePolicy">
    15     <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
    16      <horstretch>0</horstretch>
    17      <verstretch>0</verstretch>
    18     </sizepolicy>
    19    </property>
    20    <property name="palette">
    21     <palette>
    22      <active>
    23       <colorrole role="Window">
    24        <brush brushstyle="SolidPattern">
    25         <color alpha="255">
    26          <red>240</red>
    27          <green>240</green>
    28          <blue>240</blue>
    29         </color>
    30        </brush>
    31       </colorrole>
    32      </active>
    33      <inactive>
    34       <colorrole role="Window">
    35        <brush brushstyle="SolidPattern">
    36         <color alpha="255">
    37          <red>240</red>
    38          <green>240</green>
    39          <blue>240</blue>
    40         </color>
    41        </brush>
    42       </colorrole>
    43      </inactive>
    44      <disabled>
    45       <colorrole role="Window">
    46        <brush brushstyle="SolidPattern">
    47         <color alpha="255">
    48          <red>240</red>
    49          <green>240</green>
    50          <blue>240</blue>
    51         </color>
    52        </brush>
    53       </colorrole>
    54      </disabled>
    55     </palette>
     15        <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
     16         <horstretch>0</horstretch>
     17         <verstretch>0</verstretch>
     18        </sizepolicy>
    5619   </property>
    5720   <property name="autoFillBackground">
    58     <bool>true</bool>
     21        <bool>true</bool>
    5922   </property>
    6023   <layout class="QVBoxLayout" name="_2">
    61     <property name="spacing">
    62     <number>0</number>
    63     </property>
    64     <property name="margin">
    65     <number>0</number>
    66     </property>
    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>
     24        <property name="spacing">
     25        <number>0</number>
     26        </property>
     27        <property name="margin">
     28        <number>0</number>
     29        </property>
     30        <item>
     31        <widget class="Line" name="lineHorizontal">
     32          <property name="maximumSize">
     33           <size>
     34                <width>16777215</width>
     35                <height>2</height>
     36           </size>
     37          </property>
     38          <property name="frameShadow">
     39           <enum>QFrame::Plain</enum>
     40          </property>
     41          <property name="lineWidth">
     42           <number>2</number>
     43          </property>
     44          <property name="orientation">
     45           <enum>Qt::Horizontal</enum>
     46          </property>
     47        </widget>
     48        </item>
     49        <item>
     50        <layout class="QHBoxLayout" name="buttons">
     51          <property name="spacing">
     52           <number>6</number>
     53          </property>
     54          <property name="margin">
     55           <number>6</number>
     56          </property>
     57          <item>
     58           <widget class="QToolButton" name="buttonHelp">
     59                <property name="enabled">
     60                <bool>false</bool>
     61                </property>
     62                <property name="cursor">
     63                <cursorShape>PointingHandCursor</cursorShape>
     64                </property>
     65                <property name="toolTip">
     66                <string>Help</string>
     67                </property>
     68                <property name="statusTip">
     69                <string>Get preferences help</string>
     70                </property>
     71                <property name="text">
     72                <string>Help</string>
     73                </property>
     74                <property name="icon">
     75                <iconset resource="../resources/tspsg.qrc">
     76                  <normaloff>:/images/icons/help_hint.png</normaloff>:/images/icons/help_hint.png</iconset>
     77                </property>
     78                <property name="autoRaise">
     79                <bool>true</bool>
     80                </property>
     81           </widget>
     82          </item>
     83          <item>
     84           <widget class="QDialogButtonBox" name="buttonBox">
     85                <property name="standardButtons">
     86                <set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
     87                </property>
     88           </widget>
     89          </item>
     90        </layout>
     91        </item>
    12992   </layout>
    13093  </widget>
    13194  <widget class="QWidget" name="bgWhite" native="true">
    132    <property name="palette">
    133     <palette>
    134      <active>
    135       <colorrole role="Window">
    136        <brush brushstyle="SolidPattern">
    137         <color alpha="255">
    138          <red>255</red>
    139          <green>255</green>
    140          <blue>255</blue>
    141         </color>
    142        </brush>
    143       </colorrole>
    144      </active>
    145      <inactive>
    146       <colorrole role="Window">
    147        <brush brushstyle="SolidPattern">
    148         <color alpha="255">
    149          <red>255</red>
    150          <green>255</green>
    151          <blue>255</blue>
    152         </color>
    153        </brush>
    154       </colorrole>
    155      </inactive>
    156      <disabled>
    157       <colorrole role="Window">
    158        <brush brushstyle="SolidPattern">
    159         <color alpha="255">
    160          <red>255</red>
    161          <green>255</green>
    162          <blue>255</blue>
    163         </color>
    164        </brush>
    165       </colorrole>
    166      </disabled>
    167     </palette>
    168    </property>
    16995   <property name="autoFillBackground">
    170     <bool>true</bool>
     96        <bool>true</bool>
    17197   </property>
    17298   <layout class="QHBoxLayout" name="_3">
    173     <item>
    174     <widget class="QTabWidget" name="tabWidget">
    175       <widget class="QWidget" name="tabGeneral">
    176        <attribute name="title">
    177         <string>General</string>
    178        </attribute>
    179        <attribute name="toolTip">
    180         <string>General TSPSG settings</string>
    181        </attribute>
    182        <layout class="QVBoxLayout" name="_4">
    183         <item>
    184         <widget class="QCheckBox" name="cbAutosize">
    185           <property name="cursor">
    186            <cursorShape>PointingHandCursor</cursorShape>
    187           </property>
    188           <property name="statusTip">
    189            <string>Automatically resize rows and columns to their contents</string>
    190           </property>
    191           <property name="text">
    192            <string>Autosize of rows and columns</string>
    193           </property>
    194         </widget>
    195         </item>
    196         <item>
    197         <widget class="QCheckBox" name="cbUseNativeDialogs">
    198           <property name="cursor">
    199            <cursorShape>PointingHandCursor</cursorShape>
    200           </property>
    201           <property name="statusTip">
    202            <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string>
    203           </property>
    204           <property name="text">
    205            <string>Use native file dialogs</string>
    206           </property>
    207         </widget>
    208         </item>
    209         <item>
    210         <spacer name="spacer">
    211           <property name="orientation">
    212            <enum>Qt::Vertical</enum>
    213           </property>
    214           <property name="sizeHint" stdset="0">
    215            <size>
    216             <width>0</width>
    217             <height>0</height>
    218            </size>
    219           </property>
    220         </spacer>
    221         </item>
    222        </layout>
    223       </widget>
    224       <widget class="QWidget" name="tabTask">
    225        <attribute name="title">
    226         <string>Task</string>
    227        </attribute>
    228        <attribute name="toolTip">
    229         <string>Task generation and solving settings</string>
    230        </attribute>
    231        <layout class="QVBoxLayout" name="_9">
    232         <item>
    233         <layout class="QFormLayout" name="_5">
    234           <property name="fieldGrowthPolicy">
    235            <enum>QFormLayout::ExpandingFieldsGrow</enum>
    236           </property>
    237           <item row="0" column="0">
    238            <widget class="QLabel" name="labelFractionalAccuracy">
    239             <property name="text">
    240             <string>Fractional accuracy:</string>
    241             </property>
    242            </widget>
    243           </item>
    244           <item row="0" column="1">
    245            <widget class="QSpinBox" name="spinFractionalAccuracy">
    246             <property name="cursor">
    247             <cursorShape>PointingHandCursor</cursorShape>
    248             </property>
    249             <property name="statusTip">
    250             <string>Accuracy of the fractional values (in decimal places)</string>
    251             </property>
    252             <property name="maximum">
    253             <number>6</number>
    254             </property>
    255            </widget>
    256           </item>
    257         </layout>
    258         </item>
    259         <item>
    260         <widget class="QCheckBox" name="cbSymmetricMode">
    261           <property name="cursor">
    262            <cursorShape>PointingHandCursor</cursorShape>
    263           </property>
    264           <property name="statusTip">
    265            <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string>
    266           </property>
    267           <property name="text">
    268            <string>Symmetric mode</string>
    269           </property>
    270         </widget>
    271         </item>
    272         <item>
    273         <widget class="QGroupBox" name="gbTaskGeneration">
    274           <property name="title">
    275            <string>Task generation</string>
    276           </property>
    277           <layout class="QVBoxLayout" name="_7">
    278            <item>
    279             <layout class="QFormLayout" name="_8">
    280             <property name="fieldGrowthPolicy">
    281               <enum>QFormLayout::ExpandingFieldsGrow</enum>
    282             </property>
    283             <item row="0" column="0">
    284               <widget class="QLabel" name="labelRandMin">
    285                <property name="text">
    286                 <string>Minimal random:</string>
    287                </property>
    288                <property name="buddy">
    289                 <cstring>spinRandMin</cstring>
    290                </property>
    291               </widget>
    292             </item>
    293             <item row="0" column="1">
    294               <widget class="QSpinBox" name="spinRandMin">
    295                <property name="cursor">
    296                 <cursorShape>PointingHandCursor</cursorShape>
    297                </property>
    298                <property name="statusTip">
    299                 <string>Minimum for random number generation</string>
    300                </property>
    301               </widget>
    302             </item>
    303             <item row="1" column="0">
    304               <widget class="QLabel" name="labelRandMax">
    305                <property name="text">
    306                 <string>Maximal random:</string>
    307                </property>
    308                <property name="buddy">
    309                 <cstring>spinRandMax</cstring>
    310                </property>
    311               </widget>
    312             </item>
    313             <item row="1" column="1">
    314               <widget class="QSpinBox" name="spinRandMax">
    315                <property name="cursor">
    316                 <cursorShape>PointingHandCursor</cursorShape>
    317                </property>
    318                <property name="statusTip">
    319                 <string>Maximum for random number generation</string>
    320                </property>
    321               </widget>
    322             </item>
    323             </layout>
    324            </item>
    325            <item>
    326             <widget class="QCheckBox" name="cbFractionalRandom">
    327             <property name="cursor">
    328               <cursorShape>PointingHandCursor</cursorShape>
    329             </property>
    330             <property name="statusTip">
    331               <string>Generate fractional random values with the Fractional accuracy</string>
    332             </property>
    333             <property name="text">
    334               <string>Fractional random values</string>
    335             </property>
    336             </widget>
    337            </item>
    338           </layout>
    339         </widget>
    340         </item>
    341         <item>
    342         <spacer name="spacer_2">
    343           <property name="orientation">
    344            <enum>Qt::Vertical</enum>
    345           </property>
    346           <property name="sizeHint" stdset="0">
    347            <size>
    348             <width>10</width>
    349             <height>0</height>
    350            </size>
    351           </property>
    352         </spacer>
    353         </item>
    354        </layout>
    355       </widget>
    356       <widget class="QWidget" name="tabOutput">
    357        <attribute name="title">
    358         <string>Output</string>
    359        </attribute>
    360        <attribute name="toolTip">
    361         <string>Solution output settings</string>
    362        </attribute>
    363        <layout class="QVBoxLayout" name="_6">
    364         <item>
    365         <widget class="QCheckBox" name="cbShowMatrix">
    366           <property name="cursor">
    367            <cursorShape>PointingHandCursor</cursorShape>
    368           </property>
    369           <property name="statusTip">
    370            <string>Show solution steps' matrices for every solution step</string>
    371           </property>
    372           <property name="text">
    373            <string>Show solution steps' matrices</string>
    374           </property>
    375         </widget>
    376         </item>
    377         <item>
    378         <layout class="QHBoxLayout" name="layoutCititesLimit">
    379           <property name="spacing">
    380            <number>0</number>
    381           </property>
    382           <item>
    383            <spacer name="spacer_3">
    384             <property name="orientation">
    385             <enum>Qt::Horizontal</enum>
    386             </property>
    387             <property name="sizeType">
    388             <enum>QSizePolicy::Fixed</enum>
    389             </property>
    390             <property name="sizeHint" stdset="0">
    391             <size>
    392               <width>10</width>
    393               <height>0</height>
    394             </size>
    395             </property>
    396            </spacer>
    397           </item>
    398           <item>
    399            <widget class="QCheckBox" name="cbCitiesLimit">
    400             <property name="cursor">
    401             <cursorShape>PointingHandCursor</cursorShape>
    402             </property>
    403             <property name="statusTip">
    404             <string>Show or hide solution steps' matrices based on number of cities in the task</string>
    405             </property>
    406             <property name="text">
    407             <string>Only when &lt;=</string>
    408             </property>
    409            </widget>
    410           </item>
    411           <item>
    412            <widget class="QSpinBox" name="spinCitiesLimit">
    413             <property name="statusTip">
    414             <string>Maximum number of cities to show solution steps' matrices</string>
    415             </property>
    416             <property name="suffix">
    417             <string comment="Don't forget a space at the beginning!"> cities</string>
    418             </property>
    419             <property name="minimum">
    420             <number>1</number>
    421             </property>
    422            </widget>
    423           </item>
    424           <item>
    425            <spacer name="spacer_4">
    426             <property name="orientation">
    427             <enum>Qt::Horizontal</enum>
    428             </property>
    429             <property name="sizeHint" stdset="0">
    430             <size>
    431               <width>0</width>
    432               <height>0</height>
    433             </size>
    434             </property>
    435            </spacer>
    436           </item>
    437         </layout>
    438         </item>
    439         <item>
    440         <widget class="QCheckBox" name="cbScrollToEnd">
    441           <property name="cursor">
    442            <cursorShape>PointingHandCursor</cursorShape>
    443           </property>
    444           <property name="statusTip">
    445            <string>Scroll to the end of solution output after solving</string>
    446           </property>
    447           <property name="text">
    448            <string>Scroll to solution end</string>
    449           </property>
    450         </widget>
    451         </item>
    452         <item>
    453         <layout class="QHBoxLayout" name="_11">
    454           <item>
    455            <widget class="QGroupBox" name="groupOutput">
    456             <property name="title">
    457             <string>Output font settings</string>
    458             </property>
    459             <layout class="QHBoxLayout" name="_13">
    460             <item>
    461               <widget class="QPushButton" name="buttonFont">
    462                <property name="cursor">
    463                 <cursorShape>PointingHandCursor</cursorShape>
    464                </property>
    465                <property name="statusTip">
    466                 <string>Font face for solution output</string>
    467                </property>
    468                <property name="text">
    469                 <string>&amp;Font...</string>
    470                </property>
    471                <property name="icon">
    472                 <iconset resource="../resources/tspsg.qrc">
    473                 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
    474                </property>
    475               </widget>
    476             </item>
    477             <item>
    478               <widget class="QPushButton" name="buttonColor">
    479                <property name="cursor">
    480                 <cursorShape>PointingHandCursor</cursorShape>
    481                </property>
    482                <property name="statusTip">
    483                 <string>Font color for solution output</string>
    484                </property>
    485                <property name="text">
    486                 <string>&amp;Color...</string>
    487                </property>
    488                <property name="icon">
    489                 <iconset resource="../resources/tspsg.qrc">
    490                 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
    491                </property>
    492               </widget>
    493             </item>
    494             <item>
    495               <spacer name="spacer_5">
    496                <property name="orientation">
    497                 <enum>Qt::Horizontal</enum>
    498                </property>
    499                <property name="sizeHint" stdset="0">
    500                 <size>
    501                 <width>0</width>
    502                 <height>0</height>
    503                 </size>
    504                </property>
    505               </spacer>
    506             </item>
    507             </layout>
    508            </widget>
    509           </item>
    510         </layout>
    511         </item>
    512         <item>
    513         <spacer name="spacer_6">
    514           <property name="orientation">
    515            <enum>Qt::Vertical</enum>
    516           </property>
    517           <property name="sizeHint" stdset="0">
    518            <size>
    519             <width>0</width>
    520             <height>0</height>
    521            </size>
    522           </property>
    523         </spacer>
    524         </item>
    525        </layout>
    526       </widget>
    527     </widget>
    528     </item>
     99        <item>
     100        <widget class="QTabWidget" name="tabWidget">
     101          <widget class="QWidget" name="tabGeneral">
     102           <attribute name="title">
     103                <string>General</string>
     104           </attribute>
     105           <attribute name="toolTip">
     106                <string>General TSPSG settings</string>
     107           </attribute>
     108           <layout class="QVBoxLayout" name="_4">
     109                <item>
     110                <widget class="QCheckBox" name="cbAutosize">
     111                  <property name="cursor">
     112                   <cursorShape>PointingHandCursor</cursorShape>
     113                  </property>
     114                  <property name="statusTip">
     115                   <string>Automatically resize rows and columns to their contents</string>
     116                  </property>
     117                  <property name="text">
     118                   <string>Autosize of rows and columns</string>
     119                  </property>
     120                </widget>
     121                </item>
     122                <item>
     123                <widget class="QCheckBox" name="cbUseNativeDialogs">
     124                  <property name="cursor">
     125                   <cursorShape>PointingHandCursor</cursorShape>
     126                  </property>
     127                  <property name="statusTip">
     128                   <string>Use native File Open and File Save dialogs (uncheck to use Qt's Dialogs)</string>
     129                  </property>
     130                  <property name="text">
     131                   <string>Use native file dialogs</string>
     132                  </property>
     133                </widget>
     134                </item>
     135                <item>
     136                <spacer name="spacer">
     137                  <property name="orientation">
     138                   <enum>Qt::Vertical</enum>
     139                  </property>
     140                  <property name="sizeHint" stdset="0">
     141                   <size>
     142                        <width>0</width>
     143                        <height>0</height>
     144                   </size>
     145                  </property>
     146                </spacer>
     147                </item>
     148           </layout>
     149          </widget>
     150          <widget class="QWidget" name="tabTask">
     151           <attribute name="title">
     152                <string>Task</string>
     153           </attribute>
     154           <attribute name="toolTip">
     155                <string>Task generation and solving settings</string>
     156           </attribute>
     157           <layout class="QVBoxLayout" name="_9">
     158                <item>
     159                <layout class="QFormLayout" name="_5">
     160                  <property name="fieldGrowthPolicy">
     161                   <enum>QFormLayout::ExpandingFieldsGrow</enum>
     162                  </property>
     163                  <item row="0" column="0">
     164                   <widget class="QLabel" name="labelFractionalAccuracy">
     165                        <property name="text">
     166                        <string>Fractional accuracy:</string>
     167                        </property>
     168                   </widget>
     169                  </item>
     170                  <item row="0" column="1">
     171                   <widget class="QSpinBox" name="spinFractionalAccuracy">
     172                        <property name="cursor">
     173                        <cursorShape>PointingHandCursor</cursorShape>
     174                        </property>
     175                        <property name="statusTip">
     176                        <string>Accuracy of the fractional values (in decimal places)</string>
     177                        </property>
     178                        <property name="maximum">
     179                        <number>6</number>
     180                        </property>
     181                   </widget>
     182                  </item>
     183                </layout>
     184                </item>
     185                <item>
     186                <widget class="QCheckBox" name="cbSymmetricMode">
     187                  <property name="cursor">
     188                   <cursorShape>PointingHandCursor</cursorShape>
     189                  </property>
     190                  <property name="statusTip">
     191                   <string>In this mode the cost of travel from city 1 to city 2 and vice versa is the same</string>
     192                  </property>
     193                  <property name="text">
     194                   <string>Symmetric mode</string>
     195                  </property>
     196                </widget>
     197                </item>
     198                <item>
     199                <widget class="QGroupBox" name="gbTaskGeneration">
     200                  <property name="title">
     201                   <string>Task generation</string>
     202                  </property>
     203                  <layout class="QVBoxLayout" name="_7">
     204                   <item>
     205                        <layout class="QFormLayout" name="_8">
     206                        <property name="fieldGrowthPolicy">
     207                          <enum>QFormLayout::ExpandingFieldsGrow</enum>
     208                        </property>
     209                        <item row="0" column="0">
     210                          <widget class="QLabel" name="labelRandMin">
     211                           <property name="text">
     212                                <string>Minimal random:</string>
     213                           </property>
     214                           <property name="buddy">
     215                                <cstring>spinRandMin</cstring>
     216                           </property>
     217                          </widget>
     218                        </item>
     219                        <item row="0" column="1">
     220                          <widget class="QSpinBox" name="spinRandMin">
     221                           <property name="cursor">
     222                                <cursorShape>PointingHandCursor</cursorShape>
     223                           </property>
     224                           <property name="statusTip">
     225                                <string>Minimum for random number generation</string>
     226                           </property>
     227                          </widget>
     228                        </item>
     229                        <item row="1" column="0">
     230                          <widget class="QLabel" name="labelRandMax">
     231                           <property name="text">
     232                                <string>Maximal random:</string>
     233                           </property>
     234                           <property name="buddy">
     235                                <cstring>spinRandMax</cstring>
     236                           </property>
     237                          </widget>
     238                        </item>
     239                        <item row="1" column="1">
     240                          <widget class="QSpinBox" name="spinRandMax">
     241                           <property name="cursor">
     242                                <cursorShape>PointingHandCursor</cursorShape>
     243                           </property>
     244                           <property name="statusTip">
     245                                <string>Maximum for random number generation</string>
     246                           </property>
     247                          </widget>
     248                        </item>
     249                        </layout>
     250                   </item>
     251                   <item>
     252                        <widget class="QCheckBox" name="cbFractionalRandom">
     253                        <property name="cursor">
     254                          <cursorShape>PointingHandCursor</cursorShape>
     255                        </property>
     256                        <property name="statusTip">
     257                          <string>Generate fractional random values with the Fractional accuracy</string>
     258                        </property>
     259                        <property name="text">
     260                          <string>Fractional random values</string>
     261                        </property>
     262                        </widget>
     263                   </item>
     264                  </layout>
     265                </widget>
     266                </item>
     267                <item>
     268                <spacer name="spacer_2">
     269                  <property name="orientation">
     270                   <enum>Qt::Vertical</enum>
     271                  </property>
     272                  <property name="sizeHint" stdset="0">
     273                   <size>
     274                        <width>10</width>
     275                        <height>0</height>
     276                   </size>
     277                  </property>
     278                </spacer>
     279                </item>
     280           </layout>
     281          </widget>
     282          <widget class="QWidget" name="tabOutput">
     283           <attribute name="title">
     284                <string>Output</string>
     285           </attribute>
     286           <attribute name="toolTip">
     287                <string>Solution output settings</string>
     288           </attribute>
     289           <layout class="QVBoxLayout" name="_6">
     290                <item>
     291                <widget class="QCheckBox" name="cbShowMatrix">
     292                  <property name="cursor">
     293                   <cursorShape>PointingHandCursor</cursorShape>
     294                  </property>
     295                  <property name="statusTip">
     296                   <string>Show solution steps' matrices for every solution step</string>
     297                  </property>
     298                  <property name="text">
     299                   <string>Show solution steps' matrices</string>
     300                  </property>
     301                </widget>
     302                </item>
     303                <item>
     304                <layout class="QHBoxLayout" name="layoutCititesLimit">
     305                  <property name="spacing">
     306                   <number>0</number>
     307                  </property>
     308                  <item>
     309                   <spacer name="spacer_3">
     310                        <property name="orientation">
     311                        <enum>Qt::Horizontal</enum>
     312                        </property>
     313                        <property name="sizeType">
     314                        <enum>QSizePolicy::Fixed</enum>
     315                        </property>
     316                        <property name="sizeHint" stdset="0">
     317                        <size>
     318                          <width>10</width>
     319                          <height>0</height>
     320                        </size>
     321                        </property>
     322                   </spacer>
     323                  </item>
     324                  <item>
     325                   <widget class="QCheckBox" name="cbCitiesLimit">
     326                        <property name="cursor">
     327                        <cursorShape>PointingHandCursor</cursorShape>
     328                        </property>
     329                        <property name="statusTip">
     330                        <string>Show or hide solution steps' matrices based on number of cities in the task</string>
     331                        </property>
     332                        <property name="text">
     333                        <string>Only when &lt;=</string>
     334                        </property>
     335                   </widget>
     336                  </item>
     337                  <item>
     338                   <widget class="QSpinBox" name="spinCitiesLimit">
     339                        <property name="statusTip">
     340                        <string>Maximum number of cities to show solution steps' matrices</string>
     341                        </property>
     342                        <property name="suffix">
     343                        <string comment="Don't forget a space at the beginning!"> cities</string>
     344                        </property>
     345                        <property name="minimum">
     346                        <number>1</number>
     347                        </property>
     348                   </widget>
     349                  </item>
     350                  <item>
     351                   <spacer name="spacer_4">
     352                        <property name="orientation">
     353                        <enum>Qt::Horizontal</enum>
     354                        </property>
     355                        <property name="sizeHint" stdset="0">
     356                        <size>
     357                          <width>0</width>
     358                          <height>0</height>
     359                        </size>
     360                        </property>
     361                   </spacer>
     362                  </item>
     363                </layout>
     364                </item>
     365                <item>
     366                <widget class="QCheckBox" name="cbScrollToEnd">
     367                  <property name="cursor">
     368                   <cursorShape>PointingHandCursor</cursorShape>
     369                  </property>
     370                  <property name="statusTip">
     371                   <string>Scroll to the end of solution output after solving</string>
     372                  </property>
     373                  <property name="text">
     374                   <string>Scroll to solution end</string>
     375                  </property>
     376                </widget>
     377                </item>
     378                <item>
     379                <layout class="QHBoxLayout" name="_11">
     380                  <item>
     381                   <widget class="QGroupBox" name="groupOutput">
     382                        <property name="title">
     383                        <string>Output font settings</string>
     384                        </property>
     385                        <layout class="QHBoxLayout" name="_13">
     386                        <item>
     387                          <widget class="QPushButton" name="buttonFont">
     388                           <property name="cursor">
     389                                <cursorShape>PointingHandCursor</cursorShape>
     390                           </property>
     391                           <property name="statusTip">
     392                                <string>Font face for solution output</string>
     393                           </property>
     394                           <property name="text">
     395                                <string>&amp;Font...</string>
     396                           </property>
     397                           <property name="icon">
     398                                <iconset resource="../resources/tspsg.qrc">
     399                                <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
     400                           </property>
     401                          </widget>
     402                        </item>
     403                        <item>
     404                          <widget class="QPushButton" name="buttonColor">
     405                           <property name="cursor">
     406                                <cursorShape>PointingHandCursor</cursorShape>
     407                           </property>
     408                           <property name="statusTip">
     409                                <string>Font color for solution output</string>
     410                           </property>
     411                           <property name="text">
     412                                <string>&amp;Color...</string>
     413                           </property>
     414                           <property name="icon">
     415                                <iconset resource="../resources/tspsg.qrc">
     416                                <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
     417                           </property>
     418                          </widget>
     419                        </item>
     420                        <item>
     421                          <spacer name="spacer_5">
     422                           <property name="orientation">
     423                                <enum>Qt::Horizontal</enum>
     424                           </property>
     425                           <property name="sizeHint" stdset="0">
     426                                <size>
     427                                <width>0</width>
     428                                <height>0</height>
     429                                </size>
     430                           </property>
     431                          </spacer>
     432                        </item>
     433                        </layout>
     434                   </widget>
     435                  </item>
     436                </layout>
     437                </item>
     438                <item>
     439                <spacer name="spacer_6">
     440                  <property name="orientation">
     441                   <enum>Qt::Vertical</enum>
     442                  </property>
     443                  <property name="sizeHint" stdset="0">
     444                   <size>
     445                        <width>0</width>
     446                        <height>0</height>
     447                   </size>
     448                  </property>
     449                </spacer>
     450                </item>
     451           </layout>
     452          </widget>
     453        </widget>
     454        </item>
    529455   </layout>
    530456  </widget>
     
    540466   <slot>accept()</slot>
    541467   <hints>
    542     <hint type="sourcelabel">
    543     <x>190</x>
    544     <y>30</y>
    545     </hint>
    546     <hint type="destinationlabel">
    547     <x>306</x>
    548     <y>231</y>
    549     </hint>
     468        <hint type="sourcelabel">
     469        <x>190</x>
     470        <y>30</y>
     471        </hint>
     472        <hint type="destinationlabel">
     473        <x>306</x>
     474        <y>231</y>
     475        </hint>
    550476   </hints>
    551477  </connection>
     
    556482   <slot>reject()</slot>
    557483   <hints>
    558     <hint type="sourcelabel">
    559     <x>190</x>
    560     <y>30</y>
    561     </hint>
    562     <hint type="destinationlabel">
    563     <x>262</x>
    564     <y>245</y>
    565     </hint>
     484        <hint type="sourcelabel">
     485        <x>190</x>
     486        <y>30</y>
     487        </hint>
     488        <hint type="destinationlabel">
     489        <x>262</x>
     490        <y>245</y>
     491        </hint>
    566492   </hints>
    567493  </connection>
     
    572498   <slot>setEnabled(bool)</slot>
    573499   <hints>
    574     <hint type="sourcelabel">
    575     <x>80</x>
    576     <y>150</y>
    577     </hint>
    578     <hint type="destinationlabel">
    579     <x>91</x>
    580     <y>175</y>
    581     </hint>
     500        <hint type="sourcelabel">
     501        <x>80</x>
     502        <y>150</y>
     503        </hint>
     504        <hint type="destinationlabel">
     505        <x>91</x>
     506        <y>175</y>
     507        </hint>
    582508   </hints>
    583509  </connection>
     
    588514   <slot>setChecked(bool)</slot>
    589515   <hints>
    590     <hint type="sourcelabel">
    591     <x>80</x>
    592     <y>150</y>
    593     </hint>
    594     <hint type="destinationlabel">
    595     <x>91</x>
    596     <y>175</y>
    597     </hint>
     516        <hint type="sourcelabel">
     517        <x>80</x>
     518        <y>150</y>
     519        </hint>
     520        <hint type="destinationlabel">
     521        <x>91</x>
     522        <y>175</y>
     523        </hint>
    598524   </hints>
    599525  </connection>
     
    604530   <slot>setEnabled(bool)</slot>
    605531   <hints>
    606     <hint type="sourcelabel">
    607     <x>91</x>
    608     <y>175</y>
    609     </hint>
    610     <hint type="destinationlabel">
    611     <x>184</x>
    612     <y>174</y>
    613     </hint>
     532        <hint type="sourcelabel">
     533        <x>91</x>
     534        <y>175</y>
     535        </hint>
     536        <hint type="destinationlabel">
     537        <x>184</x>
     538        <y>174</y>
     539        </hint>
    614540   </hints>
    615541  </connection>
Note: See TracChangeset for help on using the changeset viewer.