|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0"> |
|
3 <class>IsortConfigurationDialog</class> |
|
4 <widget class="QDialog" name="IsortConfigurationDialog"> |
|
5 <property name="geometry"> |
|
6 <rect> |
|
7 <x>0</x> |
|
8 <y>0</y> |
|
9 <width>650</width> |
|
10 <height>700</height> |
|
11 </rect> |
|
12 </property> |
|
13 <property name="windowTitle"> |
|
14 <string>isort Configuration</string> |
|
15 </property> |
|
16 <property name="sizeGripEnabled"> |
|
17 <bool>true</bool> |
|
18 </property> |
|
19 <layout class="QGridLayout" name="gridLayout_2"> |
|
20 <item row="0" column="0"> |
|
21 <widget class="QLabel" name="label"> |
|
22 <property name="text"> |
|
23 <string>Configuration Source:</string> |
|
24 </property> |
|
25 </widget> |
|
26 </item> |
|
27 <item row="0" column="1"> |
|
28 <widget class="QComboBox" name="sourceComboBox"> |
|
29 <property name="sizePolicy"> |
|
30 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
|
31 <horstretch>0</horstretch> |
|
32 <verstretch>0</verstretch> |
|
33 </sizepolicy> |
|
34 </property> |
|
35 <property name="toolTip"> |
|
36 <string>Select the configuration source.</string> |
|
37 </property> |
|
38 </widget> |
|
39 </item> |
|
40 <item row="2" column="0" colspan="2"> |
|
41 <widget class="QDialogButtonBox" name="buttonBox"> |
|
42 <property name="orientation"> |
|
43 <enum>Qt::Horizontal</enum> |
|
44 </property> |
|
45 <property name="standardButtons"> |
|
46 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> |
|
47 </property> |
|
48 </widget> |
|
49 </item> |
|
50 <item row="1" column="0" colspan="2"> |
|
51 <widget class="QGroupBox" name="configurationGroup"> |
|
52 <property name="title"> |
|
53 <string>Configuration</string> |
|
54 </property> |
|
55 <layout class="QVBoxLayout" name="verticalLayout"> |
|
56 <item> |
|
57 <layout class="QGridLayout" name="gridLayout_3"> |
|
58 <item row="0" column="0"> |
|
59 <widget class="QLabel" name="label_2"> |
|
60 <property name="text"> |
|
61 <string>Profile:</string> |
|
62 </property> |
|
63 </widget> |
|
64 </item> |
|
65 <item row="0" column="1"> |
|
66 <widget class="QComboBox" name="profileComboBox"> |
|
67 <property name="toolTip"> |
|
68 <string>Enter a profile to be used (empty for none) (see isort documentation).</string> |
|
69 </property> |
|
70 <property name="editable"> |
|
71 <bool>true</bool> |
|
72 </property> |
|
73 </widget> |
|
74 </item> |
|
75 <item row="0" column="2"> |
|
76 <widget class="QLabel" name="label_13"> |
|
77 <property name="sizePolicy"> |
|
78 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
|
79 <horstretch>0</horstretch> |
|
80 <verstretch>0</verstretch> |
|
81 </sizepolicy> |
|
82 </property> |
|
83 <property name="text"> |
|
84 <string><a href="https://pycqa.github.io/isort/docs/configuration/profiles.html">Built-In Profiles</a></string> |
|
85 </property> |
|
86 <property name="openExternalLinks"> |
|
87 <bool>true</bool> |
|
88 </property> |
|
89 </widget> |
|
90 </item> |
|
91 <item row="1" column="0"> |
|
92 <widget class="QLabel" name="label_3"> |
|
93 <property name="text"> |
|
94 <string>Target Version:</string> |
|
95 </property> |
|
96 </widget> |
|
97 </item> |
|
98 <item row="1" column="1"> |
|
99 <widget class="QComboBox" name="pythonComboBox"> |
|
100 <property name="toolTip"> |
|
101 <string>Select the target Python version.</string> |
|
102 </property> |
|
103 </widget> |
|
104 </item> |
|
105 <item row="1" column="2"> |
|
106 <spacer name="horizontalSpacer"> |
|
107 <property name="orientation"> |
|
108 <enum>Qt::Horizontal</enum> |
|
109 </property> |
|
110 <property name="sizeHint" stdset="0"> |
|
111 <size> |
|
112 <width>40</width> |
|
113 <height>20</height> |
|
114 </size> |
|
115 </property> |
|
116 </spacer> |
|
117 </item> |
|
118 <item row="2" column="0"> |
|
119 <widget class="QLabel" name="label_4"> |
|
120 <property name="text"> |
|
121 <string>Multi Line Output:</string> |
|
122 </property> |
|
123 </widget> |
|
124 </item> |
|
125 <item row="2" column="1"> |
|
126 <widget class="QComboBox" name="multiLineComboBox"> |
|
127 <property name="toolTip"> |
|
128 <string>Select the type of multi line import statements (see isort documentation).</string> |
|
129 </property> |
|
130 </widget> |
|
131 </item> |
|
132 <item row="2" column="2"> |
|
133 <widget class="QLabel" name="label_12"> |
|
134 <property name="sizePolicy"> |
|
135 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
|
136 <horstretch>0</horstretch> |
|
137 <verstretch>0</verstretch> |
|
138 </sizepolicy> |
|
139 </property> |
|
140 <property name="text"> |
|
141 <string><a href="https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html">Defined Multi Line Output Modes</a></string> |
|
142 </property> |
|
143 <property name="openExternalLinks"> |
|
144 <bool>true</bool> |
|
145 </property> |
|
146 </widget> |
|
147 </item> |
|
148 <item row="3" column="0"> |
|
149 <widget class="QLabel" name="label_14"> |
|
150 <property name="text"> |
|
151 <string>Sort Order:</string> |
|
152 </property> |
|
153 </widget> |
|
154 </item> |
|
155 <item row="3" column="1"> |
|
156 <widget class="QComboBox" name="sortOrderComboBox"> |
|
157 <property name="toolTip"> |
|
158 <string>Select the sort order (empty for default).</string> |
|
159 </property> |
|
160 </widget> |
|
161 </item> |
|
162 <item row="3" column="2"> |
|
163 <widget class="QLabel" name="label_15"> |
|
164 <property name="text"> |
|
165 <string><a href="https://pycqa.github.io/isort/docs/configuration/options.html#sort-order">Defined Sort Orders</a></string> |
|
166 </property> |
|
167 <property name="openExternalLinks"> |
|
168 <bool>true</bool> |
|
169 </property> |
|
170 </widget> |
|
171 </item> |
|
172 <item row="4" column="0" colspan="3"> |
|
173 <widget class="QCheckBox" name="sortCaseSensitiveCheckBox"> |
|
174 <property name="toolTip"> |
|
175 <string>Select to sort imports observing the case.</string> |
|
176 </property> |
|
177 <property name="text"> |
|
178 <string>Sort Case Sensitively</string> |
|
179 </property> |
|
180 </widget> |
|
181 </item> |
|
182 <item row="5" column="0"> |
|
183 <widget class="QLabel" name="label_16"> |
|
184 <property name="text"> |
|
185 <string>Supported Extensions:</string> |
|
186 </property> |
|
187 </widget> |
|
188 </item> |
|
189 <item row="5" column="1" colspan="2"> |
|
190 <widget class="QLineEdit" name="extensionsEdit"> |
|
191 <property name="toolTip"> |
|
192 <string>Enter the supported extensions separated by space (empty for default).</string> |
|
193 </property> |
|
194 <property name="clearButtonEnabled"> |
|
195 <bool>true</bool> |
|
196 </property> |
|
197 </widget> |
|
198 </item> |
|
199 </layout> |
|
200 </item> |
|
201 <item> |
|
202 <layout class="QGridLayout" name="gridLayout"> |
|
203 <item row="0" column="0" colspan="2"> |
|
204 <widget class="QLabel" name="label_5"> |
|
205 <property name="text"> |
|
206 <string>Line Length:</string> |
|
207 </property> |
|
208 </widget> |
|
209 </item> |
|
210 <item row="0" column="2"> |
|
211 <widget class="QSpinBox" name="lineLengthSpinBox"> |
|
212 <property name="toolTip"> |
|
213 <string>Enter the allowed maximum line length.</string> |
|
214 </property> |
|
215 <property name="alignment"> |
|
216 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
217 </property> |
|
218 <property name="minimum"> |
|
219 <number>70</number> |
|
220 </property> |
|
221 <property name="maximum"> |
|
222 <number>120</number> |
|
223 </property> |
|
224 <property name="value"> |
|
225 <number>79</number> |
|
226 </property> |
|
227 </widget> |
|
228 </item> |
|
229 <item row="0" column="3"> |
|
230 <spacer name="horizontalSpacer_2"> |
|
231 <property name="orientation"> |
|
232 <enum>Qt::Horizontal</enum> |
|
233 </property> |
|
234 <property name="sizeHint" stdset="0"> |
|
235 <size> |
|
236 <width>55</width> |
|
237 <height>17</height> |
|
238 </size> |
|
239 </property> |
|
240 </spacer> |
|
241 </item> |
|
242 <item row="1" column="0" colspan="2"> |
|
243 <widget class="QLabel" name="label_6"> |
|
244 <property name="text"> |
|
245 <string>Lines Before Imports:</string> |
|
246 </property> |
|
247 </widget> |
|
248 </item> |
|
249 <item row="1" column="2"> |
|
250 <widget class="QSpinBox" name="linesBeforeImportsSpinBox"> |
|
251 <property name="toolTip"> |
|
252 <string>Enter the number of lines before import statements.</string> |
|
253 </property> |
|
254 <property name="alignment"> |
|
255 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
256 </property> |
|
257 <property name="specialValueText"> |
|
258 <string>automatic</string> |
|
259 </property> |
|
260 <property name="minimum"> |
|
261 <number>-1</number> |
|
262 </property> |
|
263 <property name="maximum"> |
|
264 <number>5</number> |
|
265 </property> |
|
266 <property name="value"> |
|
267 <number>-1</number> |
|
268 </property> |
|
269 </widget> |
|
270 </item> |
|
271 <item row="1" column="4" colspan="2"> |
|
272 <widget class="QLabel" name="label_7"> |
|
273 <property name="text"> |
|
274 <string>Lines After Imports:</string> |
|
275 </property> |
|
276 </widget> |
|
277 </item> |
|
278 <item row="1" column="6"> |
|
279 <widget class="QSpinBox" name="linesAfterImportsSpinBox"> |
|
280 <property name="toolTip"> |
|
281 <string>Enter the number of lines after import statements.</string> |
|
282 </property> |
|
283 <property name="alignment"> |
|
284 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
285 </property> |
|
286 <property name="specialValueText"> |
|
287 <string>automatic</string> |
|
288 </property> |
|
289 <property name="minimum"> |
|
290 <number>-1</number> |
|
291 </property> |
|
292 <property name="maximum"> |
|
293 <number>120</number> |
|
294 </property> |
|
295 <property name="value"> |
|
296 <number>-1</number> |
|
297 </property> |
|
298 </widget> |
|
299 </item> |
|
300 <item row="1" column="7"> |
|
301 <spacer name="horizontalSpacer_3"> |
|
302 <property name="orientation"> |
|
303 <enum>Qt::Horizontal</enum> |
|
304 </property> |
|
305 <property name="sizeHint" stdset="0"> |
|
306 <size> |
|
307 <width>87</width> |
|
308 <height>17</height> |
|
309 </size> |
|
310 </property> |
|
311 </spacer> |
|
312 </item> |
|
313 <item row="2" column="0" colspan="2"> |
|
314 <widget class="QLabel" name="label_8"> |
|
315 <property name="text"> |
|
316 <string>Lines Between Sections:</string> |
|
317 </property> |
|
318 </widget> |
|
319 </item> |
|
320 <item row="2" column="2"> |
|
321 <widget class="QSpinBox" name="linesBetweenSectionsSpinBox"> |
|
322 <property name="toolTip"> |
|
323 <string>Enter the number of lines between import sections.</string> |
|
324 </property> |
|
325 <property name="alignment"> |
|
326 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
327 </property> |
|
328 <property name="minimum"> |
|
329 <number>0</number> |
|
330 </property> |
|
331 <property name="maximum"> |
|
332 <number>5</number> |
|
333 </property> |
|
334 <property name="value"> |
|
335 <number>1</number> |
|
336 </property> |
|
337 </widget> |
|
338 </item> |
|
339 <item row="2" column="4" colspan="2"> |
|
340 <widget class="QLabel" name="label_9"> |
|
341 <property name="text"> |
|
342 <string>Lines Between Types:</string> |
|
343 </property> |
|
344 </widget> |
|
345 </item> |
|
346 <item row="2" column="6"> |
|
347 <widget class="QSpinBox" name="linesBetweenTypesSpinBox"> |
|
348 <property name="toolTip"> |
|
349 <string>Enter the number of lines between import types.</string> |
|
350 </property> |
|
351 <property name="alignment"> |
|
352 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
353 </property> |
|
354 <property name="minimum"> |
|
355 <number>0</number> |
|
356 </property> |
|
357 <property name="maximum"> |
|
358 <number>5</number> |
|
359 </property> |
|
360 <property name="value"> |
|
361 <number>0</number> |
|
362 </property> |
|
363 </widget> |
|
364 </item> |
|
365 <item row="3" column="0" colspan="4"> |
|
366 <widget class="QCheckBox" name="trailingCommaCheckBox"> |
|
367 <property name="toolTip"> |
|
368 <string>Select to include a trailing comma.</string> |
|
369 </property> |
|
370 <property name="text"> |
|
371 <string>Include Trailing Comma</string> |
|
372 </property> |
|
373 </widget> |
|
374 </item> |
|
375 <item row="3" column="4" colspan="4"> |
|
376 <widget class="QCheckBox" name="parenthesesCheckBox"> |
|
377 <property name="toolTip"> |
|
378 <string>Select for parenthesized import statements.</string> |
|
379 </property> |
|
380 <property name="text"> |
|
381 <string>Use Parentheses</string> |
|
382 </property> |
|
383 </widget> |
|
384 </item> |
|
385 <item row="4" column="0"> |
|
386 <widget class="QLabel" name="label_10"> |
|
387 <property name="text"> |
|
388 <string>Sections:</string> |
|
389 </property> |
|
390 <property name="alignment"> |
|
391 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
|
392 </property> |
|
393 </widget> |
|
394 </item> |
|
395 <item row="4" column="1" colspan="3"> |
|
396 <widget class="QPlainTextEdit" name="sectionsEdit"> |
|
397 <property name="toolTip"> |
|
398 <string>Enter the order of sections (one per line).</string> |
|
399 </property> |
|
400 </widget> |
|
401 </item> |
|
402 <item row="4" column="4"> |
|
403 <widget class="QLabel" name="label_11"> |
|
404 <property name="text"> |
|
405 <string>Exclude:</string> |
|
406 </property> |
|
407 <property name="alignment"> |
|
408 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |
|
409 </property> |
|
410 </widget> |
|
411 </item> |
|
412 <item row="4" column="5" colspan="3"> |
|
413 <widget class="QPlainTextEdit" name="excludeEdit"> |
|
414 <property name="toolTip"> |
|
415 <string>Enter glob patterns for files to be skipped.</string> |
|
416 </property> |
|
417 </widget> |
|
418 </item> |
|
419 </layout> |
|
420 </item> |
|
421 </layout> |
|
422 </widget> |
|
423 </item> |
|
424 </layout> |
|
425 </widget> |
|
426 <tabstops> |
|
427 <tabstop>sourceComboBox</tabstop> |
|
428 <tabstop>profileComboBox</tabstop> |
|
429 <tabstop>pythonComboBox</tabstop> |
|
430 <tabstop>multiLineComboBox</tabstop> |
|
431 <tabstop>sortOrderComboBox</tabstop> |
|
432 <tabstop>sortCaseSensitiveCheckBox</tabstop> |
|
433 <tabstop>extensionsEdit</tabstop> |
|
434 <tabstop>lineLengthSpinBox</tabstop> |
|
435 <tabstop>linesBeforeImportsSpinBox</tabstop> |
|
436 <tabstop>linesAfterImportsSpinBox</tabstop> |
|
437 <tabstop>linesBetweenSectionsSpinBox</tabstop> |
|
438 <tabstop>linesBetweenTypesSpinBox</tabstop> |
|
439 <tabstop>trailingCommaCheckBox</tabstop> |
|
440 <tabstop>parenthesesCheckBox</tabstop> |
|
441 <tabstop>sectionsEdit</tabstop> |
|
442 <tabstop>excludeEdit</tabstop> |
|
443 </tabstops> |
|
444 <resources/> |
|
445 <connections> |
|
446 <connection> |
|
447 <sender>buttonBox</sender> |
|
448 <signal>accepted()</signal> |
|
449 <receiver>IsortConfigurationDialog</receiver> |
|
450 <slot>accept()</slot> |
|
451 <hints> |
|
452 <hint type="sourcelabel"> |
|
453 <x>353</x> |
|
454 <y>453</y> |
|
455 </hint> |
|
456 <hint type="destinationlabel"> |
|
457 <x>376</x> |
|
458 <y>371</y> |
|
459 </hint> |
|
460 </hints> |
|
461 </connection> |
|
462 <connection> |
|
463 <sender>buttonBox</sender> |
|
464 <signal>rejected()</signal> |
|
465 <receiver>IsortConfigurationDialog</receiver> |
|
466 <slot>reject()</slot> |
|
467 <hints> |
|
468 <hint type="sourcelabel"> |
|
469 <x>166</x> |
|
470 <y>452</y> |
|
471 </hint> |
|
472 <hint type="destinationlabel"> |
|
473 <x>186</x> |
|
474 <y>365</y> |
|
475 </hint> |
|
476 </hints> |
|
477 </connection> |
|
478 </connections> |
|
479 </ui> |