behaviorsettingspage.ui 12.3 KB
Newer Older
con's avatar
con committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
3
4
 <class>TextEditor::BehaviorSettingsPage</class>
 <widget class="QWidget" name="TextEditor::BehaviorSettingsPage">
con's avatar
con committed
5
6
7
8
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9
    <width>615</width>
10
    <height>461</height>
con's avatar
con committed
11
12
   </rect>
  </property>
13
  <layout class="QVBoxLayout" name="verticalLayout_4">
14
15
   <item>
    <widget class="QGroupBox" name="groupBoxTabAndIndentSettings">
con's avatar
con committed
16
     <property name="title">
17
      <string>Tabs and Indentation</string>
con's avatar
con committed
18
     </property>
19
     <layout class="QVBoxLayout" name="verticalLayout">
20
      <item>
21
22
23
       <layout class="QGridLayout" name="gridLayout">
        <item row="0" column="0">
         <widget class="QCheckBox" name="insertSpaces">
24
          <property name="text">
25
           <string>Insert &amp;spaces instead of tabs</string>
26
27
28
          </property>
         </widget>
        </item>
29
        <item row="1" column="0">
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
         <layout class="QHBoxLayout" name="horizontalLayout_3">
          <item>
           <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>
           <widget class="QCheckBox" name="autoInsertSpaces">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <property name="toolTip">
53
             <string>Automatically determine based on the nearest indented line (previous line preferred over next line)</string>
54
55
            </property>
            <property name="text">
56
             <string>Based on the surrounding lines</string>
57
58
59
60
61
62
            </property>
           </widget>
          </item>
         </layout>
        </item>
        <item row="2" column="0">
63
64
65
         <widget class="QCheckBox" name="autoIndent">
          <property name="text">
           <string>Enable automatic &amp;indentation</string>
66
          </property>
67
         </widget>
68
        </item>
69
        <item row="3" column="0">
70
         <widget class="QCheckBox" name="smartBackspace">
71
          <property name="toolTip">
72
           <string>Backspace will go back one indentation level instead of one space.</string>
73
74
          </property>
          <property name="text">
75
           <string>&amp;Backspace follows indentation</string>
76
77
78
          </property>
         </widget>
        </item>
79
        <item row="0" column="2">
con's avatar
con committed
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
         <widget class="QLabel" name="labelTabSize">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="text">
           <string>Ta&amp;b size:</string>
          </property>
          <property name="buddy">
           <cstring>tabSize</cstring>
          </property>
         </widget>
        </item>
95
        <item row="0" column="3">
con's avatar
con committed
96
97
98
99
100
101
102
         <widget class="QSpinBox" name="tabSize">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
mae's avatar
mae committed
103
104
105
          <property name="minimum">
           <number>1</number>
          </property>
con's avatar
con committed
106
107
108
109
110
          <property name="maximum">
           <number>20</number>
          </property>
         </widget>
        </item>
111
        <item row="0" column="1" rowspan="5">
112
113
114
115
116
117
118
119
120
121
122
123
         <spacer name="horizontalSpacer">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
124
        <item row="0" column="4" rowspan="4">
125
126
127
128
129
130
131
132
133
134
135
136
         <spacer name="horizontalSpacer_3">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
137
        <item row="4" column="0">
138
139
140
141
142
143
144
145
146
         <widget class="QCheckBox" name="indentBraces">
          <property name="toolTip">
           <string>Braces will be flush with indented block, except first indent level.</string>
          </property>
          <property name="text">
           <string>Indent brace&amp;s</string>
          </property>
         </widget>
        </item>
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
        <item row="1" column="2">
         <widget class="QLabel" name="labelIndentSize">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="text">
           <string>&amp;Indent size:</string>
          </property>
          <property name="buddy">
           <cstring>indentSize</cstring>
          </property>
         </widget>
        </item>
        <item row="1" column="3">
         <widget class="QSpinBox" name="indentSize">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="minimum">
           <number>1</number>
          </property>
          <property name="maximum">
           <number>20</number>
          </property>
         </widget>
        </item>
con's avatar
con committed
179
180
       </layout>
      </item>
181
      <item>
Joel Nordell's avatar
Joel Nordell committed
182
183
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
184
         <widget class="QLabel" name="tabKeyIndentLabel">
