mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-26 20:03:10 +00:00
471 lines
19 KiB
Text
471 lines
19 KiB
Text
![]() |
<?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="minimumSize">
|
||
|
<size>
|
||
|
<width>730</width>
|
||
|
<height>0</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>16777215</width>
|
||
|
<height>16777215</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="windowTitle">
|
||
|
<string>Find-Replace In Files</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout">
|
||
|
<item row="0" column="1" colspan="5">
|
||
|
<widget class="KComboBox" name="patternCombo">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="toolTip">
|
||
|
<string>Enter the regular expression you want to search for here.</string>
|
||
|
</property>
|
||
|
<property name="whatsThis">
|
||
|
<string><!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="http://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>
|
||
|
<property name="autoCompletion">
|
||
|
<bool>false</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="0">
|
||
|
<widget class="QLabel" name="label_9">
|
||
|
<property name="text">
|
||
|
<string>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>This is the regular expression template.</string>
|
||
|
</property>
|
||
|
<property name="whatsThis">
|
||
|
<string>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="KPushButton" name="syncButton">
|
||
|
<property name="toolTip">
|
||
|
<string>Quickly select location from a set of directories</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Quick Select</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="6" column="0">
|
||
|
<widget class="QLabel" name="depthLabel">
|
||
|
<property name="text">
|
||
|
<string>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 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>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>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>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>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>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="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>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>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>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="7" column="1" colspan="5">
|
||
|
<widget class="KComboBox" name="filesCombo">
|
||
|
<property name="toolTip">
|
||
|
<string>Files filter.</string>
|
||
|
</property>
|
||
|
<property name="whatsThis">
|
||
|
<string>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>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>Files pattern to exclude</string>
|
||
|
</property>
|
||
|
<property name="whatsThis">
|
||
|
<string>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="2" column="1" colspan="3">
|
||
|
<widget class="KComboBox" name="replacementTemplateEdit">
|
||
|
<property name="toolTip">
|
||
|
<string>Enter the replacement template.</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="2" column="0">
|
||
|
<widget class="QLabel" name="label_4">
|
||
|
<property name="text">
|
||
|
<string>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>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="minimumSize">
|
||
|
<size>
|
||
|
<width>0</width>
|
||
|
<height>0</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>30</width>
|
||
|
<height>30</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="toolTip">
|
||
|
<string>Select a directory to search in.</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string/>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<customwidgets>
|
||
|
<customwidget>
|
||
|
<class>KComboBox</class>
|
||
|
<extends>QComboBox</extends>
|
||
|
<header>kcombobox.h</header>
|
||
|
</customwidget>
|
||
|
<customwidget>
|
||
|
<class>KPushButton</class>
|
||
|
<extends>QPushButton</extends>
|
||
|
<header>kpushbutton.h</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>
|