settings.ui 5.55 KB
Newer Older
Stefan Majewsky's avatar
Stefan Majewsky committed
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Settings</class>
 <widget class="QWidget" name="Settings">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9
    <width>452</width>
10
    <height>327</height>
Stefan Majewsky's avatar
Stefan Majewsky committed
11 12 13 14
   </rect>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
15
    <widget class="QGroupBox" name="groupBox_2">
Stefan Majewsky's avatar
Stefan Majewsky committed
16
     <property name="title">
Stefan Majewsky's avatar
Stefan Majewsky committed
17
      <string comment="@title:group">Puzzle table</string>
Stefan Majewsky's avatar
Stefan Majewsky committed
18
     </property>
19
     <layout class="QGridLayout" name="gridLayout">
20 21
      <item row="0" column="0">
       <widget class="QLabel" name="label_3">
Stefan Majewsky's avatar
Stefan Majewsky committed
22
        <property name="text">
Stefan Majewsky's avatar
Stefan Majewsky committed
23
         <string comment="@label:chooser for different types of background textures">Background:</string>
Stefan Majewsky's avatar
Stefan Majewsky committed
24 25 26
        </property>
       </widget>
      </item>
27
      <item row="0" column="1">
28
       <widget class="Palapeli::TriggerComboBox" name="kcfg_ViewBackground">
29 30 31 32 33
        <property name="sizePolicy">
         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
34 35 36
        </property>
       </widget>
      </item>
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
      <item row="0" column="2">
       <widget class="KColorButton" name="kcfg_ViewBackgroundColor">
        <property name="defaultColor">
         <color>
          <red>255</red>
          <green>255</green>
          <blue>255</blue>
         </color>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox_3">
     <property name="title">
      <string>Piece behavior</string>
     </property>
     <layout class="QFormLayout" name="formLayout">
      <property name="fieldGrowthPolicy">
       <enum>QFormLayout::ExpandingFieldsGrow</enum>
      </property>
      <item row="0" column="0">
61 62
       <widget class="QLabel" name="label_1">
        <property name="text">
Stefan Majewsky's avatar
Stefan Majewsky committed
63
         <string comment="@label:slider">Snapping precision:</string>
64 65 66
        </property>
       </widget>
      </item>
67
      <item row="0" column="1">
68
       <widget class="QSlider" name="kcfg_SnappingPrecision">
Stefan Majewsky's avatar
Stefan Majewsky committed
69
        <property name="minimum">
70
         <number>10</number>
Stefan Majewsky's avatar
Stefan Majewsky committed
71 72
        </property>
        <property name="maximum">
73
         <number>30</number>
Stefan Majewsky's avatar
Stefan Majewsky committed
74 75
        </property>
        <property name="pageStep">
76
         <number>5</number>
Stefan Majewsky's avatar
Stefan Majewsky committed
77 78
        </property>
        <property name="value">
79
         <number>20</number>
Stefan Majewsky's avatar
Stefan Majewsky committed
80 81 82 83 84 85 86
        </property>
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="tickPosition">
         <enum>QSlider::TicksBelow</enum>
        </property>
87
        <property name="tickInterval">
88
         <number>0</number>
89
        </property>
Stefan Majewsky's avatar
Stefan Majewsky committed
90 91
       </widget>
      </item>
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
      <item row="2" column="1">
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
         <widget class="QLabel" name="label">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="text">
           <string extracomment="description for the &quot;snapping precision&quot; setting">Very precise (harder)</string>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::MinimumExpanding</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>0</height>
           </size>
          </property>
         </spacer>
        </item>
        <item>
         <widget class="QLabel" name="label_2">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="text">
           <string extracomment="description for the &quot;snapping precision&quot; setting">Unprecise (easier)</string>
          </property>
         </widget>
        </item>
       </layout>
137
      </item>
Stefan Majewsky's avatar
Stefan Majewsky committed
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
     </layout>
    </widget>
   </item>
   <item>
    <spacer name="verticalSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>20</width>
       <height>40</height>
      </size>
     </property>
    </spacer>
   </item>
  </layout>
 </widget>
Stefan Majewsky's avatar
Stefan Majewsky committed
156 157 158 159 160 161
 <customwidgets>
  <customwidget>
   <class>KComboBox</class>
   <extends>QComboBox</extends>
   <header>kcombobox.h</header>
  </customwidget>
162 163 164 165 166
  <customwidget>
   <class>KColorButton</class>
   <extends>QPushButton</extends>
   <header>kcolorbutton.h</header>
  </customwidget>
167 168 169 170 171 172 173 174
  <customwidget>
   <class>Palapeli::TriggerComboBox</class>
   <extends>KComboBox</extends>
   <header>config/configdialog_p.h</header>
   <slots>
    <signal>itemTypeChanged(bool)</signal>
   </slots>
  </customwidget>
Stefan Majewsky's avatar
Stefan Majewsky committed
175
 </customwidgets>
Stefan Majewsky's avatar
Stefan Majewsky committed
176
 <resources/>
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
 <connections>
  <connection>
   <sender>kcfg_ViewBackground</sender>
   <signal>itemTypeChanged(bool)</signal>
   <receiver>kcfg_ViewBackgroundColor</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>270</x>
     <y>51</y>
    </hint>
    <hint type="destinationlabel">
     <x>440</x>
     <y>50</y>
    </hint>
   </hints>
  </connection>
 </connections>
Stefan Majewsky's avatar
Stefan Majewsky committed
195
</ui>