blob: d1287cba5ed0a42a43b0bf4fee3b491f75c2062c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RegExpImportConfig</class>
<widget class="QWidget" name="RegExpImportConfig">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>133</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Capture groups</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="ConfigRadioButton" name="allGroupsRadio">
<property name="text">
<string>Treat all RegExp capture groups as columns</string>
</property>
<property name="assignedValue" stdset="0">
<string>all</string>
</property>
<property name="cfg" stdset="0">
<string>RegExpImport.GroupsMode</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="ConfigRadioButton" name="customGroupsRadio">
<property name="text">
<string>Import only following groups:</string>
</property>
<property name="assignedValue" stdset="0">
<string>custom</string>
</property>
<property name="cfg" stdset="0">
<string>RegExpImport.GroupsMode</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="groupsEdit">
<property name="toolTip">
<string><p>Enter comma separated list of capture group indexes. The 0 index refers to the entire matched string.</p>
<p>If you used named groups in the pattern, you can use names instead of indexes. You can mix indexes and names in this list.</p></string>
</property>
<property name="placeholderText">
<string>Example: 1, 3, 4</string>
</property>
<property name="cfg" stdset="0">
<string>RegExpImport.CustomGroupList</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Pattern:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit">
<property name="toolTip">
<string><p>Use Regular Expression groups to enclose parts of the expression that you want to import. If you want to use a group, that you don't want to import, then use "import only following groups" option below.
You can use named groups and refer to them in group list below. To name a group use: <pre>(?&lt;myGroupName&gt;\s+\d+\s+)</pre></p></string>
</property>
<property name="placeholderText">
<string>Example: (\d+)\s+((\d+)\w+)\s+(\w+)</string>
</property>
<property name="cfg" stdset="0">
<string>RegExpImport.Pattern</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>ConfigRadioButton</class>
<extends>QRadioButton</extends>
<header>common/configradiobutton.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
|