behaviorsettingswidget.ui 16 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
3 4
 <class>TextEditor::Internal::BehaviorSettingsWidget</class>
 <widget class="QWidget" name="TextEditor::Internal::BehaviorSettingsWidget">
5 6 7 8
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>801</width>
    <height>459</height>
11 12
   </rect>
  </property>
Jarek Kobus's avatar
Jarek Kobus committed
13
  <layout class="QHBoxLayout" name="horizontalLayout">
14 15 16 17 18 19 20 21 22 23
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
24 25
    <number>0</number>
   </property>
Jarek Kobus's avatar
Jarek Kobus committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 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 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
   <item>
    <layout class="QVBoxLayout" name="verticalLayout_2">
     <item>
      <widget class="TextEditor::SimpleCodeStylePreferencesWidget" name="tabPreferencesWidget" native="true"/>
     </item>
     <item>
      <widget class="QGroupBox" name="groupBoxTyping">
       <property name="title">
        <string>Typing</string>
       </property>
       <property name="flat">
        <bool>false</bool>
       </property>
       <layout class="QGridLayout" name="gridLayout_3">
        <item row="0" column="0" colspan="2">
         <widget class="QCheckBox" name="autoIndent">
          <property name="text">
           <string>Enable automatic &amp;indentation</string>
          </property>
         </widget>
        </item>
        <item row="1" column="0" colspan="2">
         <widget class="QLabel" name="smartBackspaceLabel">
          <property name="text">
           <string>Backspace indentation:</string>
          </property>
         </widget>
        </item>
        <item row="2" column="1">
         <widget class="QComboBox" name="smartBackspaceBehavior">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="toolTip">
           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
Specifies how backspace interacts with indentation.

&lt;ul&gt;
&lt;li&gt;None: No interaction at all. Regular plain backspace behavior.
&lt;/li&gt;

&lt;li&gt;Follows Previous Indents: In leading white space it will take the cursor back to the nearest indentation level used in previous lines.
&lt;/li&gt;

&lt;li&gt;Unindents: If the character behind the cursor is a space it behaves as a backtab.
&lt;/li&gt;
&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;
</string>
          </property>
          <item>
           <property name="text">
            <string>None</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>Follows Previous Indents</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>Unindents</string>
           </property>
          </item>
         </widget>
        </item>
        <item row="3" column="0" colspan="2">
         <widget class="QLabel" name="tabKeyBehaviorLabel">
          <property name="text">
           <string>Tab key performs auto-indent:</string>
          </property>
         </widget>
        </item>
        <item row="4" column="0">
         <spacer name="horizontalSpacer_5">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Fixed</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>30</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="4" column="1">
         <widget class="QComboBox" name="tabKeyBehavior">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <item>
           <property name="text">
            <string>Never</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>Always</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>In Leading White Space</string>
           </property>
          </item>
         </widget>
        </item>
       </layout>
      </widget>
     </item>
     <item>
      <spacer name="verticalSpacer">
       <property name="orientation">
        <enum>Qt::Vertical</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>28</width>
         <height>13</height>
        </size>
       </property>
      </spacer>
     </item>
    </layout>
160
   </item>
Jarek Kobus's avatar
Jarek Kobus committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
   <item>
    <layout class="QVBoxLayout" name="verticalLayout_3">
     <item>
      <widget class="QGroupBox" name="groupBoxStorageSettings">
       <property name="toolTip">
        <string>Cleanup actions which are automatically performed right before the file is saved to disk.</string>
       </property>
       <property name="title">
        <string>Cleanups Upon Saving</string>
       </property>
       <layout class="QGridLayout" name="gridLayout_2">
        <item row="0" column="0" colspan="2">
         <widget class="QCheckBox" name="cleanWhitespace">
          <property name="toolTip">
           <string>Removes trailing whitespace upon saving.</string>
          </property>
          <property name="text">
           <string>&amp;Clean whitespace</string>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <spacer name="horizontalSpacer_2">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Fixed</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>30</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="1" column="1">
         <widget class="QCheckBox" name="inEntireDocument">
          <property name="enabled">
           <bool>false</bool>
          </property>
          <property name="sizePolicy">
           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="toolTip">
jkobus's avatar
jkobus committed
210
           <string>Cleans whitespace in entire document instead of only for changed parts.</string>
