Changeset 1757eb594b in tspsg for ui


Ignore:
Timestamp:
Jan 12, 2010, 3:11:24 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:
fcd8c1e4c1
Parents:
64f288c0f8
Message:

+ Added Fractional accuracy (in decimail places) to settings.
+ Created defaults.h file. Moved all default defines there.

  • Replaced all double types with qreal.
  • Replaced all calls to trUtf8() with tr() as we use setCodecForTr() to set UTF-8 encoding as default and tr() is enough.
  • Replaced all 2009 with 2010 in copyrights.
  • Fixed an error when loading .zkt file with less than 5 cities.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ui/settingsdialog.ui

    r64f288c0f8 r1757eb594b  
    155155    <item>
    156156     <widget class="QTabWidget" name="tabWidget">
    157       <property name="currentIndex">
    158        <number>0</number>
    159       </property>
    160157      <widget class="QWidget" name="tabGeneral">
    161158       <attribute name="title">
     
    207204       </layout>
    208205      </widget>
    209       <widget class="QWidget" name="tabRandom">
     206      <widget class="QWidget" name="tabTask">
    210207       <attribute name="title">
    211         <string>Random</string>
     208        <string>Task</string>
    212209       </attribute>
    213210       <attribute name="toolTip">
    214         <string>Random number generation settings</string>
     211        <string>Task generation and solving settings</string>
    215212       </attribute>
    216213       <layout class="QVBoxLayout" name="verticalLayout_4">
    217214        <item>
    218          <layout class="QHBoxLayout" name="horizontalLayout_2">
    219           <item>
    220            <layout class="QFormLayout" name="formLayout">
    221             <item row="0" column="0">
    222              <widget class="QLabel" name="labelRandMin">
    223               <property name="text">
    224                <string>&amp;Minimal:</string>
    225               </property>
    226               <property name="buddy">
    227                <cstring>spinRandMin</cstring>
    228               </property>
    229              </widget>
    230             </item>
    231             <item row="0" column="1">
    232              <widget class="QSpinBox" name="spinRandMin">
    233               <property name="cursor">
    234                <cursorShape>PointingHandCursor</cursorShape>
    235               </property>
    236               <property name="statusTip">
    237                <string>Minimum for random number generation</string>
    238               </property>
    239              </widget>
    240             </item>
    241             <item row="1" column="0">
    242              <widget class="QLabel" name="labelRandMax">
    243               <property name="text">
    244                <string>Ma&amp;ximal:</string>
    245               </property>
    246               <property name="buddy">
    247                <cstring>spinRandMax</cstring>
    248               </property>
    249              </widget>
    250             </item>
    251             <item row="1" column="1">
    252              <widget class="QSpinBox" name="spinRandMax">
    253               <property name="cursor">
    254                <cursorShape>PointingHandCursor</cursorShape>
    255               </property>
    256               <property name="statusTip">
    257                <string>Maximum for random number generation</string>
    258               </property>
    259              </widget>
    260             </item>
    261            </layout>
     215         <layout class="QHBoxLayout" name="horizontalLayout_3">
     216          <item>
     217           <widget class="QLabel" name="labelFractionalAccuracy">
     218            <property name="text">
     219             <string>Fractional accuracy:</string>
     220            </property>
     221            <property name="buddy">
     222             <cstring>spinFractionalAccuracy</cstring>
     223            </property>
     224           </widget>
     225          </item>
     226          <item>
     227           <widget class="QSpinBox" name="spinFractionalAccuracy">
     228            <property name="cursor">
     229             <cursorShape>PointingHandCursor</cursorShape>
     230            </property>
     231            <property name="statusTip">
     232             <string>Accuracy of the fractional values (in decimal places)</string>
     233            </property>
     234            <property name="maximum">
     235             <number>6</number>
     236            </property>
     237           </widget>
    262238          </item>
    263239          <item>
     
    268244            <property name="sizeHint" stdset="0">
    269245             <size>
    270               <width>10</width>
     246              <width>0</width>
    271247              <height>0</height>
    272248             </size>
     
    277253        </item>
    278254        <item>
    279          <widget class="QCheckBox" name="cbFractionalRandom">
    280           <property name="cursor">
    281            <cursorShape>PointingHandCursor</cursorShape>
    282           </property>
    283           <property name="statusTip">
    284            <string>Generate fractional random values with the accuracy of 2 decimal places</string>
    285           </property>
    286           <property name="text">
    287            <string>Fractional random values</string>
    288           </property>
    289          </widget>
     255         <layout class="QHBoxLayout" name="horizontalLayout_2">
     256          <item>
     257           <widget class="QGroupBox" name="groupBox">
     258            <property name="title">
     259             <string>Random numbers</string>
     260            </property>
     261            <layout class="QVBoxLayout" name="verticalLayout_5">
     262             <item>
     263              <layout class="QFormLayout" name="formLayout">
     264               <property name="fieldGrowthPolicy">
     265                <enum>QFormLayout::ExpandingFieldsGrow</enum>
     266               </property>
     267               <item row="0" column="0">
     268                <widget class="QLabel" name="labelRandMin">
     269                 <property name="text">
     270                  <string>&amp;Minimal:</string>
     271                 </property>
     272                 <property name="buddy">
     273                  <cstring>spinRandMin</cstring>
     274                 </property>
     275                </widget>
     276               </item>
     277               <item row="0" column="1">
     278                <widget class="QSpinBox" name="spinRandMin">
     279                 <property name="cursor">
     280                  <cursorShape>PointingHandCursor</cursorShape>
     281                 </property>
     282                 <property name="statusTip">
     283                  <string>Minimum for random number generation</string>
     284                 </property>
     285                </widget>
     286               </item>
     287               <item row="1" column="0">
     288                <widget class="QLabel" name="labelRandMax">
     289                 <property name="text">
     290                  <string>Ma&amp;ximal:</string>
     291                 </property>
     292                 <property name="buddy">
     293                  <cstring>spinRandMax</cstring>
     294                 </property>
     295                </widget>
     296               </item>
     297               <item row="1" column="1">
     298                <widget class="QSpinBox" name="spinRandMax">
     299                 <property name="cursor">
     300                  <cursorShape>PointingHandCursor</cursorShape>
     301                 </property>
     302                 <property name="statusTip">
     303                  <string>Maximum for random number generation</string>
     304                 </property>
     305                </widget>
     306               </item>
     307              </layout>
     308             </item>
     309             <item>
     310              <widget class="QCheckBox" name="cbFractionalRandom">
     311               <property name="cursor">
     312                <cursorShape>PointingHandCursor</cursorShape>
     313               </property>
     314               <property name="statusTip">
     315                <string>Generate fractional random values with the Fractional accuracy</string>
     316               </property>
     317               <property name="text">
     318                <string>Fractional random values</string>
     319               </property>
     320              </widget>
     321             </item>
     322            </layout>
     323           </widget>
     324          </item>
     325          <item>
     326           <spacer name="horizontalSpacer">
     327            <property name="orientation">
     328             <enum>Qt::Horizontal</enum>
     329            </property>
     330            <property name="sizeHint" stdset="0">
     331             <size>
     332              <width>0</width>
     333              <height>0</height>
     334             </size>
     335            </property>
     336           </spacer>
     337          </item>
     338         </layout>
    290339        </item>
    291340        <item>
     
    297346           <size>
    298347            <width>0</width>
    299             <height>25</height>
     348            <height>1</height>
    300349           </size>
    301350          </property>
     
    401450        </item>
    402451        <item>
    403          <layout class="QHBoxLayout" name="horizontalLayout">
    404           <item>
    405            <widget class="QPushButton" name="buttonFont">
    406             <property name="cursor">
    407              <cursorShape>PointingHandCursor</cursorShape>
    408             </property>
    409             <property name="statusTip">
    410              <string>Font face for solution output</string>
    411             </property>
    412             <property name="text">
    413              <string>&amp;Font...</string>
    414             </property>
    415             <property name="icon">
    416              <iconset resource="../resources/tspsg.qrc">
    417               <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
    418             </property>
    419            </widget>
    420           </item>
    421           <item>
    422            <widget class="QPushButton" name="buttonColor">
    423             <property name="cursor">
    424              <cursorShape>PointingHandCursor</cursorShape>
    425             </property>
    426             <property name="statusTip">
    427              <string>Font color for solution output</string>
    428             </property>
    429             <property name="text">
    430              <string>&amp;Color...</string>
    431             </property>
    432             <property name="icon">
    433              <iconset resource="../resources/tspsg.qrc">
    434               <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
    435             </property>
     452         <layout class="QHBoxLayout" name="horizontalLayout_4">
     453          <item>
     454           <widget class="QGroupBox" name="groupBox_2">
     455            <property name="title">
     456             <string>Output font settings</string>
     457            </property>
     458            <layout class="QHBoxLayout" name="horizontalLayout">
     459             <item>
     460              <widget class="QPushButton" name="buttonFont">
     461               <property name="cursor">
     462                <cursorShape>PointingHandCursor</cursorShape>
     463               </property>
     464               <property name="statusTip">
     465                <string>Font face for solution output</string>
     466               </property>
     467               <property name="text">
     468                <string>&amp;Font...</string>
     469               </property>
     470               <property name="icon">
     471                <iconset resource="../resources/tspsg.qrc">
     472                 <normaloff>:/images/icons/fonts.png</normaloff>:/images/icons/fonts.png</iconset>
     473               </property>
     474              </widget>
     475             </item>
     476             <item>
     477              <widget class="QPushButton" name="buttonColor">
     478               <property name="cursor">
     479                <cursorShape>PointingHandCursor</cursorShape>
     480               </property>
     481               <property name="statusTip">
     482                <string>Font color for solution output</string>
     483               </property>
     484               <property name="text">
     485                <string>&amp;Color...</string>
     486               </property>
     487               <property name="icon">
     488                <iconset resource="../resources/tspsg.qrc">
     489                 <normaloff>:/images/icons/color_line.png</normaloff>:/images/icons/color_line.png</iconset>
     490               </property>
     491              </widget>
     492             </item>
     493            </layout>
    436494           </widget>
    437495          </item>
Note: See TracChangeset for help on using the changeset viewer.