Joel Nordell's avatar
Joel Nordell committed
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
          <property name="text">
           <string>Tab key performs auto-indent:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QComboBox" name="tabKeyBehavior">
          <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>
        <item>
         <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>31</width>
            <height>24</height>
           </size>
          </property>
         </spacer>
        </item>
       </layout>
226
227
228
229
      </item>
     </layout>
    </widget>
   </item>
230
231
232
233
234
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
   <item>
    <widget class="QGroupBox" name="groupBoxStorageSettings">
     <property name="title">
      <string>Storage</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_3">
      <item>
       <widget class="QCheckBox" name="cleanWhitespace">
        <property name="toolTip">
         <string>Removes trailing whitespace on saving.</string>
        </property>
        <property name="text">
         <string>&amp;Clean whitespace</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_2">
        <item>
         <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>
         <widget class="QCheckBox" name="inEntireDocument">
          <property name="enabled">
           <bool>false</bool>
          </property>
          <property name="toolTip">
           <string>Clean whitespace in entire document instead of only for changed parts.</string>
          </property>
          <property name="text">
           <string>In entire &amp;document</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <layout class="QHBoxLayout" name="cleanIndentationLayout">
        <item>
         <spacer name="cleanIndentationSpacer">
          <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>
         <widget class="QCheckBox" name="cleanIndentation">
          <property name="enabled">
           <bool>false</bool>
          </property>
          <property name="toolTip">
           <string>Correct leading whitespace according to tab settings.</string>
          </property>
          <property name="text">
           <string>Clean indentation</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QCheckBox" name="addFinalNewLine">
        <property name="text">
         <string>&amp;Ensure newline at end of file</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
322
   <item>
323
    <widget class="QGroupBox" name="groupBoxMouse">
324
     <property name="title">
325
      <string>Mouse</string>
326
327
328
329
330
331
332
333
334
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_2">
      <item>
       <widget class="QCheckBox" name="mouseNavigation">
        <property name="text">
         <string>Enable &amp;mouse navigation</string>
        </property>
       </widget>
      </item>
335
336
337
338
339
340
341
      <item>
       <widget class="QCheckBox" name="scrollWheelZooming">
        <property name="text">
         <string>Enable scroll &amp;wheel zooming</string>
        </property>
       </widget>
      </item>
342
343
344
     </layout>
    </widget>
   </item>
345
346
347
348
349
350
351
352
353
354
355
356
357
   <item>
    <spacer name="verticalSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>20</width>
       <height>8</height>
      </size>
     </property>
    </spacer>
   </item>
con's avatar
con committed
358
359
  </layout>
 </widget>
360
361
362
363
364
365
366
367
368
369
370
 <tabstops>
  <tabstop>insertSpaces</tabstop>
  <tabstop>tabSize</tabstop>
  <tabstop>autoIndent</tabstop>
  <tabstop>smartBackspace</tabstop>
  <tabstop>tabKeyBehavior</tabstop>
  <tabstop>cleanWhitespace</tabstop>
  <tabstop>inEntireDocument</tabstop>
  <tabstop>cleanIndentation</tabstop>
  <tabstop>addFinalNewLine</tabstop>
 </tabstops>
con's avatar
con committed
371
372
373
374
375
376
377
378
379
 <resources/>
 <connections>
  <connection>
   <sender>cleanWhitespace</sender>
   <signal>toggled(bool)</signal>
   <receiver>inEntireDocument</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
380
381
     <x>67</x>
     <y>252</y>
con's avatar
con committed
382
383
    </hint>
    <hint type="destinationlabel">
384
385
     <x>148</x>
     <y>281</y>
con's avatar
con committed
386
387
388
    </hint>
   </hints>
  </connection>
389
390
391
392
393
  <connection>
   <sender>cleanWhitespace</sender>
   <signal>toggled(bool)</signal>
   <receiver>cleanIndentation</receiver>
   <slot>setEnabled(bool)</slot>
con's avatar
con committed
394
395
   <hints>
    <hint type="sourcelabel">
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
     <x>40</x>
     <y>251</y>
    </hint>
    <hint type="destinationlabel">
     <x>77</x>
     <y>310</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>insertSpaces</sender>
   <signal>toggled(bool)</signal>
   <receiver>autoInsertSpaces</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>105</x>
     <y>49</y>
con's avatar
con committed
414
415
    </hint>
    <hint type="destinationlabel">
416
417
     <x>105</x>
     <y>78</y>
con's avatar
con committed
418
419
420
421
422
    </hint>
   </hints>
  </connection>
 </connections>
</ui>