Jarek Kobus's avatar
Jarek Kobus committed
211 212 213 214 215 216 217 218 219 220 221 222
          </property>
          <property name="text">
           <string>In entire &amp;document</string>
          </property>
         </widget>
        </item>
        <item row="2" column="1">
         <widget class="QCheckBox" name="cleanIndentation">
          <property name="enabled">
           <bool>false</bool>
          </property>
          <property name="toolTip">
jkobus's avatar
jkobus committed
223
           <string>Corrects leading whitespace according to tab settings.</string>
Jarek Kobus's avatar
Jarek Kobus committed
224 225 226 227 228 229 230 231
          </property>
          <property name="text">
           <string>Clean indentation</string>
          </property>
         </widget>
        </item>
        <item row="3" column="0" colspan="2">
         <widget class="QCheckBox" name="addFinalNewLine">
Robert Loehning's avatar
Robert Loehning committed
232
          <property name="toolTip">
jkobus's avatar
jkobus committed
233
           <string>Always writes a newline character at the end of the file.</string>
Robert Loehning's avatar
Robert Loehning committed
234
          </property>
Jarek Kobus's avatar
Jarek Kobus committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
          <property name="text">
           <string>&amp;Ensure newline at end of file</string>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
     </item>
     <item>
      <widget class="QGroupBox" name="groupBoxEncodings">
       <property name="title">
        <string>File Encodings</string>
       </property>
       <layout class="QGridLayout" name="gridLayout">
        <item row="0" column="0">
         <widget class="QLabel" name="encodingLabel">
          <property name="text">
           <string>Default encoding: </string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QComboBox" name="encodingBox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="sizeAdjustPolicy">
           <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
          </property>
          <property name="minimumContentsLength">
           <number>20</number>
          </property>
         </widget>
        </item>
        <item row="0" column="2">
         <spacer name="horizontalSpacer_6">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Expanding</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>285</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="1" column="1">
         <widget class="QComboBox" name="utf8BomBox">
          <property name="toolTip">
           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
292 293 294 295 296 297
&lt;p&gt;How text editors should deal with UTF-8 Byte Order Marks. The options are:&lt;/p&gt;
&lt;ul &gt;&lt;li&gt;&lt;i&gt;Add If Encoding Is UTF-8:&lt;/i&gt; always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is &lt;i&gt;System&lt;/i&gt;, as Qt Creator does not know what it actually is.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Keep If Already Present: &lt;/i&gt;save the file with a BOM if it already had one when it was loaded.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Always Delete:&lt;/i&gt; never write an UTF-8 BOM, possibly deleting a pre-existing one.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.&lt;/p&gt;
&lt;p&gt;This setting does &lt;b&gt;not&lt;/b&gt; influence the use of UTF-16 and UTF-32 BOMs.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
Jarek Kobus's avatar
Jarek Kobus committed
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
          </property>
          <item>
           <property name="text">
            <string>Add If Encoding Is UTF-8</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>Keep If Already Present</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>Always Delete</string>
           </property>
          </item>
         </widget>
        </item>
316 317 318 319 320 321 322
        <item row="1" column="0">
         <widget class="QLabel" name="utf8BomLabel">
          <property name="text">
           <string>UTF-8 BOM:</string>
          </property>
         </widget>
        </item>
Jarek Kobus's avatar
Jarek Kobus committed
323 324 325 326 327 328
       </layout>
      </widget>
     </item>
     <item>
      <widget class="QGroupBox" name="groupBoxMouse">
       <property name="title">
329
        <string>Mouse and Keyboard</string>
Jarek Kobus's avatar
Jarek Kobus committed
330 331
       </property>
       <layout class="QVBoxLayout" name="verticalLayout">
332 333 334 335 336 337 338
        <item>
         <widget class="QCheckBox" name="mouseHiding">
          <property name="text">
           <string>Hide mouse cursor while typing</string>
          </property>
         </widget>
        </item>
339
        <item>
Jarek Kobus's avatar
Jarek Kobus committed
340 341 342 343 344
         <widget class="QCheckBox" name="mouseNavigation">
          <property name="text">
           <string>Enable &amp;mouse navigation</string>
          </property>
         </widget>
345 346
        </item>
        <item>
