Changeset 278bc7818f in tspsg for ui


Ignore:
Timestamp:
Feb 27, 2010, 2:13:50 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:
162d5c5f94
Parents:
b2bf8e3b6b
Message:

+ Added Symmetric mode: in this mode the cost of travel from city 1 to city 2 and vice versa is the same.
+ Added the ability to reset all settings to their defaults: hold Shift while clicking Save button in Settings Dialog.

  • Better SIP show/hide handling under wince: no need to resize the Main Window, when it isn't active.
Location:
ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ui/mainwindow.ui

    rb2bf8e3b6b r278bc7818f  
    88    <x>0</x>
    99    <y>0</y>
    10     <width>301</width>
    11     <height>352</height>
     10    <width>500</width>
     11    <height>450</height>
    1212   </rect>
    1313  </property>
     
    253253     <x>0</x>
    254254     <y>0</y>
    255      <width>301</width>
     255     <width>500</width>
    256256     <height>21</height>
    257257    </rect>
  • ui/settingsdialog.ui

    rb2bf8e3b6b r278bc7818f  
    229229        <string>Task generation and solving settings</string>
    230230       </attribute>
    231        <layout class="QVBoxLayout" name="_5">
    232         <item>
    233          <layout class="QHBoxLayout" name="_10">
    234           <item>
     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">
    235238           <widget class="QLabel" name="labelFractionalAccuracy">
    236239            <property name="text">
     
    239242           </widget>
    240243          </item>
    241           <item>
     244          <item row="0" column="1">
    242245           <widget class="QSpinBox" name="spinFractionalAccuracy">
    243246            <property name="cursor">
     
    252255           </widget>
    253256          </item>
    254           <item>
    255            <spacer name="spacer_3">
    256             <property name="orientation">
    257              <enum>Qt::Horizontal</enum>
    258             </property>
    259             <property name="sizeHint" stdset="0">
    260              <size>
    261               <width>0</width>
    262               <height>0</height>
    263              </size>
    264             </property>
    265            </spacer>
    266           </item>
    267257         </layout>
    268258        </item>
    269259        <item>
    270          <layout class="QHBoxLayout" name="_7">
    271           <item>
    272            <widget class="QGroupBox" name="groupBox">
    273             <property name="title">
    274              <string>Random numbers</string>
    275             </property>
    276             <layout class="QVBoxLayout" name="_8">
    277              <item>
    278               <layout class="QFormLayout" name="_9">
    279                <property name="fieldGrowthPolicy">
    280                 <enum>QFormLayout::ExpandingFieldsGrow</enum>
    281                </property>
    282                <item row="0" column="0">
    283                 <widget class="QLabel" name="labelRandMin">
    284                  <property name="text">
    285                   <string>&amp;Minimal:</string>
    286                  </property>
    287                  <property name="buddy">
    288                   <cstring>spinRandMin</cstring>
    289                  </property>
    290                 </widget>
    291                </item>
    292                <item row="0" column="1">
    293                 <widget class="QSpinBox" name="spinRandMin">
    294                  <property name="cursor">
    295                   <cursorShape>PointingHandCursor</cursorShape>
    296                  </property>
    297                  <property name="statusTip">
    298                   <string>Minimum for random number generation</string>
    299                  </property>
    300                 </widget>
    301                </item>
    302                <item row="1" column="0">
    303                 <widget class="QLabel" name="labelRandMax">
    304                  <property name="text">
    305                   <string>Ma&amp;ximal:</string>
    306                  </property>
    307                  <property name="buddy">
    308                   <cstring>spinRandMax</cstring>
    309                  </property>
    310                 </widget>
    311                </item>
    312                <item row="1" column="1">
    313                 <widget class="QSpinBox" name="spinRandMax">
    314                  <property name="cursor">
    315                   <cursorShape>PointingHandCursor</cursorShape>
    316                  </property>
    317                  <property name="statusTip">
    318                   <string>Maximum for random number generation</string>
    319                  </property>
    320                 </widget>
    321                </item>
    322               </layout>
     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>
    323292             </item>
    324              <item>
    325               <widget class="QCheckBox" name="cbFractionalRandom">
     293             <item row="0" column="1">
     294              <widget class="QSpinBox" name="spinRandMin">
    326295               <property name="cursor">
    327296                <cursorShape>PointingHandCursor</cursorShape>
    328297               </property>
    329298               <property name="statusTip">
    330                 <string>Generate fractional random values with the Fractional accuracy</string>
    331                </property>
     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">
    332305               <property name="text">
    333                 <string>Fractional random values</string>
     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>
    334320               </property>
    335321              </widget>
    336322             </item>
    337323            </layout>
    338            </widget>
    339           </item>
    340           <item>
    341            <spacer name="spacer_2">
    342             <property name="orientation">
    343              <enum>Qt::Horizontal</enum>
    344             </property>
    345             <property name="sizeHint" stdset="0">
    346              <size>
    347               <width>0</width>
    348               <height>0</height>
    349              </size>
    350             </property>
    351            </spacer>
    352           </item>
    353          </layout>
    354         </item>
    355         <item>
    356          <spacer name="spacer_5">
     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">
    357343          <property name="orientation">
    358344           <enum>Qt::Vertical</enum>
     
    360346          <property name="sizeHint" stdset="0">
    361347           <size>
    362             <width>0</width>
     348            <width>10</width>
    363349            <height>0</height>
    364350           </size>
     
    395381          </property>
    396382          <item>
    397            <spacer name="spacer_4">
     383           <spacer name="spacer_3">
    398384            <property name="orientation">
    399385             <enum>Qt::Horizontal</enum>
     
    437423          </item>
    438424          <item>
    439            <spacer name="spacer_6">
     425           <spacer name="spacer_4">
    440426            <property name="orientation">
    441427             <enum>Qt::Horizontal</enum>
     
    471457             <string>Output font settings</string>
    472458            </property>
    473             <layout class="QHBoxLayout" name="horizontalLayout">
     459            <layout class="QHBoxLayout" name="_13">
    474460             <item>
    475461              <widget class="QPushButton" name="buttonFont">
     
    506492              </widget>
    507493             </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>
    508507            </layout>
    509508           </widget>
    510509          </item>
    511           <item>
    512            <spacer name="spacer_7">
    513             <property name="orientation">
    514              <enum>Qt::Horizontal</enum>
    515             </property>
    516             <property name="sizeHint" stdset="0">
    517              <size>
    518               <width>0</width>
    519               <height>0</height>
    520              </size>
    521             </property>
    522            </spacer>
    523           </item>
    524510         </layout>
    525511        </item>
    526512        <item>
    527          <spacer name="verticalSpacer">
     513         <spacer name="spacer_6">
    528514          <property name="orientation">
    529515           <enum>Qt::Vertical</enum>
Note: See TracChangeset for help on using the changeset viewer.