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 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
|
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GrepWidget</class>
<widget class="QWidget" name="GrepWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>730</width>
<height>330</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<layout class="QGridLayout">
<item row="0" column="1" colspan="5">
<widget class="QComboBox" name="patternCombo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string comment="@info:tooltip">Enter the regular expression you want to search for</string>
</property>
<property name="whatsThis">
<string comment="@info:whatsthis"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Enter the regular expression you want to search for here.</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you do not check "Regular Expression" below, this is considered a raw string. That means, all meta characters are escaped.</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Possible meta characters are:</p>
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">.</span> - Matches any character</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">^</span> - Matches the beginning of a line</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">$</span> - Matches the end of a line</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">\b</span> - Matches a word boundary</li>
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">\s</span> - Matches any whitespace character</li></ul>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The following repetition operators exist:</p>
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">?</span> - The preceding item is matched at most once</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">*</span> - The preceding item is matched zero or more times</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">+</span> - The preceding item is matched one or more times</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">{</span><span style=" font-weight:600; font-style:italic;">n</span><span style=" font-weight:600;">}</span> - The preceding item is matched exactly <span style=" font-style:italic;">n</span> times</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">{</span><span style=" font-weight:600; font-style:italic;">n</span><span style=" font-weight:600;">,}</span> - The preceding item is matched <span style=" font-style:italic;">n</span> or more times</li>
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">{,</span><span style=" font-weight:600; font-style:italic;">n</span><span style=" font-weight:600;">}</span> - The preceding item is matched at most <span style=" font-style:italic;">n</span> times</li>
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">{</span><span style=" font-weight:600; font-style:italic;">n</span><span style=" font-weight:600;">,</span><span style=" font-weight:600; font-style:italic;">m</span><span style=" font-weight:600;">}</span> - The preceding item is matched at least <span style=" font-style:italic;">n</span>, but at most <span style=" font-style:italic;">m</span> times.</li></ul>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Furthermore, backreferences to bracketed subexpressions are available via the notation \<span style=" font-style:italic;">n</span>.</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For further reference, look at <a href="https://www.pcre.org/"><span style=" text-decoration: underline; color:#0057ae;">www.pcre.org</span></a> or <span style=" font-style:italic;">man pcresyntax.</span></p></body></html></string>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string comment="@label:listbox">Template:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>templateEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3">
<widget class="KComboBox" name="templateEdit">
<property name="toolTip">
<string comment="@info:tooltip">This is the regular expression template.</string>
</property>
<property name="whatsThis">
<string comment="@info:whatsthis">This is the regular expression template. <i>%s</i> will be replaced by the pattern, while <i>%%</i> will be replaced by <i>%</i>.</string>
</property>
</widget>
</item>
<item row="5" column="5">
<widget class="QPushButton" name="syncButton">
<property name="toolTip">
<string comment="@info:tooltip">Quickly select location from a set of directories</string>
</property>
<property name="text">
<string comment="@action:button">Quick Select</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="depthLabel">
<property name="text">
<string comment="@label:spinbox">Depth:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>depthSpin</cstring>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="depthSpin">
<property name="toolTip">
<string extracomment="Maximum level of recursion. For folder-based searches, that means the level of subfolders. Choose 0 to look only in files inside the current folder, or Full to search also on the subfolders’s files, theirs subfolders’ files, and so on."/>
</property>
<property name="specialValueText">
<string comment="@item full recursion" extracomment="Full recursion will be used. For folder-based searches, that means searching in the target folder and all the subfolders, their subfolders, and so on.">Full</string>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="value">
<number>-1</number>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string comment="@label:listbox">Pattern:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>patternCombo</cstring>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string comment="@label:listbox">Files:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>filesCombo</cstring>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="label_11">
<property name="text">
<string comment="@option:check">Case sensitive:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>caseSensitiveCheck</cstring>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QCheckBox" name="caseSensitiveCheck">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string comment="@info:tooltip">Case-sensitive searching.</string>
</property>
<property name="text">
<string/>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string comment="@label:listbox">Location(s):</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>searchPaths</cstring>
</property>
</widget>
</item>
<item row="7" column="1" colspan="5">
<widget class="KComboBox" name="filesCombo">
<property name="toolTip">
<string comment="@info:tooltip">Files filter</string>
</property>
<property name="whatsThis">
<string comment="@info:whatsthis">Enter the file name pattern of the files to search here. You may give several patterns separated by commas or spaces.</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="autoCompletion">
<bool>false</bool>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string comment="@label:listbox">Exclude:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>excludeCombo</cstring>
</property>
</widget>
</item>
<item row="8" column="1" colspan="5">
<widget class="KComboBox" name="excludeCombo">
<property name="toolTip">
<string comment="@info:tooltip">Files pattern to exclude</string>
</property>
<property name="whatsThis">
<string comment="@info:whatsthis">Enter the file name pattern of the files to exclude from the search here. You may give several patterns separated by commas or spaces.<p>Every pattern is internally surrounded by asterisks, so that each pattern can match parts of the file paths.</p></string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="autoCompletion">
<bool>false</bool>
</property>
</widget>
</item>
<item row="9" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>141</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item row="9" column="1">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>41</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="9" column="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>151</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item row="9" column="3" colspan="3">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>361</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="4" colspan="2">
<widget class="KComboBox" name="templateTypeCombo"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string comment="@option:check">Regular expression:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>regexCheck</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="regexCheck">
<property name="toolTip">
<string comment="@info:tooltip">Enable or disable regular expression.</string>
</property>
<property name="text">
<string/>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QLabel" name="limitToProjectLabel">
<property name="text">
<string comment="@option:check">Limit to project files:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>limitToProjectCheck</cstring>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QCheckBox" name="limitToProjectCheck">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3">
<widget class="KComboBox" name="replacementTemplateEdit">
<property name="toolTip">
<string comment="@info:tooltip">Enter the replacement template</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string comment="@label:textbox">Replacement template:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>replacementTemplateEdit</cstring>
</property>
</widget>
</item>
<item row="5" column="1" colspan="3">
<widget class="KComboBox" name="searchPaths">
<property name="toolTip">
<string comment="@info:tooltip">Select the location where you want to search. It can be a directory, a file, or a semicolon separated (without spaces) list of directories/files.</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="autoCompletion">
<bool>false</bool>
</property>
</widget>
</item>
<item row="5" column="4">
<widget class="QPushButton" name="directorySelector">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
<property name="toolTip">
<string comment="@info:tooltip">Select a directory to search in</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="10" column="3" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>KComboBox</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>patternCombo</tabstop>
<tabstop>templateEdit</tabstop>
<tabstop>templateTypeCombo</tabstop>
<tabstop>replacementTemplateEdit</tabstop>
<tabstop>regexCheck</tabstop>
<tabstop>caseSensitiveCheck</tabstop>
<tabstop>searchPaths</tabstop>
<tabstop>directorySelector</tabstop>
<tabstop>syncButton</tabstop>
<tabstop>depthSpin</tabstop>
<tabstop>limitToProjectCheck</tabstop>
<tabstop>filesCombo</tabstop>
<tabstop>excludeCombo</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
|