Jarek Kobus's avatar
Jarek Kobus committed
347 348 349 350 351
         <widget class="QCheckBox" name="scrollWheelZooming">
          <property name="text">
           <string>Enable scroll &amp;wheel zooming</string>
          </property>
         </widget>
352
        </item>
353 354 355 356 357 358 359
        <item>
         <widget class="QCheckBox" name="camelCaseNavigation">
          <property name="text">
           <string>Enable built-in camel case &amp;navigation</string>
          </property>
         </widget>
        </item>
360 361 362 363 364 365 366 367 368 369
        <item>
         <widget class="QCheckBox" name="smartSelectionChanging">
          <property name="toolTip">
           <string>Using Select Block Up / Down actions will now provide smarter selections.</string>
          </property>
          <property name="text">
           <string>Enable smart selection changing</string>
          </property>
         </widget>
        </item>
370
        <item>
371 372
         <widget class="QCheckBox" name="keyboardTooltips">
          <property name="toolTip">
Jarek Kobus's avatar
Jarek Kobus committed
373
           <string>Pressing Alt displays context-sensitive help or type information as tooltips.</string>
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
          </property>
          <property name="text">
           <string>Show help tooltips using keyboard shortcut (Alt)</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="helpTooltipsLabel">
          <property name="text">
           <string>Show help tooltips using the mouse:</string>
          </property>
         </widget>
        </item>
        <item>
         <layout class="QHBoxLayout" name="horizontalLayout_2">
          <item>
           <spacer name="horizontalSpacer">
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
393
            </property>
394 395 396 397 398 399 400 401 402 403
            <property name="sizeType">
             <enum>QSizePolicy::Fixed</enum>
            </property>
            <property name="sizeHint" stdset="0">
             <size>
              <width>30</width>
              <height>20</height>
             </size>
            </property>
           </spacer>
404
          </item>
405
          <item>
406 407 408 409 410 411 412 413 414 415 416 417 418
           <widget class="QComboBox" name="constrainTooltipsBox">
            <item>
             <property name="text">
              <string>On Mouseover</string>
             </property>
            </item>
            <item>
             <property name="text">
              <string>On Shift+Mouseover</string>
             </property>
            </item>
           </widget>
          </item>
419 420
          <item>
           <spacer name="horizontalSpacer_3">
421 422 423 424 425 426 427 428 429 430 431 432 433
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
            </property>
            <property name="sizeHint" stdset="0">
             <size>
              <width>40</width>
              <height>20</height>
             </size>
            </property>
           </spacer>
          </item>
         </layout>
        </item>
Jarek Kobus's avatar
Jarek Kobus committed
434 435 436 437 438 439 440 441 442 443 444
       </layout>
      </widget>
     </item>
     <item>
      <spacer name="verticalSpacer_2">
       <property name="orientation">
        <enum>Qt::Vertical</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>20</width>
445
         <height>40</height>
Jarek Kobus's avatar
Jarek Kobus committed
446 447 448 449 450
        </size>
       </property>
      </spacer>
     </item>
    </layout>
451
   </item>
452 453
  </layout>
 </widget>
454 455
 <customwidgets>
  <customwidget>
Jarek Kobus's avatar
Jarek Kobus committed
456
   <class>TextEditor::SimpleCodeStylePreferencesWidget</class>
457
   <extends>QWidget</extends>
Jarek Kobus's avatar
Jarek Kobus committed
458
   <header location="global">texteditor/simplecodestylepreferenceswidget.h</header>
459 460 461
   <container>1</container>
  </customwidget>
 </customwidgets>
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
 <tabstops>
  <tabstop>cleanWhitespace</tabstop>
  <tabstop>inEntireDocument</tabstop>
  <tabstop>cleanIndentation</tabstop>
  <tabstop>addFinalNewLine</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>cleanWhitespace</sender>
   <signal>toggled(bool)</signal>
   <receiver>inEntireDocument</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>87</x>
     <y>323</y>
    </hint>
    <hint type="destinationlabel">
     <x>205</x>
     <y>353</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>cleanWhitespace</sender>
   <signal>toggled(bool)</signal>
   <receiver>cleanIndentation</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>60</x>
     <y>323</y>
    </hint>
    <hint type="destinationlabel">
     <x>134</x>
     <y>384</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>