forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindReplaceDialog.ui
322 lines (322 loc) · 9.41 KB
/
FindReplaceDialog.ui
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
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
160
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
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
322
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FindReplaceDialog</class>
<widget class="QDialog" name="FindReplaceDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>451</width>
<height>288</height>
</rect>
</property>
<property name="windowTitle">
<string>Find and Replace</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QWidget" name="replaceBlock" native="true">
<property name="enabled">
<bool>true</bool>
</property>
<layout class="QHBoxLayout" name="filePickerLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="findTextLabel">
<property name="text">
<string>Fi&nd text:</string>
</property>
<property name="buddy">
<cstring>findText</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="findText"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="replaceWithLabel">
<property name="text">
<string>Re&place with:</string>
</property>
<property name="buddy">
<cstring>replaceWithText</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="replaceWithText"/>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="caseCheckBox">
<property name="text">
<string>Match &exact case</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="wholeWordsCheckBox">
<property name="text">
<string>Match &only whole words</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QCheckBox" name="wrapCheckBox">
<property name="whatsThis">
<string>When enabled, the search continues from the other end when it reaches one end of the page</string>
</property>
<property name="text">
<string>&Wrap around</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QCheckBox" name="backwardsCheckBox">
<property name="whatsThis">
<string>When set, the search goes backwards from cursor position, otherwise it goes forward</string>
</property>
<property name="text">
<string>Search &backwards</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QCheckBox" name="selectionCheckBox">
<property name="whatsThis">
<string><html><head/><body><p>When checked, the pattern to find is searched only in the current selection.</p></body></html></string>
</property>
<property name="text">
<string>&Selection only</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QCheckBox" name="regexpCheckBox">
<property name="whatsThis">
<string><html><head/><body><p>When checked, the pattern to find is interpreted as a UNIX regular expression. See <a href="https://en.wikibooks.org/wiki/Regular_Expressions">Regular Expression in Wikibooks</a>.</p></body></html></string>
</property>
<property name="text">
<string>Use regular e&xpressions</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>7</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="findNextButton">
<property name="whatsThis">
<string>Find the next occurrence from the cursor position and in the direction set by "Search backwards"</string>
</property>
<property name="text">
<string>&Find Next</string>
</property>
<property name="shortcut">
<string>F3</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="replaceButton">
<property name="text">
<string>&Replace</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="findAllButton">
<property name="whatsThis">
<string>Highlight all the occurrences of the text in the page</string>
</property>
<property name="text">
<string>F&ind All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="replaceAllButton">
<property name="whatsThis">
<string>Replace all the occurrences of the text in the page</string>
</property>
<property name="text">
<string>Replace &All</string>
</property>
</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>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="messageLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>findText</tabstop>
<tabstop>replaceWithText</tabstop>
<tabstop>caseCheckBox</tabstop>
<tabstop>wholeWordsCheckBox</tabstop>
<tabstop>wrapCheckBox</tabstop>
<tabstop>backwardsCheckBox</tabstop>
<tabstop>selectionCheckBox</tabstop>
<tabstop>regexpCheckBox</tabstop>
<tabstop>findNextButton</tabstop>
<tabstop>replaceButton</tabstop>
<tabstop>findAllButton</tabstop>
<tabstop>replaceAllButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>findNextButton</sender>
<signal>clicked()</signal>
<receiver>FindReplaceDialog</receiver>
<slot>findNext()</slot>
<hints>
<hint type="sourcelabel">
<x>225</x>
<y>242</y>
</hint>
<hint type="destinationlabel">
<x>225</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>replaceButton</sender>
<signal>clicked()</signal>
<receiver>FindReplaceDialog</receiver>
<slot>replace()</slot>
<hints>
<hint type="sourcelabel">
<x>225</x>
<y>242</y>
</hint>
<hint type="destinationlabel">
<x>225</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>findAllButton</sender>
<signal>clicked()</signal>
<receiver>FindReplaceDialog</receiver>
<slot>findAll()</slot>
<hints>
<hint type="sourcelabel">
<x>225</x>
<y>242</y>
</hint>
<hint type="destinationlabel">
<x>225</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>replaceAllButton</sender>
<signal>clicked()</signal>
<receiver>FindReplaceDialog</receiver>
<slot>replaceAll()</slot>
<hints>
<hint type="sourcelabel">
<x>225</x>
<y>242</y>
</hint>
<hint type="destinationlabel">
<x>225</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>FindReplaceDialog</receiver>
<slot>buttonBox_clicked(QAbstractButton*)</slot>
<hints>
<hint type="sourcelabel">
<x>225</x>
<y>265</y>
</hint>
<hint type="destinationlabel">
<x>225</x>
<y>143</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>updatePreview()</slot>
<slot>checkInput()</slot>
<slot>updateSelection(bool)</slot>
<slot>matchSimilar()</slot>
</slots>
</ui>