Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/1/head
@ -1,2 +0,0 @@
|
||||
KDE_DOCS = AUTO
|
||||
KDE_LANG = en
|
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 979 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
@ -1,613 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
<!ENTITY tdefilereplace "<application>TDEFileReplace</application>">
|
||||
<!ENTITY kappname "&tdefilereplace;">
|
||||
<!ENTITY package "tdewebdev">
|
||||
<!ENTITY % addindex "IGNORE">
|
||||
<!ENTITY % English "INCLUDE">
|
||||
<!ENTITY tdewebdev "<application>tdewebdev</application>">
|
||||
<!ENTITY bc "<application>bc</application>">
|
||||
]>
|
||||
|
||||
<book lang="&language;">
|
||||
|
||||
<bookinfo>
|
||||
<title>The &tdefilereplace; Handbook</title>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<firstname>Emiliano</firstname>
|
||||
<surname>Gulmini</surname>
|
||||
<affiliation>
|
||||
<address><email>emi_barbarossa@yahoo.it</email></address>
|
||||
</affiliation>
|
||||
</author>
|
||||
|
||||
<!-- TRANS:ROLES_OF_TRANSLATORS -->
|
||||
|
||||
</authorgroup>
|
||||
|
||||
<copyright>
|
||||
<year>2004</year>
|
||||
<holder>Emiliano Gulmini</holder>
|
||||
</copyright>
|
||||
|
||||
<legalnotice>&FDLNotice;</legalnotice>
|
||||
|
||||
<date>2004-08-09</date>
|
||||
<releaseinfo>1.0.0</releaseinfo>
|
||||
|
||||
<!-- Abstract about this handbook -->
|
||||
|
||||
<abstract>
|
||||
<para>
|
||||
&tdefilereplace; is an utility to search and replace strings.
|
||||
</para>
|
||||
</abstract>
|
||||
|
||||
<keywordset>
|
||||
<keyword>TDE</keyword>
|
||||
<keyword>TDEFileReplace</keyword>
|
||||
<keyword>replace</keyword>
|
||||
<keyword>search</keyword>
|
||||
<keyword>string</keyword>
|
||||
</keywordset>
|
||||
|
||||
</bookinfo>
|
||||
|
||||
<chapter id="introduction">
|
||||
<title>Introduction</title>
|
||||
<para>&tdefilereplace; is an application used to search and replace a list of strings in a file tree. The strings may be literal or Qt-like regular expressions. There are also other options to tune your search.
|
||||
</para>
|
||||
</chapter>
|
||||
|
||||
<chapter id="using-tdefilereplace">
|
||||
<title>Using &tdefilereplace;</title>
|
||||
|
||||
<para>
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace; in its standalone incarnation</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="kfr_standalone_main_window_1.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace; in its standalone incarnation</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
</para>
|
||||
|
||||
|
||||
<sect1 id="tdefilereplace-the-toolbar">
|
||||
<title>The Toolbar</title>
|
||||
|
||||
<para>The &tdefilereplace; toolbar should looks like this:
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace;'s toolbar</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="toolbar.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="toolbar.eps" format="EPS"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace;'s toolbar</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
</para>
|
||||
|
||||
<para>The toolbar shows you the buttons of the main functionalities.
|
||||
<variablelist>
|
||||
<title>Toolbar Icons</title>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="project.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>New session</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button shows a <link linkend="tdefilereplace-the-project-dialog">session dialog</link> in which you can set several basic options; if &tdefilereplace; run as standalone application you should click this button as first step.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="filesearch.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Search only</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button starts a search loop.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="filereplace.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Replace</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button starts a search&replace loop. When a string has been found, &tdefilereplace; replaces it with another string.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="filesimulate.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Simulated Replace</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button starts a simulated search&replace loop. Nothing really happens when you click this button.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="stop.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Stop</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button stops an operation.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="edit_add.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Add Strings</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button opens the <link linkend="tdefilereplace-the-add-dialog">Add Strings</link> dialog in which you can edit your string list.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="edit_remove.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Delete Strings</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button deletes the selected (or the current if there is no selection) string from the list.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="edit.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Edit Strings</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button edits a selected string.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="eraser.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Delete List</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button deletes all the strings in the list.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="invert.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Invert Strings</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button swaps the search string with the replace string, so you can revert a search/replace operation.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="unsortedList.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Load String List</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button loads a <link linkend="tdefilereplace-the-kfr-file">string list</link> saved in a xml file with a <literal role="extension">kfr</literal> extension.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="recursive_option.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Search in Subfolders</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button allows you to search/replace recursively in the subfolders of your base directory.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="backup_option.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Make Backup Files</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button enables generation of <link linkend="tdefilereplace-backup-file">backup</link> files.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="casesensitive_option.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Case-sensitive Search</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button enables case-sensitive searching.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="command_option.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Commands</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button enables commands capability. Commands are special strings. See <xref linkend="tdefilereplace-commands"/>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="regularexpression_option.png" format="PNG"/>
|
||||
</imageobject>
|
||||
</inlinemediaobject><guiicon>Regular expressions</guiicon></term>
|
||||
<listitem>
|
||||
<para>This button enables <link linkend="tdefilereplace-QT-regexp">Qt-like regular expressions</link>.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-the-results-view">
|
||||
<title>The Results List</title>
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace;'s Results view</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="results_view.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="results_view.eps" format="EPS"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace;'s Results view</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
<para>The <guilabel>Results</guilabel> view shows the name of the files that contain the strings you have to retrieve (and replace), their path, their size, the number of strings found and the user id of the files. This view also provides the exact position of each match. You can also open a file by clicking with the &RMB; on an list entry that contains line and column position.</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-the-strings-view">
|
||||
<title>The String List</title>
|
||||
|
||||
<para>This is the <guilabel>Strings</guilabel> view:
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace;'s Strings view</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="strings_view.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace;'s Strings view</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
</para>
|
||||
|
||||
<para>The <guilabel>Strings</guilabel> view visualizes the list of strings you want search/replace. Please note that in search mode the <guilabel>Results</guilabel> view and the <guilabel>Strings</guilabel> view have a different layout.</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-the-project-dialog">
|
||||
<title>The <guilabel>New Session</guilabel> Dialog</title>
|
||||
<para>The <guilabel>New Session</guilabel> dialog is used to setup the basic parameters needed by &tdefilereplace; to work. It consists of two tabs, <guilabel>General</guilabel> and <guilabel>Advanced</guilabel>.
|
||||
</para>
|
||||
|
||||
<sect2 id="tdefilereplace-the-project-dialog-general-page">
|
||||
<title>The <guilabel>General</guilabel> Tab</title>
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace; General tab</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="projectdialog_main_window_1.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace; General tab</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
<para>When you want to begin a new session the first step is to click on the <link linkend="tdefilereplace-the-toolbar"><guiicon>New Session</guiicon> button</link>. Then you must enter the base path and a sequence of shell-like wildcards to use as filter.</para>
|
||||
<para>Then you could set some useful options, like searching in all the subfolders, doing a case-sensitive search, enabling commands and/or regular expressions<footnote id="performancewarning"><para>Please note that regular expressions and commands could slow down the speed performances.</para></footnote>, doing a backup copy of each file before replacing.</para>
|
||||
<para>If you want to start searching, you can put a string in the search box and press <guibutton>Search Now</guibutton>, otherwise leave the search box empty and press <guibutton>Search Later</guibutton>.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="tdefilereplace-the-project-dialog-advanced-page">
|
||||
<title>The <guilabel>Advanced</guilabel> Tab</title>
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace; Advanced tab</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="projectdialog_main_window_2.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace; Advanced tab</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
<para>The <guilabel>Advanced</guilabel> tab allows you to set up some useful options to restrict the search to a subset of your target file tree. If you want to run &tdefilereplace; only over files that have a size in the range of 10KB - 100KB, then you could use the size options. There is also a date option that restricts the search in a temporal range, and a last option that allows you to only search for files owned (or not owned) by a particular user (this may be more useful to the system administrators).</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-the-options-dialog">
|
||||
<title>The <guilabel>Options</guilabel> Dialog</title>
|
||||
<para>This dialog contains options that are in the toolbar and extra options that may come in handy in some situations. You can invoke it selecting <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure TDEFileReplace...</guimenuitem></menuchoice> in the main menu.
|
||||
</para>
|
||||
<sect2 id="tdefilereplace-the-options-dialog-general-page">
|
||||
<title>General options</title>
|
||||
<para>These options have been presented in the <link linkend="tdefilereplace-the-toolbar">Toolbar</link> section.
|
||||
<screenshot>
|
||||
<screeninfo>The General tab of the Options window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="optionsdialog_main_window_1.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>The General tab of the Options window</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
</para>
|
||||
</sect2>
|
||||
<sect2 id="tdefilereplace-the-options-dialog-advanced-page">
|
||||
<title>Advanced options</title>
|
||||
<para>
|
||||
<screenshot>
|
||||
<screeninfo>The Advanced tab of the Options window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="optionsdialog_main_window_2.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>The Advanced tab of the Options window</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
<segmentedlist>
|
||||
<segtitle>Do not show files if no strings are found or replaced</segtitle>
|
||||
<segtitle>When searching, stop on first string found</segtitle>
|
||||
<segtitle>Follow symbolic links</segtitle>
|
||||
<segtitle>Ignore hidden files and directories</segtitle>
|
||||
<seglistitem>
|
||||
<seg>shows only the files that match some of your strings. This will speed up the search.</seg>
|
||||
<seg>&tdefilereplace; will stop when it finds a matching string, and will continue to search for other strings or, if you search for only one string, it will continue with the next file.</seg>
|
||||
<seg>if a file is a link to another one, then search in the real file.</seg>
|
||||
<seg>if hidden files or folders are encountered, ignore them.</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
<sect1 id="tdefilereplace-the-add-dialog">
|
||||
<title>The <guilabel>Add Strings</guilabel> Dialog</title>
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace;'s Add Strings dialog</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="addstringsdialog_window.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace;'s Add Strings dialog</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
<para>This dialog is used to insert and edit a list of strings. You just have to insert either a search-only or a search-and-replace list, and then with the two mini-editors you will introduce your text. The arrow buttons allow you to add pairs of strings or delete them. When you finish, click <guibutton>OK</guibutton>.</para>
|
||||
</sect1>
|
||||
</chapter>
|
||||
|
||||
<chapter id="tdefilereplace-features">
|
||||
<title>&tdefilereplace; features</title>
|
||||
<para>This chapter provides informations about some useful capabilities of &tdefilereplace;.</para>
|
||||
<sect1 id="tdefilereplace-the-kfr-file">
|
||||
<title>How to save your string list</title>
|
||||
<para>When you want to reuse a list of strings you can save it in a <literal role="extension">xml</literal> file. To do this select from the menubar <menuchoice><guimenu>Search/Replace</guimenu><guisubmenu>Strings</guisubmenu><guimenuitem>Save Strings List to File</guimenuitem></menuchoice>. When you save a list, a simple <literal role="extension">xml</literal> file with extension <literal role="extension">kfr</literal> is created. To load a <literal role="extension">kfr</literal> file select from menubar <menuchoice><guimenu>Search/Replace</guimenu><guisubmenu>Strings</guisubmenu><guimenuitem>Load Strings List from File</guimenuitem></menuchoice>. The actual file looks like this:</para>
|
||||
<screen>
|
||||
<?xml version="1.0" ?>
|
||||
<kfr>
|
||||
<mode search="false"/>
|
||||
<replacement>
|
||||
<oldstring><![CDATA[SEARCH_STRING_1]] ></oldstring>
|
||||
<newstring><![CDATA[REPLACE_STRING_1]]></newstring>
|
||||
</replacement>
|
||||
<replacement>
|
||||
<oldstring><![CDATA[SEARCH_STRING_2]]></oldstring>
|
||||
<newstring><![CDATA[REPLACE_STRING_2]]></newstring>
|
||||
</replacement>
|
||||
|
||||
|
||||
<replacement>
|
||||
<oldstring><![CDATA[SEARCH_STRING_N]]></oldstring>
|
||||
<newstring><![CDATA[REPLACE_STRING_N]]></newstring>
|
||||
</replacement>
|
||||
|
||||
</kfr></screen>
|
||||
|
||||
<para>If you are using a previous format, you can update by hand your file by simply modifying it according to the above scheme. Alternatively, you can load the file written in the old format and save it again with &tdefilereplace; in the way explained before.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-the-report-file">
|
||||
<title>How to Create a Simple Report</title>
|
||||
<para>You can create a report by choosing <menuchoice><guimenu>Search/Replace</guimenu><guisubmenu>Results</guisubmenu><guimenuitem>Create Report File</guimenuitem></menuchoice> from the main menu. A report is a folder containing an <literal role="extension">xml</literal> and a <literal role="extension">css</literal> file. Reports may be useful to maintain a simple log of your operations.
|
||||
<screenshot>
|
||||
<screeninfo>&tdefilereplace;'s Report feature</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="report_example.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="report_example.eps" format="EPS"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>&tdefilereplace;'s Report feature</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-QT-regexp">
|
||||
<title>How to use Regular Expressions</title>
|
||||
<para>
|
||||
If you want search for every string that starts with <quote>x</quote>, <quote>ht</quote> or <quote>u</quote> and ends with <quote>ml</quote>, you can write a regular expression like this: <userinput>(x|ht|u)ml</userinput>. Insert this expression in the search editor, click <guibutton>OK</guibutton>, and enable regular expressions by toggling the <link linkend="tdefilereplace-the-toolbar"><guibutton>Regular Expression</guibutton> button</link>. Please note that using regular expressions lets you to make very complicated searches, but the cost could be a performance degradation. Regular expression can be very tricky, and it is often the case that <quote>if you want to solve a problem with a regular expression, you have two problems</quote>.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-backup-file">
|
||||
<title>How to Protect Original Files</title>
|
||||
<para>If you do not want to lose your original files, you can make a copy of them before replacing the strings. After inserting your strings, and before starting the replacement process, you have just to toggle the <link linkend="tdefilereplace-the-toolbar"><guiicon>Backup</guiicon> button</link>. If you want to customize the extension of the backup files open the <link linkend="tdefilereplace-the-options-dialog"><guilabel>Options</guilabel> dialog</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-open-file">
|
||||
<title>How to Open a File</title>
|
||||
<para>If you want to open a file that matches some of your strings, you have to select a line in the result view and click on it with the &RMB;. A context menu will appear from which you can open the file. If you use &tdefilereplace; embedded in &quantaplus;, you can open the file directly in it at the specified line and column.</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="tdefilereplace-commands">
|
||||
<title>Commands</title>
|
||||
<para>Suppose you want replace the phrase <quote>Alice's adventures in Wonderland</quote> with the <ulink url="http://www.textlibrary.com/download/alice-wo.txt">entire file that contains Carroll's novel</ulink>. Probably you don't want to do this by hand, what you need is a command that will do it for you. Click the <link linkend="tdefilereplace-the-toolbar"><guiicon>Add</guiicon></link> button, select <guilabel>Search and Replace Mode</guilabel> and insert the following strings: <userinput>Alice's adventure in Wonderland</userinput> in the search mini-editor and the string <userinput>[$loadfile:<replaceable>/the-path-to-my-folder/my-folder/my-file</replaceable>$]</userinput> in the replacement mini-editor. Click <guibutton>OK</guibutton>. When you come back to the &tdefilereplace; main window, toggle the <link linkend="tdefilereplace-the-toolbar">Command action</link> button that enables the commands, and start the replacement process. There are also other commands, see <xref linkend="available-commands"/> for a list of all of them.</para>
|
||||
</sect1>
|
||||
</chapter>
|
||||
|
||||
<chapter id="credits">
|
||||
<title>Credits and License</title>
|
||||
|
||||
<para>&tdefilereplace;. Program copyright 1999 by François Dupoux <email>dupoux@dupoux.com</email>, 2003 Andras Mantia <email>amantia@kde.org</email>, 2004 Emiliano Gulmini <email>emi_barbarossa@yahoo.it</email>
|
||||
</para>
|
||||
|
||||
<variablelist>
|
||||
<title>The &tdefilereplace; authors and maintainers:</title>
|
||||
<varlistentry>
|
||||
<term>François Dupoux <email>dupoux@dupoux.com</email></term>
|
||||
<listitem><para>Original author</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>Andras Mantia <email>amantia@kde.org</email></term>
|
||||
<listitem><para>Shell autor, KPart creator, co-maintainer</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>Emiliano Gulmini <email>emi_barbarossa@yahoo.it</email></term>
|
||||
<listitem><para>Current maintainer, code cleaner & rewriter</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
<para>
|
||||
Documentation Copyright © 2004 Emiliano Gulmini <email>emi_barbarossa@yahoo.it</email>
|
||||
</para>
|
||||
|
||||
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
|
||||
|
||||
&underFDL; <!-- FDL: do not remove -->
|
||||
&underGPL; <!-- GPL License -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<appendix id="installation">
|
||||
<title>Installation</title>
|
||||
|
||||
<sect1 id="getting-tdefilereplace">
|
||||
<title>How to install &tdefilereplace;</title>
|
||||
<para>
|
||||
&tdefilereplace; is currently part of &tdewebdev; package, so, in order to install it, you have to get a copy of &tdewebdev;. Note that if you are using a &kde; installation provided by your OS vendor, probably you already have &tdewebdev; installed; in this case, you can use &tdefilereplace; either by opening &quantaplus; Web editor, or by calling it directly (unless you have an old &kde; version). Else you can download the &tdewebdev; package from the Internet: please refer to <ulink url="http://kdewebdev.org">&tdewebdev; home site</ulink> for more information.
|
||||
<!--&install.intro.documentation;-->
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="requirements">
|
||||
<title>Requirements</title>
|
||||
<para>In order to use the command <link linkend="available-commands">[$mathexp:<replaceable>some_math_expression</replaceable>$]</link> you should install the &bc; mathematical utility (version 1.06 or newer) written by Philip A. Nelson (<email>philnelson@acm.org</email>).</para>
|
||||
</sect1>
|
||||
|
||||
</appendix>
|
||||
|
||||
<appendix id="available-commands">
|
||||
<title>&tdefilereplace; commands</title>
|
||||
<para>
|
||||
<segmentedlist>
|
||||
<segtitle>[$datetime:iso$]</segtitle>
|
||||
<segtitle>[$datetime:local$]</segtitle>
|
||||
<segtitle>[$user:uid$]</segtitle>
|
||||
<segtitle>[$user:gid$]</segtitle>
|
||||
<segtitle>[$user:loginname$]</segtitle>
|
||||
<segtitle>[$user:fullname$]</segtitle>
|
||||
<segtitle>[$user:homedir$]</segtitle>
|
||||
<segtitle>[$user:shell$]</segtitle>
|
||||
<segtitle>[$loadfile:<replaceable>/my-path/my-directory/my-file</replaceable>$]</segtitle>
|
||||
<segtitle>[$empty:$]</segtitle>
|
||||
<segtitle>[$random:<replaceable>AN_INTEGER_NUMBER</replaceable>$]</segtitle>
|
||||
<segtitle>[$random:$]</segtitle>
|
||||
<segtitle>[$mathexp:<replaceable>bc-expression</replaceable>$]</segtitle>
|
||||
<seglistitem>
|
||||
<seg>this command return the current date and time in Qt ISO format.</seg>
|
||||
<seg>like above but in local format.</seg>
|
||||
<seg>return the UID of the current user.</seg>
|
||||
<seg>return the GID of the current user.</seg>
|
||||
<seg>return the login name of the current user.</seg>
|
||||
<seg>return the full name of the current user.</seg>
|
||||
<seg>return the home directory of the current user.</seg>
|
||||
<seg>return the shell of the current user.</seg>
|
||||
<seg>return the content of the <emphasis>my-file</emphasis> file.</seg>
|
||||
<seg>return the empty string.</seg>
|
||||
<seg>return a random number string using <emphasis>AN_INTEGER_NUMBER</emphasis> as the initial seed.</seg>
|
||||
<seg>like above, but without initial seed.</seg>
|
||||
<seg>return the result of a &bc; v1.06 mathematical expression.</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
</para>
|
||||
</appendix>
|
||||
|
||||
&documentation.index;
|
||||
</book>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 959 B |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 279 B |
@ -1,56 +0,0 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2010-2011 Serghei Amelian
|
||||
# serghei (DOT) amelian (AT) gmail.com
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
add_subdirectory( toolbar )
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
tde_install_icons( )
|
||||
install( FILES tdefilereplace.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
||||
install( FILES tdefilereplacepart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
install( FILES tdefilereplacepartui.rc DESTINATION ${DATA_INSTALL_DIR}/tdefilereplacepart )
|
||||
install( FILES tdefilereplaceui.rc DESTINATION ${DATA_INSTALL_DIR}/tdefilereplace )
|
||||
|
||||
|
||||
##### libtdefilereplacepart (module) ##############
|
||||
|
||||
tde_add_kpart( libtdefilereplacepart AUTOMOC
|
||||
SOURCES
|
||||
commandengine.cpp configurationclasses.cpp
|
||||
tdefilereplacepart.cpp tdefilereplaceview.cpp
|
||||
tdefilereplaceviewwdg.ui kaddstringdlg.cpp kaddstringdlgs.ui
|
||||
knewprojectdlg.cpp knewprojectdlgs.ui koptionsdlg.cpp
|
||||
koptionsdlgs.ui tdefilereplacelib.cpp report.cpp
|
||||
LINK tdeio-shared tdeparts-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### tdefilereplace (executable) #################
|
||||
|
||||
tde_add_executable( tdefilereplace AUTOMOC
|
||||
SOURCES
|
||||
tdefilereplace.cpp main.cpp
|
||||
LINK tdeio-shared tdeparts-shared
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -1,211 +0,0 @@
|
||||
2005-02-20: Andras Mantia <amantia@kde.org>
|
||||
* Added the possibility to select the encoding of the files and a warning about
|
||||
the possible damaged result if the wrong encoding is chosen
|
||||
|
||||
2005-02-16: Andras Mantia <amantia@kde.org>
|
||||
* Accept paths as command line arguments
|
||||
|
||||
2005-01-29 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Cleaning up.
|
||||
|
||||
2005-01-23 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Some clean up.
|
||||
* Now the text 'captured text "blabla" at line...' etc. is substituted with
|
||||
'Line:xyz, Col:abc "blabla"'
|
||||
* Fixed a bug in the string view, that cause KFR to crash if the string list is empty
|
||||
and the user click on it with the mouse.
|
||||
|
||||
2005-01-17 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Now it should be possible to handle other characters encoding, like japanese.
|
||||
* Added, but still buggy, a "replace confirmation" option.
|
||||
* Now when open KFilereplace as standalone application it uses
|
||||
this "*.c*;*.h*;*.sh;*.txt*;*.p*;*.java;*.log" string as default filter.
|
||||
|
||||
2005-01-14 Andras Mantia <amantia@kde.org>
|
||||
* Don't show the cannot open file dialogs for directories
|
||||
* Don't create a backup for every scanned file, only for those that were modified
|
||||
* Don't update the timestap for every scanned file
|
||||
* Fix installation of the icons (they go to the part's data dir now)
|
||||
|
||||
2005-01-13 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added some other infos to the docbook manual, I hope to complete it as soon as possible.
|
||||
* I added a new command: [$mathexp:some_expression$]. It uses the bc calculator to
|
||||
compute the result of an expression.
|
||||
|
||||
2005-01-11 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Fixed a bug in KAddStringDlg: now when we want edit a string the search-only mode and search-replace mode
|
||||
don't merge.
|
||||
* Modified KFR file format: I added the tag '<mode search=""/>' just after the root <kfr> to allows
|
||||
tdefilereplace to recognize if the list to load is a list of only search strings. I added some lines of code
|
||||
to permit users to load files that don't have this new tag.
|
||||
* I'm writing docbook manual.
|
||||
|
||||
2005-01-10 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* The KFilereplaceView widget has been modified. Now it change the layout of tdefilereplace depending of the
|
||||
value of m_option->m_searchOnlyMode.
|
||||
* I fixed a bug in the backup file option.
|
||||
|
||||
2004-12-13 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I modified the way we can open files in quanta. Now we can select one or more entries
|
||||
in the QListView that store the results, and open several files, at the same time.
|
||||
For selecting more than one file, we must press CTRL button while clicking with mouse
|
||||
on the entry we want open.
|
||||
|
||||
2004-11-10 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added a graphical file counter.
|
||||
* I added a semaphore to notify user about the state of the search.
|
||||
* I improved a little the speed.
|
||||
* I made some cleanup.
|
||||
|
||||
2004-09-27 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I fixed a bug that affect some strings in case of translation.
|
||||
* I fixed a bug that affect "Create backup" option, I think that now this feature should work
|
||||
properly.
|
||||
|
||||
2004-09-26 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I did some cleanup.
|
||||
|
||||
2004-09-11 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added the class ResultViewEntry in configurationclasses.(h,cpp) to make the replace algorithm more clean.
|
||||
* I make multiline text searching more useable.
|
||||
* Now the file entries in the result view are shown with descriptive icons.
|
||||
* I'm trying to write some documentation, in the meanwhile a tutorial is present.
|
||||
|
||||
2004-08-13 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added CommandEngine class and Report class.
|
||||
In fact I moved the code that do the report document and the
|
||||
code that do commands feature from KFileREplaceLib to these two classes.
|
||||
|
||||
2004-08-09 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I fixed a bug that affected the method "void TDEFileReplaceView::slotStringsClear()" in tdefilereplaceview.cpp file.
|
||||
This bug caused the list of strings not to be correctly erased.
|
||||
|
||||
2004-08-07 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I modified the save-results system(thanks Luciano for the idea of using xml/css tecnology).
|
||||
Now KFR creates a directory with name "NAME" that contains a xml file "NAME.xml"
|
||||
and a css file "NAME.css". These two files are the new "report document"
|
||||
that substitutes the xhtml file. To try it choose "Search/Replace|Results|Create Report File" menu option.
|
||||
* I fixed a bug that causes Quanta to crash when we push Cancel button in new project
|
||||
dialog.
|
||||
* I finished the tutorial.
|
||||
|
||||
2004-08-01 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* The line "if(::access(directory.local8Bit(), R_OK | X_OK) == -1)" has been removed,
|
||||
and subtitued with "QFileInfo dirInfo(directory); "
|
||||
"if(not(dirInfo.isReadable() and dirInfo.isExecutable())"
|
||||
" or "
|
||||
" not(dirInfo.isWritable())) "
|
||||
in tdefilereplacepart.cpp
|
||||
|
||||
2004-07-30 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* The icons have been fixed!!! What a miracle!!!
|
||||
|
||||
2004-07-24 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added a little feature. When KFR matches a string, it shows the row and the column
|
||||
where that match is, by using a message like this:
|
||||
/my/path/file
|
||||
|
|
||||
|__ string "xyz" found at line:40, column:2
|
||||
|__ string "xyz" found at line:18, column:57
|
||||
|__.............
|
||||
Now if you use "Edit with Quanta" popup menu option, say, on the line:
|
||||
"string "xyz" found at line:40, column:2"
|
||||
of the result view, Quanta will open the file /my/path/file at row 40, column 2.
|
||||
|
||||
2004-07-20 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I fixed a bug that affects the generation of extension of
|
||||
the backup files.
|
||||
|
||||
2004-07-17 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I fixed the bug that causes quanta to crash when KFR is active.
|
||||
* I fixed (I hope!) the simulation feature.
|
||||
* I reorganize the KOptionsDlg UI.
|
||||
* I Added some tool tips.
|
||||
* I' m tired and I go on bed ;-)
|
||||
|
||||
2004-07-16 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* The KNewProjectDlg was modified, adding quick search/replace line edit objects
|
||||
* A option in KOptionDlg was added, so that the files that don't
|
||||
contain the strings we are searching for, will not be shown.
|
||||
* Some code clean-up
|
||||
* A bug with KAddStringDlg was fixed.
|
||||
* I found a bug that makes quanta to crash when we close quanta with the x button...
|
||||
I'm trying to fix it.
|
||||
|
||||
2004-05-30 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Well, KFR has been entirely (more or less :-)) rewrote.
|
||||
the files:
|
||||
apistruct.h
|
||||
kernel.(cpp,h)
|
||||
kexpression.(cpp,h)
|
||||
tdefilereplacedoc.(cpp,h)
|
||||
tdefilereplacepref.(cpp,h)
|
||||
|
||||
were removed and these files are added:
|
||||
|
||||
configurationclasses.h
|
||||
|
||||
. the internal architecture was redesigned, to use QT/KDE tecnologies in particular:
|
||||
. C-like code were removed (where possible).
|
||||
. some system dependent functions were substituted with more portable code.
|
||||
. the apistructs.h file were substituted with one class in configurationclasses.h.
|
||||
. the UIs were modified in particular:
|
||||
. new "add string" dialog were added.
|
||||
. project dialog were modified.
|
||||
. some new features were added in particular:
|
||||
. the variable replace mechanism were modified.
|
||||
. the result view shows the line and column where the string has been found.
|
||||
. now the mechanism of search/replace with wildcards inherits from QT regular expression engine.
|
||||
|
||||
* I wrote a little tutorial(TUTOR.txt), but a more exhaustive tutorial will be released soon.
|
||||
Note: there some bugs to fix and some feature to implement, in particular:
|
||||
. Simulation is not yet implemented.
|
||||
. Some options are presents but disabled.
|
||||
. I want to add more KFR variable commands.
|
||||
|
||||
|
||||
2004-03-26 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Added a feature. Now we can open a file from the result view of KFR in Quanta(thanks Andras).
|
||||
|
||||
2004-03-14 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Replaced two QLineEdit with two QSpinbox in knewprojectdlg.ui
|
||||
* Fixed a bug in the new kfr (XML-based) file format.
|
||||
|
||||
2004-03-12 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Removed KresultView(.h,.cpp). Now TDEFileReplaceView is a QWidget that contains results and
|
||||
strings view.
|
||||
* Added whatthis.h that contains the "what's this" strings.
|
||||
* Fixed a bug that generate a wrong XHTML result file.
|
||||
|
||||
2004-03-06 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* Added tdeconfirmdlgs.ui.
|
||||
* Fixed a bug in KOptionDlg, now when we select a option, the selection is shown correctly.
|
||||
* Fixed a bug KNewProjectDlg.
|
||||
|
||||
2004-02-26 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* I added a method 'editStrings' that fixes tha behaviour when a user
|
||||
chooses edit string option instead of add string option.
|
||||
* I modified the property textFormat of the QTextEdit widgets of
|
||||
KAddstringDlg, from the value 'AutoText' to the value 'PlainText',
|
||||
so the QTextEdit widgets will not try to render a string containing
|
||||
html code.
|
||||
|
||||
2004-02-24 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* tdefilereplacepref.(h,cpp) were removed.
|
||||
* kernel.(h,cpp) now are a singleton class.
|
||||
* Some macros in kernel.h were replaced with integer constants.
|
||||
* Methods in kernel.h file were renamed.
|
||||
* Some superflous #include lines were removed.
|
||||
* The filelib.(h,cpp) were subtituted with KFilereplaceLib singleton class.
|
||||
* Now tdefilereplace logo and icons in the result view appear.
|
||||
|
||||
2004-02-18 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
* The icons in toolbar directory were redrawn.
|
||||
* Deleted the KFRHeader struct from apistruct.h.
|
||||
* The mechanism of saving the string rules has been modified: now we can save the rules in a
|
||||
file like this "a_file_name.kfr" that is an XML file.
|
||||
* The file containing the results of the operations is now a XHTML file.
|
||||
* Two new files UI added: now KOptionDlg inherits from KOptionDlgS and KAddstringDlg inherits
|
||||
from KAddstringDlgS.
|
||||
* The tdelistviewstring.(h,cpp) were removed.
|
||||
* A lot of clean up has been made in all files.
|
@ -1,43 +0,0 @@
|
||||
## Makefile.am for tdefilereplace
|
||||
|
||||
# set the include path for X, qt and KDE
|
||||
INCLUDES = $(all_includes)
|
||||
|
||||
# this has all of the subdirectories that make will recurse into. if
|
||||
# there are none, comment this out
|
||||
SUBDIRS = toolbar
|
||||
|
||||
# these are the headers for your project
|
||||
noinst_HEADERS = kaddstringdlg.h tdefilereplaceiface.h tdefilereplacelib.h \
|
||||
knewprojectdlg.h tdefilereplaceview.h koptionsdlg.h report.h commandengine.h \
|
||||
configurationclasses.h tdefilereplace.h
|
||||
|
||||
# let automoc handle all of the meta source files (moc)
|
||||
METASOURCES = AUTO
|
||||
|
||||
kde_module_LTLIBRARIES = libtdefilereplacepart.la
|
||||
libtdefilereplacepart_la_SOURCES = tdefilereplacepart.cpp tdefilereplaceview.cpp \
|
||||
tdefilereplaceviewwdg.ui kaddstringdlg.cpp kaddstringdlgs.ui knewprojectdlg.cpp \
|
||||
knewprojectdlgs.ui koptionsdlg.cpp koptionsdlgs.ui tdefilereplacelib.cpp report.cpp \
|
||||
commandengine.cpp configurationclasses.cpp
|
||||
|
||||
libtdefilereplacepart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -ltdecore -ltdeui $(LIB_QT) -lkjs -ltdefx -ltdeio -ltdeparts -lDCOP
|
||||
libtdefilereplacepart_la_LIBADD = $(LIB_TDEFILE) $(LIB_TDEPARTS) $(LIB_TDEHTML)
|
||||
|
||||
messages: rc.cpp
|
||||
$(XGETTEXT) *.cpp *.h -o $(podir)/tdefilereplace.pot
|
||||
|
||||
KDE_ICON = AUTO
|
||||
kde_services_DATA = tdefilereplacepart.desktop
|
||||
xdg_apps_DATA = tdefilereplace.desktop
|
||||
|
||||
# this is where the XML-GUI resource file goes
|
||||
partrcdir = $(kde_datadir)/tdefilereplacepart
|
||||
partrc_DATA = tdefilereplacepartui.rc
|
||||
|
||||
shellrcdir = $(kde_datadir)/tdefilereplace
|
||||
shellrc_DATA = tdefilereplaceui.rc
|
||||
bin_PROGRAMS = tdefilereplace
|
||||
tdefilereplace_LDFLAGS = $(KDE_RPATH) $(all_libraries) -ltdecore -ltdeui $(LIB_QT) -lkjs -ltdefx -ltdeio -ltdeparts -lDCOP
|
||||
tdefilereplace_LDADD = $(LIB_TDEPARTS)
|
||||
tdefilereplace_SOURCES = tdefilereplace.cpp main.cpp
|
@ -1,213 +0,0 @@
|
||||
/***************************************************************************
|
||||
commandengine.cpp - kfr commands feature class
|
||||
-------------------
|
||||
begin : fri aug 13 15:29:46 CEST 2004
|
||||
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : emi_barbarossa@yahoo.it
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
// QT
|
||||
#include <tqdatetime.h>
|
||||
#include <tqfile.h>
|
||||
#include <tqtextstream.h>
|
||||
#include <tqdom.h>
|
||||
|
||||
// KDE
|
||||
#include <kuser.h>
|
||||
#include <krandomsequence.h>
|
||||
#include <kprocess.h>
|
||||
|
||||
// local
|
||||
#include "commandengine.h"
|
||||
|
||||
TQString CommandEngine::datetime(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(arg);
|
||||
if(opt == "iso")
|
||||
return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::ISODate);
|
||||
if(opt == "local")
|
||||
return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::LocalDate);
|
||||
return TQString();
|
||||
}
|
||||
|
||||
TQString CommandEngine::user(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(arg);
|
||||
KUser u;
|
||||
if(opt == "uid")
|
||||
return TQString::number(u.uid(),10);
|
||||
if(opt == "gid")
|
||||
return TQString::number(u.gid(),10);
|
||||
if(opt == "loginname")
|
||||
return u.loginName();
|
||||
if(opt == "fullname")
|
||||
return u.fullName();
|
||||
if(opt == "homedir")
|
||||
return u.homeDir();
|
||||
if(opt == "shell")
|
||||
return u.shell();
|
||||
return TQString();
|
||||
}
|
||||
|
||||
TQString CommandEngine::loadfile(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(arg);
|
||||
|
||||
TQFile f(opt);
|
||||
if(!f.open(IO_ReadOnly)) return TQString();
|
||||
|
||||
TQTextStream t(&f);
|
||||
|
||||
TQString s = t.read();
|
||||
|
||||
f.close();
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
TQString CommandEngine::empty(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(opt);
|
||||
Q_UNUSED(arg);
|
||||
return "";
|
||||
}
|
||||
|
||||
TQString CommandEngine::mathexp(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
/* We will use bc 1.06 by Philip A. Nelson <philnelson@acm.org> */
|
||||
//Q_UNUSED(opt);
|
||||
Q_UNUSED(arg);
|
||||
|
||||
TQString tempOpt = opt;
|
||||
tempOpt.replace("ln","l");
|
||||
tempOpt.replace("sin","s");
|
||||
tempOpt.replace("cos","c");
|
||||
tempOpt.replace("arctan","a");
|
||||
tempOpt.replace("exp","e");
|
||||
|
||||
TQString program = "var=("+tempOpt+");print var";
|
||||
TQString script = "echo '"+program+"' | bc -l;";
|
||||
|
||||
TDEProcess* proc = new TDEProcess();
|
||||
|
||||
proc->setUseShell(true);
|
||||
|
||||
*(proc) << script;
|
||||
|
||||
connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), this, TQT_SLOT(slotGetScriptOutput(TDEProcess*,char*,int)));
|
||||
connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), this, TQT_SLOT(slotGetScriptError(TDEProcess*,char*,int)));
|
||||
connect(proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcessExited(TDEProcess*)));
|
||||
|
||||
//Through slotGetScriptOutput, m_processOutput contains the result of the TDEProcess call
|
||||
if(!proc->start(TDEProcess::Block, TDEProcess::All))
|
||||
{
|
||||
return TQString();
|
||||
}
|
||||
else
|
||||
{
|
||||
proc->wait();
|
||||
}
|
||||
if(proc)
|
||||
delete proc;
|
||||
|
||||
TQString tempbuf = m_processOutput;
|
||||
m_processOutput = TQString();
|
||||
|
||||
return tempbuf;
|
||||
|
||||
}
|
||||
|
||||
TQString CommandEngine::random(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(arg);
|
||||
long seed;
|
||||
if(opt.isEmpty())
|
||||
{
|
||||
TQDateTime dt;
|
||||
seed = dt.toTime_t();
|
||||
}
|
||||
else
|
||||
seed = opt.toLong();
|
||||
|
||||
KRandomSequence seq(seed);
|
||||
return TQString::number(seq.getLong(1000000),10);
|
||||
}
|
||||
|
||||
TQString CommandEngine::stringmanip(const TQString& opt, const TQString& arg)
|
||||
{
|
||||
Q_UNUSED(opt);
|
||||
Q_UNUSED(arg);
|
||||
return "";
|
||||
}
|
||||
|
||||
TQString CommandEngine::variableValue(const TQString &variable)
|
||||
{
|
||||
TQString s = variable;
|
||||
|
||||
s.remove("[$").remove("$]").remove(" ");
|
||||
|
||||
if(s.contains(":") == 0)
|
||||
return variable;
|
||||
else
|
||||
{
|
||||
TQString leftValue = s.section(":",0,0),
|
||||
midValue = s.section(":",1,1),
|
||||
rightValue = s.section(":",2,2);
|
||||
|
||||
TQString opt = midValue;
|
||||
TQString arg = rightValue;
|
||||
|
||||
if(leftValue == "stringmanip")
|
||||
return stringmanip(opt, arg);
|
||||
if(leftValue == "datetime")
|
||||
return datetime(opt, arg);
|
||||
if(leftValue == "user")
|
||||
return user(opt, arg);
|
||||
if(leftValue == "loadfile")
|
||||
return loadfile(opt, arg);
|
||||
if(leftValue == "empty")
|
||||
return empty(opt, arg);
|
||||
if(leftValue == "mathexp")
|
||||
return mathexp(opt, arg);
|
||||
if(leftValue == "random")
|
||||
return random(opt, arg);
|
||||
|
||||
return variable;
|
||||
}
|
||||
}
|
||||
|
||||
//SLOTS
|
||||
void CommandEngine::slotGetScriptError(TDEProcess* proc, char* s, int i)
|
||||
{
|
||||
Q_UNUSED(proc);
|
||||
Q_UNUSED(proc);
|
||||
TQCString temp(s,i+1);
|
||||
if(temp.isEmpty() || temp == "\n") return;
|
||||
}
|
||||
|
||||
void CommandEngine::slotGetScriptOutput(TDEProcess* proc, char* s, int i)
|
||||
{
|
||||
Q_UNUSED(proc);
|
||||
TQCString temp(s,i+1);
|
||||
|
||||
if(temp.isEmpty() || temp == "\n") return;
|
||||
|
||||
m_processOutput += TQString::fromLocal8Bit(temp);
|
||||
}
|
||||
|
||||
void CommandEngine::slotProcessExited(TDEProcess* proc)
|
||||
{
|
||||
Q_UNUSED(proc);
|
||||
}
|
||||
|
||||
#include "commandengine.moc"
|
@ -1,58 +0,0 @@
|
||||
/***************************************************************************
|
||||
commandengine.h - kfr commands feature class
|
||||
-------------------
|
||||
begin : fri aug 13 15:29:46 CEST 2004
|
||||
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : emi_barbarossa@yahoo.it
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef COMMANDENGINE_H
|
||||
#define COMMANDENGINE_H
|
||||
|
||||
// QT
|
||||
class TQString;
|
||||
#include <tqobject.h>
|
||||
|
||||
//KDE
|
||||
class TDEProcess;
|
||||
|
||||
class CommandEngine : public TQObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
TQString m_processOutput;
|
||||
public:
|
||||
CommandEngine() {}
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
These functions implement the KFR commands
|
||||
*/
|
||||
TQString datetime(const TQString& opt, const TQString& arg);
|
||||
TQString user(const TQString& opt, const TQString& arg);
|
||||
TQString loadfile(const TQString& opt, const TQString& arg);
|
||||
TQString empty(const TQString& opt, const TQString& arg);
|
||||
TQString mathexp(const TQString& opt, const TQString& arg);
|
||||
TQString random(const TQString& opt, const TQString& arg);
|
||||
TQString stringmanip(const TQString& opt, const TQString& arg);
|
||||
TQString variableValue(const TQString &variable);
|
||||
|
||||
private slots:
|
||||
void slotGetScriptOutput(TDEProcess*,char*,int);
|
||||
void slotGetScriptError(TDEProcess*,char*,int);
|
||||
void slotProcessExited(TDEProcess*);
|
||||
};
|
||||
|
||||
#endif // COMMANDENGINE_H
|
@ -1,188 +0,0 @@
|
||||
/***************************************************************************
|
||||
configurationclasses.cpp - description
|
||||
-------------------
|
||||
begin : Sat Sep 11 2004
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : emi_barbarossa@yahoo.it
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
// QT
|
||||
|
||||
// KDE
|
||||
|
||||
// local
|
||||
#include "configurationclasses.h"
|
||||
#include "whatthis.h"
|
||||
|
||||
using namespace whatthisNameSpace;
|
||||
|
||||
//RCOptions Class
|
||||
RCOptions::RCOptions()
|
||||
{
|
||||
m_searchingOnlyMode = false;
|
||||
}
|
||||
|
||||
RCOptions& RCOptions::operator=(const RCOptions& ci)
|
||||
{
|
||||
//m_callResetActions = ci.m_callResetActions;
|
||||
|
||||
m_directories = ci.m_directories;
|
||||
m_filters = ci.m_filters;
|
||||
m_currentDirectory = ci.m_currentDirectory;
|
||||
m_minSize = ci.m_minSize;
|
||||
m_maxSize = ci.m_maxSize;
|
||||
|
||||
m_dateAccess = ci.m_dateAccess;
|
||||
m_minDate = ci.m_minDate;
|
||||
m_maxDate = ci.m_maxDate;
|
||||
|
||||
m_caseSensitive = ci.m_caseSensitive;
|
||||
m_recursive = ci.m_recursive;
|
||||
m_followSymLinks = ci.m_followSymLinks;
|
||||
m_allStringsMustBeFound = ci.m_allStringsMustBeFound;
|
||||
m_backup = ci.m_backup;
|
||||
m_backupExtension = ci.m_backupExtension;
|
||||
m_ignoreFiles = ci.m_ignoreFiles;
|
||||
m_regularExpressions = ci.m_regularExpressions;
|
||||
|
||||
m_variables = ci.m_variables;
|
||||
m_haltOnFirstOccur = ci.m_haltOnFirstOccur;
|
||||
m_ignoreHidden = ci.m_ignoreHidden;
|
||||
m_simulation = ci.m_simulation;
|
||||
m_searchingOnlyMode = ci.m_searchingOnlyMode;
|
||||
|
||||
m_ownerUserIsChecked = ci.m_ownerUserIsChecked;
|
||||
m_ownerGroupIsChecked = ci.m_ownerGroupIsChecked;
|
||||
|
||||
m_ownerUserBool = ci.m_ownerUserBool;
|
||||
m_ownerGroupBool = ci.m_ownerGroupBool;
|
||||
|
||||
m_ownerUserType = ci.m_ownerUserType;
|
||||
m_ownerGroupType = ci.m_ownerGroupType;
|
||||
|
||||
m_ownerUserValue = ci.m_ownerUserValue;
|
||||
m_ownerGroupValue = ci.m_ownerGroupValue;
|
||||
|
||||
m_mapStringsView = ci.m_mapStringsView;
|
||||
|
||||
m_quickSearchString = ci.m_quickSearchString;
|
||||
m_quickReplaceString = ci.m_quickReplaceString;
|
||||
|
||||
m_recentStringFileList = ci.m_recentStringFileList;
|
||||
|
||||
m_notifyOnErrors = ci.m_notifyOnErrors;
|
||||
|
||||
return (*this);
|
||||
}
|
||||
|
||||
//ResultViewEntry Class
|
||||
ResultViewEntry::ResultViewEntry(TQString nkey, TQString ndata, bool regexp, bool caseSensitive)
|
||||
{
|
||||
m_caseSensitive = caseSensitive;
|
||||
m_regexp = regexp;
|
||||
|
||||
if(regexp)
|
||||
{
|
||||
m_rxKey = TQRegExp("("+nkey+")", caseSensitive, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_key = nkey;
|
||||
}
|
||||
m_data = ndata;
|
||||
m_matchedStringsOccurrence = 0;
|
||||
m_pos = 0;
|
||||
}
|
||||
|
||||
int ResultViewEntry::lineNumber(const TQString& line) const
|
||||
{
|
||||
return line.mid(0,m_pos).contains('\n')+1;
|
||||
}
|
||||
|
||||
int ResultViewEntry::columnNumber(const TQString& line) const
|
||||
{
|
||||
return(m_pos - line.findRev('\n',m_pos));
|
||||
}
|
||||
|
||||
void ResultViewEntry::incOccurrences()
|
||||
{
|
||||
m_matchedStringsOccurrence++;
|
||||
}
|
||||
|
||||
int ResultViewEntry::occurrences() const
|
||||
{
|
||||
return m_matchedStringsOccurrence;
|
||||
}
|
||||
|
||||
bool ResultViewEntry::regexp()const
|
||||
{
|
||||
return m_regexp;
|
||||
}
|
||||
|
||||
int ResultViewEntry::pos(const TQString& line)
|
||||
{
|
||||
if(m_regexp)
|
||||
m_pos = m_rxKey.search(line,m_pos);
|
||||
else
|
||||
m_pos = line.find(m_key, m_pos, m_caseSensitive);
|
||||
|
||||
return m_pos;
|
||||
}
|
||||
|
||||
void ResultViewEntry::incPos()
|
||||
{
|
||||
int kl = keyLength(),
|
||||
dl = dataLength();
|
||||
|
||||
if(kl < dl)
|
||||
m_pos += kl;
|
||||
else
|
||||
m_pos += dl;
|
||||
|
||||
}
|
||||
|
||||
TQString ResultViewEntry::capturedText(const TQString& line)
|
||||
{
|
||||
TQString cap;
|
||||
|
||||
if(m_regexp)
|
||||
cap = m_rxKey.cap(1);
|
||||
else
|
||||
cap =line.mid(m_pos,m_key.length());
|
||||
|
||||
return cap;
|
||||
}
|
||||
|
||||
TQString ResultViewEntry::message(const TQString& capturedText, int x, int y) const
|
||||
{
|
||||
TQString data = m_data;
|
||||
//return i18n(" captured text \"%1\" replaced with \"%2\" at line: %3, column: %4 ").arg(capturedText).arg(data).arg(TQString::number(x,10)).arg(TQString::number(y,10));
|
||||
return i18n(" Line:%3,Col:%4 - \"%1\" -> \"%2\"").arg(capturedText).arg(data).arg(TQString::number(x,10)).arg(TQString::number(y,10));
|
||||
}
|
||||
|
||||
int ResultViewEntry::keyLength() const
|
||||
{
|
||||
if(m_regexp)
|
||||
return m_rxKey.matchedLength();
|
||||
else
|
||||
return m_key.length();
|
||||
}
|
||||
|
||||
int ResultViewEntry::dataLength() const
|
||||
{
|
||||
return m_data.length();
|
||||
}
|
||||
|
||||
void ResultViewEntry::updateLine(TQString& line)
|
||||
{
|
||||
line.insert(m_pos, m_data);
|
||||
line.remove(m_pos + dataLength(), keyLength());
|
||||
}
|
@ -1,165 +0,0 @@
|
||||
/***************************************************************************
|
||||
configurationclasses.h - description
|
||||
-------------------
|
||||
begin : Sat Apr 17 2004
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : <emi_barbarossa@yahoo.it>
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
#ifndef CONFIGURATIONCLASSES_H
|
||||
#define CONFIGURATIONCLASSES_H
|
||||
|
||||
// QT
|
||||
#include <tqstring.h>
|
||||
#include <tqstringlist.h>
|
||||
#include <tqdatetime.h>
|
||||
#include <tqmap.h>
|
||||
#include <tqregexp.h>
|
||||
|
||||
typedef TQMap<TQString,TQString> KeyValueMap;
|
||||
// entry strings in the tdefilereplacerc file
|
||||
const TQString rcDirectoriesList = "Directories list";
|
||||
const TQString rcFiltersList = "Filters list";
|
||||
const TQString rcRecentFiles = "Recent files";
|
||||
const TQString rcAllStringsMustBeFound = "All strings must be found";
|
||||
const TQString rcEncoding = "Encoding";
|
||||
const TQString rcCaseSensitive = "Case sensitive";
|
||||
const TQString rcConfirmStrings = "Confirm strings";
|
||||
const TQString rcConfirmFiles = "Confirm files";
|
||||
const TQString rcConfirmDirs = "Confirm directories";
|
||||
const TQString rcFollowSymLinks = "Follow symbolic links";
|
||||
const TQString rcHaltOnFirstOccur = "Halt on first occurrence";
|
||||
const TQString rcIgnoreHidden = "Ignore hidden files";
|
||||
const TQString rcRecursive = "Search/replace in sub folders";
|
||||
const TQString rcVariables = "Enable variables";
|
||||
const TQString rcRegularExpressions = "Enable regular expressions";
|
||||
const TQString rcMinFileSize = "Minimum file size";
|
||||
const TQString rcMaxFileSize = "Maximum file size";
|
||||
const TQString rcValidAccessDate = "Access mode";
|
||||
const TQString rcMinDate = "Minimum access date";
|
||||
const TQString rcMaxDate = "Maximum access date";
|
||||
const TQString rcOwnerUser = "Owner user filters";
|
||||
const TQString rcOwnerGroup = "Owner group filters";
|
||||
const TQString rcSearchMode = "Search only mode";
|
||||
const TQString rcBackupExtension = "Backup file extension";
|
||||
const TQString rcIgnoreFiles = "Ignore files if there is no match";
|
||||
const TQString rcNotifyOnErrors = "NotifyOnErrors";
|
||||
const TQString rcAskConfirmReplace = "Ask confirmation on replace";
|
||||
const TQString rcDontAskAgain = "Dont ask again";
|
||||
// Default configuration options
|
||||
const TQString EncodingOption = "utf8";
|
||||
const bool RecursiveOption = true;
|
||||
const bool CaseSensitiveOption = false;
|
||||
const bool FollowSymbolicLinksOption = false;
|
||||
const bool RegularExpressionsOption = false;
|
||||
const bool VariablesOption = false;
|
||||
const bool StopWhenFirstOccurenceOption = false;
|
||||
const bool IgnoreHiddenOption = false;
|
||||
const int FileSizeOption = -1;
|
||||
const TQString AccessDateOption="unknown";
|
||||
const TQString ValidAccessDateOption="unknown";
|
||||
const TQString OwnerOption="false,Name,Equals To";
|
||||
const bool SearchModeOption=true;
|
||||
const TQString BackupExtensionOption="false,~";
|
||||
const bool IgnoreFilesOption = true;
|
||||
const bool NotifyOnErrorsOption = false;
|
||||
const bool AskConfirmReplaceOption = false;
|
||||
|
||||
// This class store configuration informations
|
||||
class RCOptions
|
||||
{
|
||||
public:
|
||||
bool m_callResetActions;
|
||||
|
||||
bool m_askConfirmReplace,
|
||||
m_dontAskAgain;
|
||||
|
||||
TQStringList m_directories;
|
||||
TQStringList m_filters;
|
||||
TQString m_currentDirectory;
|
||||
|
||||
int m_minSize,
|
||||
m_maxSize;
|
||||
|
||||
TQString m_dateAccess,
|
||||
m_minDate,
|
||||
m_maxDate;
|
||||
|
||||
TQString m_encoding;
|
||||
|
||||
bool m_caseSensitive,
|
||||
m_recursive,
|
||||
m_followSymLinks,
|
||||
m_allStringsMustBeFound,
|
||||
m_backup,
|
||||
m_regularExpressions;
|
||||
|
||||
bool m_variables,
|
||||
m_haltOnFirstOccur,
|
||||
m_ignoreHidden,
|
||||
m_simulation,
|
||||
m_searchingOnlyMode;
|
||||
|
||||
bool m_ownerUserIsChecked,
|
||||
m_ownerGroupIsChecked;
|
||||
|
||||
TQString m_ownerUserType,
|
||||
m_ownerGroupType,
|
||||
m_ownerUserValue,
|
||||
m_ownerGroupValue,
|
||||
m_ownerUserBool,
|
||||
m_ownerGroupBool;
|
||||
|
||||
TQString m_backupExtension;
|
||||
|
||||
bool m_ignoreFiles;
|
||||
|
||||
KeyValueMap m_mapStringsView;
|
||||
|
||||
TQString m_quickSearchString,
|
||||
m_quickReplaceString;
|
||||
|
||||
TQStringList m_recentStringFileList;
|
||||
|
||||
bool m_notifyOnErrors;
|
||||
|
||||
public:
|
||||
RCOptions();
|
||||
RCOptions& operator=(const RCOptions& ci);
|
||||
};
|
||||
|
||||
class ResultViewEntry
|
||||
{
|
||||
private:
|
||||
TQString m_key;
|
||||
TQString m_data;
|
||||
TQRegExp m_rxKey;
|
||||
bool m_regexp;
|
||||
bool m_caseSensitive;
|
||||
int m_pos;
|
||||
int m_matchedStringsOccurrence;
|
||||
|
||||
public:
|
||||
ResultViewEntry(TQString nkey, TQString ndata, bool regexp, bool caseSensitive);
|
||||
int lineNumber(const TQString& line) const ;
|
||||
int columnNumber(const TQString& line) const ;
|
||||
void incOccurrences();
|
||||
int occurrences() const ;
|
||||
bool regexp()const ;
|
||||
int pos(const TQString& line) ;
|
||||
void incPos();
|
||||
TQString capturedText(const TQString& line) ;
|
||||
TQString message(const TQString& capturedText, int x, int y) const;
|
||||
int keyLength() const;
|
||||
int dataLength() const;
|
||||
void updateLine(TQString& line);
|
||||
};
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
#MIN_CONFIG
|
||||
|
||||
AM_INIT_AUTOMAKE(tdefilereplace, 0.8.0)
|
||||
|
||||
dnl These are common macros that you might or might not want to use
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
||||
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h stdlib.h paths.h)
|
||||
AC_CHECK_FUNCS(usleep)
|
Before Width: | Height: | Size: 999 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
@ -1,76 +0,0 @@
|
||||
/***************************************************************************
|
||||
KAddStringDlg.h - description
|
||||
-------------------
|
||||
begin : Sat Oct 16 1999
|
||||
copyright : (C) 1999 by François Dupoux
|
||||
(C) 2004 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
email : dupoux@dupoux.com
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef KADDSTRINGDLG_H
|
||||
#define KADDSTRINGDLG_H
|
||||
|
||||
// local
|
||||
#include "kaddstringdlgs.h"
|
||||
#include "configurationclasses.h"
|
||||
/**
|
||||
* This is the dialog used to add a list of searching/replacing strings
|
||||
*/
|
||||
class KAddStringDlg : public KAddStringDlgS
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
RCOptions* m_option;
|
||||
TQListView* m_sv;
|
||||
KeyValueMap m_currentMap;
|
||||
bool m_wantEdit;
|
||||
|
||||
public: //Constructors
|
||||
KAddStringDlg(RCOptions* info, bool wantEdit, TQWidget *parent=0, const char *name=0);
|
||||
|
||||
private slots:
|
||||
void slotOK();
|
||||
void slotSearchOnly();
|
||||
void slotSearchReplace();
|
||||
void slotAddStringToView();
|
||||
void slotDeleteStringFromView();
|
||||
void slotHelp();
|
||||
|
||||
private:
|
||||
/**
|
||||
* inits... the GUI :-)
|
||||
*/
|
||||
void initGUI();
|
||||
/**
|
||||
* Deletes all the items of the view
|
||||
*/
|
||||
void eraseViewItems();
|
||||
/**
|
||||
* Deletes all the items of the map
|
||||
*/
|
||||
void clearMap() { KeyValueMap m; m_option->m_mapStringsView = m; }
|
||||
/**
|
||||
* The view is actually a stack widget that contains two different views widget
|
||||
*/
|
||||
void raiseView();
|
||||
/**
|
||||
* Verifies whether 'lv' contains 's'
|
||||
*/
|
||||
bool columnContains(TQListView* lv,const TQString& s, int column);
|
||||
void saveViewContentIntoMap();
|
||||
void loadMapIntoView();
|
||||
void whatsThis();
|
||||
};
|
||||
|
||||
#endif // KADDSTRINGDLG_H
|
||||
|
@ -1,426 +0,0 @@
|
||||
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
|
||||
<class>KAddStringDlgS</class>
|
||||
<widget class="TQDialog">
|
||||
<property name="name">
|
||||
<cstring>KAddStringDlgS</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>586</width>
|
||||
<height>347</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="caption">
|
||||
<string>Insert Searching/Replacing Strings</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout14</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQButtonGroup">
|
||||
<property name="name">
|
||||
<cstring>bgChoose</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Choose String Adding Mode</string>
|
||||
</property>
|
||||
<property name="exclusive">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQRadioButton" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_rbSearchReplace</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search and replace mode</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQRadioButton" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_rbSearchOnly</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search only mode</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQFrame">
|
||||
<property name="name">
|
||||
<cstring>frame4</cstring>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>Raised</enum>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout11</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout13</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlSearch</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search for:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQTextEdit">
|
||||
<property name="name">
|
||||
<cstring>m_edSearch</cstring>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>PlainText</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout14</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlReplace</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Replace with:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQTextEdit">
|
||||
<property name="name">
|
||||
<cstring>m_edReplace</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>PlainText</enum>
|
||||
</property>
|
||||
<property name="autoFormatting">
|
||||
<set>AutoAll</set>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget" row="0" column="1">
|
||||
<property name="name">
|
||||
<cstring>layout16</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer8</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>90</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout15</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbDel</cstring>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>32767</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbAdd</cstring>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>32767</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer9</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>90</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQWidgetStack" row="0" column="2">
|
||||
<property name="name">
|
||||
<cstring>m_stack</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>7</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>0</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TQListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Search For</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_stringView_2</cstring>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="showSortIndicator">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>AllColumns</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TQListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Search For</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Replace With</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_stringView</cstring>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="showSortIndicator">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>AllColumns</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout2</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbHelp</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer1</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>90</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout1</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbOK</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbCancel</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>m_pbCancel</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>KAddStringDlgS</receiver>
|
||||
<slot>reject()</slot>
|
||||
</connection>
|
||||
</connections>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
@ -1,898 +0,0 @@
|
||||
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
||||
<class>KNewProjectDlgS</class>
|
||||
<widget class="TQDialog">
|
||||
<property name="name">
|
||||
<cstring>KNewProjectDlgS</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>568</width>
|
||||
<height>609</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="caption">
|
||||
<string>Search & Replace in Files</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="modal">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout28</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="KPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbHelp</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>1</vsizetype>
|
||||
<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>70</width>
|
||||
<height>32767</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer7</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbSearchNow</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search Now</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbSearchLater</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search Later</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KPushButton">
|
||||
<property name="name">
|
||||
<cstring>m_pbCancel</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>1</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>32767</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget class="TQTabWidget" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>tabWidget2</cstring>
|
||||
</property>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>tab</cstring>
|
||||
</property>
|
||||
<attribute name="title">
|
||||
<string>&General</string>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQGroupBox" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>groupBox5</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Startup Folder Options</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlFilter</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Filter:</string>
|
||||
</property>
|
||||
<property name="buddy" stdset="0">
|
||||
<cstring>cbFilter</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlLocation</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Location:</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>AutoText</enum>
|
||||
</property>
|
||||
<property name="buddy" stdset="0">
|
||||
<cstring>cbLocation</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="0" column="1">
|
||||
<property name="name">
|
||||
<cstring>m_cbLocation</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>20</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="insertionPolicy">
|
||||
<enum>AtTop</enum>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="whatsThis" stdset="0">
|
||||
<string>Insert a search path here. You can use the search path button.</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton" row="0" column="2">
|
||||
<property name="name">
|
||||
<cstring>m_pbLocation</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="1" column="1" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>m_cbFilter</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>20</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="insertionPolicy">
|
||||
<enum>AtTop</enum>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="whatsThis" stdset="0">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbIncludeSubfolders</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Include subfolders</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQGroupBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>groupBox6</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Search/Replace Strings</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLineEdit" row="0" column="1">
|
||||
<property name="name">
|
||||
<cstring>m_leSearch</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLineEdit" row="1" column="1">
|
||||
<property name="name">
|
||||
<cstring>m_leReplace</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlSearch</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Search:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlReplace</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Replace:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQGroupBox" row="2" column="0">
|
||||
<property name="name">
|
||||
<cstring>groupBox4</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>General Options</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbRegularExpressions</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable &regular expressions</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Do &backup copy instead of overwrite</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbCaseSensitive</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Case sensitive</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbEnableVariables</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable co&mmands in the replace string</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="5" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Backup copy suffix:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLineEdit" row="5" column="1" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>m_leBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="0" column="2">
|
||||
<property name="name">
|
||||
<cstring>m_cbEncoding</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>textLabel1</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Encoding of the files:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>tab</cstring>
|
||||
</property>
|
||||
<attribute name="title">
|
||||
<string>&Advanced</string>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQGroupBox" row="2" column="0">
|
||||
<property name="name">
|
||||
<cstring>gbOwnership</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Ownership Filtering</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQCheckBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbOwnerUser</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>User: </string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="0" column="1">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ID (Number)</string>
|
||||
</property>
|
||||
</item>
|
||||
<property name="name">
|
||||
<cstring>m_cbOwnerUserType</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="0" column="2">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Equals To</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Is Not</string>
|
||||
</property>
|
||||
</item>
|
||||
<property name="name">
|
||||
<cstring>m_cbOwnerUserBool</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="1" column="2">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Equals To</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Is Not</string>
|
||||
</property>
|
||||
</item>
|
||||
<property name="name">
|
||||
<cstring>m_cbOwnerGroupBool</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="1" column="1">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ID (Number)</string>
|
||||
</property>
|
||||
</item>
|
||||
<property name="name">
|
||||
<cstring>m_cbOwnerGroupType</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbOwnerGroup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Group:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KLineEdit" row="0" column="3">
|
||||
<property name="name">
|
||||
<cstring>m_edOwnerUser</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KLineEdit" row="1" column="3">
|
||||
<property name="name">
|
||||
<cstring>m_edOwnerGroup</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQGroupBox" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>gbAccessDate</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Access Date Filtering</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout8</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout18</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlDateValid</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dates valid for:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox">
|
||||
<property name="name">
|
||||
<cstring>m_chbDateMin</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Accessed after:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox">
|
||||
<property name="name">
|
||||
<cstring>m_chbDateMax</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Accessed before: </string>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout19</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="KComboBox">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Last Writing Access</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Last Reading Access</string>
|
||||
</property>
|
||||
</item>
|
||||
<property name="name">
|
||||
<cstring>m_cbDateValid</cstring>
|
||||
</property>
|
||||
<property name="sizeLimit">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="maxCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="duplicatesEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQDateEdit">
|
||||
<property name="name">
|
||||
<cstring>m_dedDateMin</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="date">
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="autoAdvance">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="maxValue">
|
||||
<date>
|
||||
<year>2100</year>
|
||||
<month>12</month>
|
||||
<day>31</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="minValue">
|
||||
<date>
|
||||
<year>1900</year>
|
||||
<month>12</month>
|
||||
<day>31</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQDateEdit">
|
||||
<property name="name">
|
||||
<cstring>m_dedDateMax</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="date">
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="autoAdvance">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="maxValue">
|
||||
<date>
|
||||
<year>2100</year>
|
||||
<month>12</month>
|
||||
<day>31</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="minValue">
|
||||
<date>
|
||||
<year>1900</year>
|
||||
<month>9</month>
|
||||
<day>14</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer3</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>190</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</hbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQGroupBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>gbSize</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Size Filtering</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout32</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout31</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQCheckBox">
|
||||
<property name="name">
|
||||
<cstring>m_chbSizeMin</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Minimum si&ze:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox">
|
||||
<property name="name">
|
||||
<cstring>m_chbSizeMax</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Maximum size:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout30</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQSpinBox">
|
||||
<property name="name">
|
||||
<cstring>m_spbSizeMin</cstring>
|
||||
</property>
|
||||
<property name="maxValue">
|
||||
<number>4000000</number>
|
||||
</property>
|
||||
<property name="minValue">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQSpinBox">
|
||||
<property name="name">
|
||||
<cstring>m_spbSizeMax</cstring>
|
||||
</property>
|
||||
<property name="maxValue">
|
||||
<number>4000000</number>
|
||||
</property>
|
||||
<property name="minValue">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout31</cstring>
|
||||
</property>
|
||||
<vbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlSizeMin</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>KB</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlSizeMax</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>KB</string>
|
||||
</property>
|
||||
</widget>
|
||||
</vbox>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer2</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>330</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</hbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>tabWidget2</tabstop>
|
||||
<tabstop>m_leSearch</tabstop>
|
||||
<tabstop>m_leReplace</tabstop>
|
||||
<tabstop>m_cbLocation</tabstop>
|
||||
<tabstop>m_pbLocation</tabstop>
|
||||
<tabstop>m_cbFilter</tabstop>
|
||||
<tabstop>m_chbIncludeSubfolders</tabstop>
|
||||
<tabstop>m_cbEncoding</tabstop>
|
||||
<tabstop>m_chbCaseSensitive</tabstop>
|
||||
<tabstop>m_chbRegularExpressions</tabstop>
|
||||
<tabstop>m_chbEnableVariables</tabstop>
|
||||
<tabstop>m_chbBackup</tabstop>
|
||||
<tabstop>m_leBackup</tabstop>
|
||||
<tabstop>m_pbSearchNow</tabstop>
|
||||
<tabstop>m_pbSearchLater</tabstop>
|
||||
<tabstop>m_pbCancel</tabstop>
|
||||
<tabstop>m_pbHelp</tabstop>
|
||||
<tabstop>m_chbSizeMin</tabstop>
|
||||
<tabstop>m_spbSizeMin</tabstop>
|
||||
<tabstop>m_chbSizeMax</tabstop>
|
||||
<tabstop>m_spbSizeMax</tabstop>
|
||||
<tabstop>m_cbDateValid</tabstop>
|
||||
<tabstop>m_chbDateMin</tabstop>
|
||||
<tabstop>m_chbDateMax</tabstop>
|
||||
<tabstop>m_chbOwnerUser</tabstop>
|
||||
<tabstop>m_cbOwnerUserType</tabstop>
|
||||
<tabstop>m_cbOwnerUserBool</tabstop>
|
||||
<tabstop>m_edOwnerUser</tabstop>
|
||||
<tabstop>m_chbOwnerGroup</tabstop>
|
||||
<tabstop>m_cbOwnerGroupType</tabstop>
|
||||
<tabstop>m_cbOwnerGroupBool</tabstop>
|
||||
<tabstop>m_edOwnerGroup</tabstop>
|
||||
<tabstop>m_dedDateMin</tabstop>
|
||||
<tabstop>m_dedDateMax</tabstop>
|
||||
</tabstops>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
@ -1,347 +0,0 @@
|
||||
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
||||
<class>KOptionsDlgS</class>
|
||||
<widget class="TQDialog">
|
||||
<property name="name">
|
||||
<cstring>KOptionsDlgS</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>572</width>
|
||||
<height>420</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="caption">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQTabWidget" row="0" column="0" rowspan="1" colspan="5">
|
||||
<property name="name">
|
||||
<cstring>tabWidget2</cstring>
|
||||
</property>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>tab1</cstring>
|
||||
</property>
|
||||
<attribute name="title">
|
||||
<string>General</string>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQGroupBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>groupBox7</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>General Options</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbVariables</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable commands in replace strings</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="7" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_tlBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Backup copy suffix:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLineEdit" row="7" column="1" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>m_leBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbNotifyOnErrors</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Notif&y on errors</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbCaseSensitive</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Case sensitive</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbRecursive</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Recursive (search/replace in all sub folders)</string>
|
||||
</property>
|
||||
<property name="accel">
|
||||
<string></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbRegularExpressions</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable regular e&xpressions</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="6" column="0" rowspan="1" colspan="3">
|
||||
<property name="name">
|
||||
<cstring>m_chbBackup</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Do &backup copy</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
|
||||
<property name="name">
|
||||
<cstring>textLabel1</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Encoding of the files:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KComboBox" row="0" column="2">
|
||||
<property name="name">
|
||||
<cstring>m_cbEncoding</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>Tab3</cstring>
|
||||
</property>
|
||||
<attribute name="title">
|
||||
<string>&Advanced</string>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQGroupBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>gbxConfirm</cstring>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Advanced Options</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQCheckBox" row="5" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbIgnoreHidden</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Ignore hidden files and folders</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="4" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbFollowSymLinks</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Follow s&ymbolic links</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="3" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbHaltOnFirstOccurrence</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>When searching, stop on first string found (faster but no details)</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="2" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbIgnoreFiles</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Do not show file if no strings are found or replaced</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout9</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer2</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQCheckBox">
|
||||
<property name="name">
|
||||
<cstring>m_chbShowConfirmDialog</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show confirmation dialog</string>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget class="TQCheckBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_chbConfirmStrings</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Confirm before replace each string</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="TQPushButton" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>m_pbHelp</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="1" column="1">
|
||||
<property name="name">
|
||||
<cstring>spacer1</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>202</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQPushButton" row="1" column="2">
|
||||
<property name="name">
|
||||
<cstring>m_pbDefault</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Default Values</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton" row="1" column="3">
|
||||
<property name="name">
|
||||
<cstring>m_pbOK</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQPushButton" row="1" column="4">
|
||||
<property name="name">
|
||||
<cstring>m_pbCancel</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>m_pbCancel</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>KOptionsDlgS</receiver>
|
||||
<slot>reject()</slot>
|
||||
</connection>
|
||||
</connections>
|
||||
<tabstops>
|
||||
<tabstop>tabWidget2</tabstop>
|
||||
<tabstop>m_cbEncoding</tabstop>
|
||||
<tabstop>m_chbCaseSensitive</tabstop>
|
||||
<tabstop>m_chbRecursive</tabstop>
|
||||
<tabstop>m_chbRegularExpressions</tabstop>
|
||||
<tabstop>m_chbVariables</tabstop>
|
||||
<tabstop>m_chbNotifyOnErrors</tabstop>
|
||||
<tabstop>m_chbBackup</tabstop>
|
||||
<tabstop>m_leBackup</tabstop>
|
||||
<tabstop>m_pbDefault</tabstop>
|
||||
<tabstop>m_pbOK</tabstop>
|
||||
<tabstop>m_pbCancel</tabstop>
|
||||
<tabstop>m_pbHelp</tabstop>
|
||||
<tabstop>m_chbConfirmStrings</tabstop>
|
||||
<tabstop>m_chbShowConfirmDialog</tabstop>
|
||||
<tabstop>m_chbIgnoreFiles</tabstop>
|
||||
<tabstop>m_chbHaltOnFirstOccurrence</tabstop>
|
||||
<tabstop>m_chbFollowSymLinks</tabstop>
|
||||
<tabstop>m_chbIgnoreHidden</tabstop>
|
||||
</tabstops>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
@ -1,77 +0,0 @@
|
||||
/***************************************************************************
|
||||
main.cpp - Main file for the TDEFileReplace shell
|
||||
-------------------
|
||||
begin : Thu Sep 16 14:14:09 2004
|
||||
copyright : (C) 2004 by Andras Mantia <amantia@kde.org>
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "tdefilereplace.h"
|
||||
|
||||
#include <tdeapplication.h>
|
||||
#include <tdeaboutdata.h>
|
||||
#include <tdecmdlineargs.h>
|
||||
#include <tdelocale.h>
|
||||
|
||||
static const char description[] =
|
||||
I18N_NOOP("Batch search and replace tool");
|
||||
|
||||
static const char version[] = "0.1";
|
||||
|
||||
static TDECmdLineOptions options[] =
|
||||
{
|
||||
{ "+[PATH]", I18N_NOOP( "Starting folder" ), 0 },
|
||||
TDECmdLineLastOption
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TDEAboutData about("tdefilereplace", I18N_NOOP("TDEFileReplace"), version, description,
|
||||
TDEAboutData::License_GPL_V2, "(C) 2004-2005 Andras Mantia\n(C) 2004-2005 Emiliano Gulmini\n(C) 1999-2002 Francois Dupoux", I18N_NOOP("Part of the KDEWebDev module."),
|
||||
"http://www.kdewebdev.org");
|
||||
|
||||
about.addAuthor("Andras Mantia", I18N_NOOP("Shell author, KPart creator, co-maintainer"), "amantia@kde.org");
|
||||
about.addAuthor("Emiliano Gulmini", I18N_NOOP("Current maintainer, code cleaner and rewriter"),"emi_barbarossa@yahoo.it");
|
||||
about.addAuthor("Francois Dupou",
|
||||
I18N_NOOP("Original author of the TDEFileReplace tool"),
|
||||
"dupoux@dupoux.com");
|
||||
|
||||
TDECmdLineArgs::init(argc, argv, &about);
|
||||
TDECmdLineArgs::addCmdLineOptions( options );
|
||||
|
||||
TDEApplication app;
|
||||
|
||||
// see if we are starting with session management
|
||||
if (app.isRestored())
|
||||
{
|
||||
RESTORE(TDEFileReplace);
|
||||
}
|
||||
else
|
||||
{
|
||||
// no session.. just start up normally
|
||||
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
||||
|
||||
TDEFileReplace *kfr = new TDEFileReplace;
|
||||
kfr->show();
|
||||
|
||||
if (args->count() == 0)
|
||||
{
|
||||
kfr->openURL(KURL());
|
||||
}
|
||||
else
|
||||
{
|
||||
kfr->openURL(args->url(0));
|
||||
}
|
||||
args->clear();
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
@ -1,282 +0,0 @@
|
||||
/***************************************************************************
|
||||
report.cpp - Report document class
|
||||
-------------------
|
||||
begin : fri aug 13 15:29:46 CEST 2004
|
||||
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : emi_barbarossa@yahoo.it
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
// QT
|
||||
#include <tqstring.h>
|
||||
#include <tqfile.h>
|
||||
|
||||
// KDE
|
||||
#include <tdelistview.h>
|
||||
#include <tdemessagebox.h>
|
||||
#include <kuser.h>
|
||||
|
||||
// local
|
||||
#include "report.h"
|
||||
#include "configurationclasses.h"
|
||||
|
||||
void Report::createReportFile()
|
||||
{
|
||||
TQString xmlFileName = m_docPath + ".xml",
|
||||
cssFileName = m_docPath + ".css";
|
||||
|
||||
// Generates a report file
|
||||
// a) Open the file
|
||||
TQFile report(xmlFileName);
|
||||
if (!report.open( IO_WriteOnly ))
|
||||
{
|
||||
KMessageBox::error(0, i18n("<qt>Cannot open the file <b>%1</b>.</qt>").arg(xmlFileName));
|
||||
return ;
|
||||
}
|
||||
|
||||
// b) Write the header of the XML file
|
||||
|
||||
TQDateTime datetime = TQDateTime::currentDateTime(Qt::LocalTime);
|
||||
TQString dateString = datetime.toString(Qt::LocalDate);
|
||||
KUser user;
|
||||
TQString columnTextFour,
|
||||
columnReplaceWith;
|
||||
if(!m_isSearchFlag)
|
||||
{
|
||||
columnTextFour = i18n("Replaced Strings");
|
||||
columnReplaceWith = i18n("Replace with");
|
||||
}
|
||||
else
|
||||
{
|
||||
columnTextFour = i18n("Total number occurrences");
|
||||
columnReplaceWith = i18n("-");
|
||||
}
|
||||
|
||||
TQString css = cssFileName.mid(cssFileName.findRev("/")+1,cssFileName.length()-(cssFileName.findRev("/")+1));
|
||||
TQTextStream oTStream( &report );
|
||||
oTStream << "<?xml version=\"1.0\"?>\n"
|
||||
"<?xml-stylesheet href=\""+css+"\" type=\"text/css\"?>"
|
||||
"<report>\n"
|
||||
" <title> "+i18n("TDEFileReplace Report")+" </title>\n"
|
||||
" <createdby>"+user.fullName()+"("+user.loginName()+")"+"</createdby>\n"
|
||||
" <date>"+dateString+"</date>\n"
|
||||
"<hr/>\n"
|
||||
" <table>\n"
|
||||
" <tablecaption> "+i18n("Searching/Replacing Strings Table")+" </tablecaption>\n"
|
||||
" <header>\n"
|
||||
" <row>\n"
|
||||
" <searchfor class=\"header\">"+i18n("Search for")+"</searchfor>\n";
|
||||
|
||||
if(!m_isSearchFlag)
|
||||
oTStream<< " <replacewith class=\"header\" >"+columnReplaceWith+"</replacewith>\n";
|
||||
|
||||
oTStream<< " </row>\n"
|
||||
" </header>\n";
|
||||
// c) Write the strings list
|
||||
TQListViewItem *lviCurItem,
|
||||
*lviFirst;
|
||||
|
||||
lviCurItem = lviFirst = m_stringsView->firstChild();
|
||||
|
||||
if(lviCurItem == 0)
|
||||
return ;
|
||||
|
||||
TQString rowType="a1";
|
||||
|
||||
do
|
||||
{ TQString rowTag = "<row >\n"
|
||||
" <searchfor class=\""+rowType+"\"><![CDATA["+lviCurItem->text(0)+"]]></searchfor>\n"
|
||||
" <replacewith class=\""+rowType+"\"><![CDATA["+lviCurItem->text(1)+"]]></replacewith>\n"
|
||||
"</row>\n";
|
||||
|
||||
oTStream << rowTag;
|
||||
|
||||
rowType = ((rowType == "a1") ? "a2" : "a1");
|
||||
|
||||
lviCurItem = lviCurItem->nextSibling();
|
||||
} while(lviCurItem && lviCurItem != lviFirst);
|
||||
|
||||
oTStream<< "</table>\n";
|
||||
|
||||
oTStream<< "<whiteline/>\n"
|
||||
" <table>\n"
|
||||
" <tablecaption> "+i18n("Results Table")+ " </tablecaption>"
|
||||
" <header>\n"
|
||||
" <row>\n"
|
||||
" <name class=\"header\">"+i18n("Name")+"</name>\n"
|
||||
" <folder class=\"header\">"+i18n("Folder")+"</folder>\n";
|
||||
if(m_isSearchFlag)
|
||||
{
|
||||
oTStream<< " <oldsize class=\"header\">"+i18n("Size")+"</oldsize>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
oTStream<< " <oldsize class=\"header\">"+i18n("Old Size")+"</oldsize>\n"
|
||||
" <newsize class=\"header\">"+i18n("New Size")+"</newsize>\n";
|
||||
}
|
||||
oTStream<< " <replacedstrings class=\"header\" >"+columnTextFour+"</replacedstrings>\n"
|
||||
" <owneruser class=\"header\">"+i18n("Owner User")+"</owneruser>\n"
|
||||
" <ownergroup class=\"header\">"+i18n("Owner Group")+"</ownergroup>\n"
|
||||
" </row>\n"
|
||||
" </header>\n";
|
||||
|
||||
// d) Write the result list
|
||||
|
||||
lviCurItem = lviFirst = m_resultsView->firstChild();
|
||||
|
||||
if(lviCurItem == 0)
|
||||
return ;
|
||||
|
||||
unsigned int totalOccurrences = 0;
|
||||
|
||||
rowType="a1";
|
||||
|
||||
do
|
||||
{ TQString rowTag = " <row >\n"
|
||||
" <name class=\""+rowType+"\"><![CDATA["+lviCurItem->text(0)+"]]></name>\n"
|
||||
" <folder class=\""+rowType+"\"><![CDATA["+lviCurItem->text(1)+"]]></folder>\n";
|
||||
if(m_isSearchFlag)
|
||||
{
|
||||
rowTag += " <oldsize class=\""+rowType+"\"><![CDATA["+lviCurItem->text(2)+"]]></oldsize>\n"
|
||||
" <replacedstrings class=\""+rowType+"\"><![CDATA["+lviCurItem->text(3)+"]]></replacedstrings>\n"
|
||||
" <owneruser class=\""+rowType+"\"><![CDATA["+lviCurItem->text(4)+"]]></owneruser>\n"
|
||||
" <ownergroup class=\""+rowType+"\"><![CDATA["+lviCurItem->text(5)+"]]></ownergroup>\n"
|
||||
" </row>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
rowTag += " <oldsize class=\""+rowType+"\"><![CDATA["+lviCurItem->text(2)+"]]></oldsize>\n"
|
||||
" <newsize class=\""+rowType+"\"><![CDATA["+lviCurItem->text(3)+"]]></newsize>\n"
|
||||
" <replacedstrings class=\""+rowType+"\"><![CDATA["+lviCurItem->text(4)+"]]></replacedstrings>\n"
|
||||
" <owneruser class=\""+rowType+"\"><![CDATA["+lviCurItem->text(5)+"]]></owneruser>\n"
|
||||
" <ownergroup class=\""+rowType+"\"><![CDATA["+lviCurItem->text(6)+"]]></ownergroup>\n"
|
||||
" </row>\n";
|
||||
}
|
||||
|
||||
oTStream << rowTag;
|
||||
|
||||
rowType = ((rowType == "a1") ? "a2" : "a1");
|
||||
|
||||
if(m_isSearchFlag)
|
||||
totalOccurrences += lviCurItem->text(3).toInt();
|
||||
else
|
||||
totalOccurrences += lviCurItem->text(4).toInt();
|
||||
|
||||
lviCurItem = lviCurItem->nextSibling();
|
||||
} while(lviCurItem && lviCurItem != lviFirst);
|
||||
|
||||
|
||||
// e) Write the end of the file
|
||||
|
||||
oTStream<< " </table>\n"
|
||||
"<totaloccurrences>"
|
||||
<< totalOccurrences
|
||||
<< "</totaloccurrences>\n"
|
||||
"</report>\n";
|
||||
|
||||
report.close();
|
||||
}
|
||||
|
||||
void Report::createStyleSheet()
|
||||
{
|
||||
TQString cssFileName = m_docPath +".css";
|
||||
TQFile styleSheet(cssFileName);
|
||||
if (!styleSheet.open( IO_WriteOnly ))
|
||||
{
|
||||
KMessageBox::error(0, i18n("<qt>Cannot open the file <b>%1</b>.</qt>").arg(cssFileName));
|
||||
return ;
|
||||
}
|
||||
|
||||
TQTextStream oTStream( &styleSheet );
|
||||
|
||||
TQString css = "title { display:block;font:40px bold sans-serif; }\n\n"
|
||||
"createdby:before { content :\""+i18n("Created by")+": \"; }\n"
|
||||
"createdby { display:inline; }\n\n"
|
||||
"date:before { content :\"-"+i18n("date")+": \"; }\n"
|
||||
"date { display:inline; }\n\n"
|
||||
"totaloccurrences:before { content :\""+i18n("Total occurrences")+": \"; }\n"
|
||||
"totaloccurrences { display:block;text-align:right; font-weight:bold;margin-top:5px;margin-right:5px;}\n"
|
||||
"tablecaption {display:table-caption;font:20px bold sans-serif;}\n\n"
|
||||
"hr {display:block;background:black;height:1px;margin:5px 0px 5px;}\n"
|
||||
"whiteline {display:block;height:16px;}\n\n"
|
||||
"searchfor {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n";
|
||||
|
||||
if(!m_isSearchFlag)
|
||||
{
|
||||
css += "replacewith {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n";
|
||||
}
|
||||
|
||||
css += "folder {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n"
|
||||
"header { display: table-header-group; }\n\n"
|
||||
"name {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n"
|
||||
"newsize {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0;\n"
|
||||
" text-align:right; }\n\n"
|
||||
"oldsize {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0;\n"
|
||||
" text-align:right; }\n\n"
|
||||
"ownergroup {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n"
|
||||
"owneruser {\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n"
|
||||
"replacedstrings {\n"
|
||||
" text-align:right;\n"
|
||||
" display:table-cell;\n"
|
||||
" border:1px solid black;\n"
|
||||
" padding:0 7px 0; }\n\n"
|
||||
"*[class~=header] {\n"
|
||||
" background : lightgray;\n"
|
||||
" text-align : center; }\n\n"
|
||||
"row { display : table-row; }\n\n"
|
||||
"table {\n"
|
||||
" display:table;\n"
|
||||
" border-collapse: collapse; }\n\n"
|
||||
"*[class~=a1] {\n"
|
||||
" background-color:aliceblue;\n"
|
||||
" font-weight : bold;font-size:15px; }\n\n"
|
||||
"*[class~=a2] {\n"
|
||||
" background-color:khaki;\n"
|
||||
" font-weight : bold;\n"
|
||||
" font-size:15px; }\n\n";
|
||||
|
||||
oTStream << css;
|
||||
|
||||
styleSheet.close();
|
||||
}
|
||||
|
||||
void Report::createDocument(const TQString& docPath)
|
||||
{
|
||||
m_docPath = docPath;
|
||||
|
||||
createStyleSheet();
|
||||
createReportFile();
|
||||
}
|
||||
|
@ -1,58 +0,0 @@
|
||||
/***************************************************************************
|
||||
report.h - Report document class
|
||||
-------------------
|
||||
begin : fri aug 13 15:29:46 CEST 2004
|
||||
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : emi_barbarossa@yahoo.it
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef REPORT_H
|
||||
#define REPORT_H
|
||||
|
||||
// QT
|
||||
class TQString;
|
||||
|
||||
// KDE
|
||||
#include <tdelocale.h>
|
||||
#include "configurationclasses.h"
|
||||
class TDEListView;
|
||||
|
||||
/** Report class is used to create a pair of files (a xml and a css file) which are
|
||||
* a short statistical report of the operations.
|
||||
*/
|
||||
|
||||
class Report
|
||||
{
|
||||
private:
|
||||
TDEListView* m_stringsView,
|
||||
* m_resultsView;
|
||||
TQString m_docPath;
|
||||
bool m_isSearchFlag;
|
||||
RCOptions* m_option;
|
||||
|
||||
public:
|
||||
Report(RCOptions* info, TDEListView* rv, TDEListView* sv) { m_option = info;
|
||||
m_resultsView = rv;
|
||||
m_stringsView = sv;
|
||||
m_isSearchFlag = m_option->m_searchingOnlyMode;
|
||||
}
|
||||
~Report() { m_option = 0; }
|
||||
private:
|
||||
void createReportFile();
|
||||
void createStyleSheet();
|
||||
|
||||
public:
|
||||
void createDocument(const TQString& docPath);
|
||||
};
|
||||
|
||||
#endif // REPORT_H
|
@ -1,111 +0,0 @@
|
||||
/***************************************************************************
|
||||
tdefilereplace.cpp - TDEFileReplace shell implementation
|
||||
-------------------
|
||||
begin : Thu Sep 16 14:14:09 2004
|
||||
copyright : (C) 2004 by Andras Mantia <amantia@kde.org>
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
//kde includes
|
||||
#include <kedittoolbar.h>
|
||||
#include <klibloader.h>
|
||||
#include <tdelocale.h>
|
||||
#include <kkeydialog.h>
|
||||
#include <tdemessagebox.h>
|
||||
|
||||
//app includes
|
||||
#include "tdefilereplace.h"
|
||||
|
||||
TDEFileReplace::TDEFileReplace()
|
||||
: KParts::MainWindow(0L, "TDEFileReplace")
|
||||
{
|
||||
KLibFactory *factory = KLibLoader::self()->factory("libtdefilereplacepart");
|
||||
if (factory)
|
||||
{
|
||||
m_part = static_cast<KParts::ReadOnlyPart *>(factory->create(TQT_TQOBJECT(this),
|
||||
"tdefilereplace_part", "KParts::ReadOnlyPart" ));
|
||||
|
||||
if (m_part)
|
||||
{
|
||||
setCentralWidget(m_part->widget());
|
||||
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
|
||||
KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotConfigureKeys()), actionCollection());
|
||||
KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotConfigureToolbars()), actionCollection());
|
||||
setStandardToolBarMenuEnabled(true);
|
||||
createGUI(m_part);
|
||||
removeDuplicatedActions();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
KMessageBox::error(this, i18n("Could not find the TDEFileReplace part."));
|
||||
close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
TDEFileReplace::~TDEFileReplace()
|
||||
{
|
||||
}
|
||||
|
||||
void TDEFileReplace::openURL(const KURL &url)
|
||||
{
|
||||
m_part->openURL(url);
|
||||
}
|
||||
|
||||
void TDEFileReplace::slotConfigureKeys()
|
||||
{
|
||||
KKeyDialog dlg( false, this );
|
||||
TQPtrList<KXMLGUIClient> clients = guiFactory()->clients();
|
||||
for( TQPtrListIterator<KXMLGUIClient> it( clients );
|
||||
it.current(); ++it )
|
||||
{
|
||||
dlg.insert( (*it)->actionCollection() );
|
||||
}
|
||||
dlg.configure();
|
||||
}
|
||||
|
||||
void TDEFileReplace::slotConfigureToolbars()
|
||||
{
|
||||
saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
|
||||
KEditToolbar dlg(factory());
|
||||
connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
|
||||
this, TQT_SLOT(applyNewToolbarConfig()));
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
void TDEFileReplace::applyNewToolbarConfig()
|
||||
{
|
||||
applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
|
||||
}
|
||||
|
||||
|
||||
void TDEFileReplace::removeDuplicatedActions()
|
||||
{
|
||||
TDEActionCollection* part_action_collection = m_part->actionCollection();
|
||||
TDEAction* part_about_action = part_action_collection->action("help_about_tdefilereplace");
|
||||
TDEAction* part_report_action = part_action_collection->action("report_bug");
|
||||
TDEAction* part_help_action= part_action_collection->action("help_tdefilereplace");
|
||||
|
||||
if (!part_about_action || !part_report_action || !part_help_action || !part_action_collection)
|
||||
return;
|
||||
|
||||
TQWidget* container = part_about_action->container(0);
|
||||
part_about_action->unplug(container);
|
||||
part_report_action->unplug(container);
|
||||
part_help_action->unplug(container);
|
||||
part_action_collection->remove(part_about_action);
|
||||
part_action_collection->remove(part_report_action);
|
||||
part_action_collection->remove(part_help_action);
|
||||
}
|
||||
|
||||
#include "tdefilereplace.moc"
|
@ -1,46 +0,0 @@
|
||||
/***************************************************************************
|
||||
tdefilereplace.h - TDEFileReplace header
|
||||
-------------------
|
||||
begin : Thu Sep 16 14:14:09 2004
|
||||
copyright : (C) 2004 by Andras Mantia <amantia@kde.org>
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
#ifndef TDEFILEREPLACE_H
|
||||
#define TDEFILEREPLACE_H
|
||||
|
||||
#include <tdeparts/mainwindow.h>
|
||||
|
||||
/**
|
||||
Shell application for the TDEFileReplace part.
|
||||
|
||||
@author Andras Mantia
|
||||
*/
|
||||
class TDEFileReplace : public KParts::MainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TDEFileReplace();
|
||||
~TDEFileReplace();
|
||||
void openURL(const KURL &url);
|
||||
|
||||
private slots:
|
||||
void slotConfigureKeys();
|
||||
void slotConfigureToolbars();
|
||||
void applyNewToolbarConfig();
|
||||
|
||||
private:
|
||||
void removeDuplicatedActions();
|
||||
|
||||
KParts::ReadOnlyPart *m_part;
|
||||
};
|
||||
|
||||
#endif
|
@ -1,190 +0,0 @@
|
||||
<?xml version = '1.0'?>
|
||||
<tdevelop>
|
||||
<general>
|
||||
<author/>
|
||||
<email/>
|
||||
<version>$VERSION$</version>
|
||||
<projectmanagement>KDevKDEAutoProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
<keyword>KDE</keyword>
|
||||
</keywords>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<ignoreparts/>
|
||||
<secondaryLanguages/>
|
||||
<versioncontrol>tdevcvsservice</versioncontrol>
|
||||
</general>
|
||||
<tdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*.po;*.ts" name="Translations" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<showvcsfields>false</showvcsfields>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
</tree>
|
||||
</tdevfileview>
|
||||
<tdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>ada</toc>
|
||||
<toc>ada_bugs_gcc</toc>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoreqt_xml>
|
||||
<toc>qmake User Guide</toc>
|
||||
</ignoreqt_xml>
|
||||
</tdevdoctreeview>
|
||||
<tdevdebugger>
|
||||
<general>
|
||||
<dbgshell>libtool</dbgshell>
|
||||
<programargs/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</tdevdebugger>
|
||||
<tdevfilecreate>
|
||||
<filetypes/>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
</useglobaltypes>
|
||||
</tdevfilecreate>
|
||||
<tdevautoproject>
|
||||
<make>
|
||||
<envvars>
|
||||
<envvar value="1" name="WANT_AUTOCONF_2_5" />
|
||||
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
|
||||
</envvars>
|
||||
<abortonerror>true</abortonerror>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
</make>
|
||||
<run>
|
||||
<directoryradio>build</directoryradio>
|
||||
<customdirectory>/</customdirectory>
|
||||
<mainprogram>tdefilereplace/tdefilereplace</mainprogram>
|
||||
<programargs/>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>true</autocompile>
|
||||
<envvars/>
|
||||
</run>
|
||||
<general>
|
||||
<useconfiguration>default</useconfiguration>
|
||||
<activetarget>tdefilereplace</activetarget>
|
||||
</general>
|
||||
<configurations>
|
||||
<default>
|
||||
<envvars>
|
||||
<envvar value="kommander klinkstatus kxsldbg kimagemapeditor quanta" name="DO_NOT_COMPILE" />
|
||||
</envvars>
|
||||
<configargs>--enable-debug=full --prefix=/opt/trinity --enable-editors</configargs>
|
||||
<builddir>/home/andris/development/build/kde-head/tdewebdev</builddir>
|
||||
<topsourcedir>/home/andris/development/sources/kde-head/tdewebdev</topsourcedir>
|
||||
<cppflags>-DKDE_NO_COMPAT -DQT_NO_COMPAT -DDEBUG_PARSER</cppflags>
|
||||
<ldflags/>
|
||||
<ccompiler>tdevgccoptions</ccompiler>
|
||||
<cxxcompiler>tdevgppoptions</cxxcompiler>
|
||||
<f77compiler>tdevpgf77options</f77compiler>
|
||||
<ccompilerbinary/>
|
||||
<cxxcompilerbinary/>
|
||||
<f77compilerbinary/>
|
||||
<cflags/>
|
||||
<cxxflags/>
|
||||
<f77flags/>
|
||||
</default>
|
||||
</configurations>
|
||||
</tdevautoproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
<tdevcppsupport>
|
||||
<codecompletion>
|
||||
<includeGlobalFunctions>true</includeGlobalFunctions>
|
||||
<includeTypes>true</includeTypes>
|
||||
<includeEnums>true</includeEnums>
|
||||
<includeTypedefs>false</includeTypedefs>
|
||||
<automaticCodeCompletion>true</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
</codecompletion>
|
||||
<references/>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
</tdevcppsupport>
|
||||
<tdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem/>
|
||||
<docurl/>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</tdevdocumentation>
|
||||
<tdevcvsservice>
|
||||
<recursivewhenupdate>true</recursivewhenupdate>
|
||||
<prunedirswhenupdate>true</prunedirswhenupdate>
|
||||
<createdirswhenupdate>true</createdirswhenupdate>
|
||||
<recursivewhencommitremove>true</recursivewhencommitremove>
|
||||
<revertoptions>-C</revertoptions>
|
||||
</tdevcvsservice>
|
||||
</tdevelop>
|
@ -1,30 +0,0 @@
|
||||
/***************************************************************************
|
||||
tdefilereplaceif.h - description
|
||||
-------------------
|
||||
copyright : (C) 1999 by François Dupoux
|
||||
(C) 2003 Andras Mantia
|
||||
email : dupoux@dupoux.com, amantia@kde.org
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
#ifndef TDEFILEREPLACEIFACE_H
|
||||
#define TDEFILEREPLACEIFACE_H
|
||||
|
||||
#include <dcopobject.h>
|
||||
|
||||
class TDEFileReplaceIface : virtual public DCOPObject
|
||||
{
|
||||
K_DCOP
|
||||
|
||||
k_dcop:
|
||||
virtual void openURL(const TQString& url) = 0;
|
||||
};
|
||||
|
||||
#endif // TDEFILEREPLACEIFACE_H
|
@ -1,381 +0,0 @@
|
||||
/***************************************************************************
|
||||
tdefilereplacelib.cpp - File library
|
||||
-------------------
|
||||
begin : lun mai 3 20:19:52 CEST 1999
|
||||
|
||||
copyright : (C) 1999 by François Dupoux
|
||||
(C) 2003 Andras Mantia <amantia@kde.org>
|
||||
(C) 2004 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
email : dupoux@dupoux.com
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
//QT
|
||||
#include <tqstringlist.h>
|
||||
#include <tqwidget.h>
|
||||
#include <tqlistview.h>
|
||||
#include <tqfileinfo.h>
|
||||
|
||||
//KDE
|
||||
#include <kdebug.h>
|
||||
#include <tdemessagebox.h>
|
||||
#include <tdelistview.h>
|
||||
#include <kiconloader.h>
|
||||
|
||||
//needed for malloc/free
|
||||
#include <stdlib.h>
|
||||
|
||||
// local
|
||||
#include "tdefilereplacelib.h"
|
||||
|
||||
const double kilo = 1024.0;
|
||||
const double mega = 1048576.0;//1024^2
|
||||
const double giga = 1073741824.0;//1024^3
|
||||
const double tera = 1099511627776.0;//1024^4
|
||||
|
||||
/**
|
||||
Format a path, from a path and a filename, or another sub-path (avoid double '/' risks)
|
||||
Parameters::.....* basePath: fist path (can be "/" if root, or "/usr/bin/" or "/usr/bin" for example)
|
||||
.................* fileName: second path (can be "/doc/html/", or "doc/html/" or "doc/html/index.html" for example)
|
||||
Return values:...* Full valid path (without double "/")
|
||||
*/
|
||||
TQString TDEFileReplaceLib::formatFullPath(const TQString& basePath, const TQString &fileName)
|
||||
{
|
||||
TQString fullPath = basePath;
|
||||
TQString fname = fileName;
|
||||
|
||||
if (fname.startsWith("/")) // skip beginning '/'
|
||||
fname = fname.remove(0,1);
|
||||
|
||||
if (fullPath.endsWith("/"))
|
||||
fullPath.append(fname);
|
||||
else
|
||||
fullPath.append("/"+fname);
|
||||
|
||||
return fullPath;
|
||||
}
|
||||
|
||||
/**
|
||||
Add an extension to a filename, or a filepath
|
||||
Parameters::.....* fileName: filename or filepath (it can have already the extension)
|
||||
.................* extension: extension to add without "." (ex: "html", "kfr")
|
||||
Return values:...* Filename / Filepath with the extension
|
||||
*/
|
||||
TQString TDEFileReplaceLib::addExtension(const TQString& fileName, const TQString& extension)
|
||||
{
|
||||
TQString fullExtension = ".";
|
||||
TQString fname = fileName;
|
||||
|
||||
fullExtension.append(extension);
|
||||
|
||||
// filename cannot contain ".ext" ==> Add it
|
||||
if(fname.length() <= fullExtension.length())
|
||||
fname.append(fullExtension);
|
||||
else // filename can contain ".ext"
|
||||
{
|
||||
if (fname.right(fullExtension.length()) != fullExtension)
|
||||
fname.append(fullExtension);
|
||||
}
|
||||
|
||||
return fname;
|
||||
}
|
||||
|
||||
TQString TDEFileReplaceLib::formatFileSize(double size)
|
||||
{
|
||||
TQString stringSize;
|
||||
|
||||
if(size < kilo)
|
||||
{
|
||||
const int asInt = (int) size;
|
||||
stringSize = i18n("1 byte", "%n bytes", asInt);
|
||||
}
|
||||
else
|
||||
if(size >= kilo && size < mega)
|
||||
{
|
||||
double d = size / kilo;
|
||||
stringSize = i18n("%1 KB").arg(TQString::number(d,'f',2));
|
||||
}
|
||||
else
|
||||
if(size >= mega && size < giga)
|
||||
{
|
||||
double d = size / mega;
|
||||
stringSize = i18n("%1 MB").arg(TQString::number(d,'f',2));
|
||||
}
|
||||
else
|
||||
if(size >= giga)
|
||||
{
|
||||
double d = size / giga;
|
||||
stringSize = i18n("%1 GB").arg(TQString::number(d,'f',2));
|
||||
}
|
||||
return stringSize;
|
||||
}
|
||||
|
||||
void TDEFileReplaceLib::convertOldToNewKFRFormat(const TQString& fileName, TDEListView* stringView)
|
||||
{
|
||||
//this method convert old format in new XML-based format
|
||||
typedef struct
|
||||
{
|
||||
char pgm[13]; // Must be "TDEFileReplace" : like MZ for EXE files
|
||||
int stringNumber; // Number of strings in file
|
||||
char reserved[64]; // Reserved for future use
|
||||
} KFRHeader;
|
||||
|
||||
KFRHeader head;
|
||||
|
||||
FILE* f = fopen(fileName.ascii(),"rb");
|
||||
int err = fread(&head, sizeof(KFRHeader), 1, f);
|
||||
TQString pgm(head.pgm);
|
||||
|
||||
if(!f || (err != 1) || (pgm != "TDEFileReplace"))
|
||||
{
|
||||
KMessageBox::error(0, i18n("<qt>Cannot open the file <b>%1</b> and load the string list. This file seems not to be a valid old kfr file or it is broken.</qt>").arg(fileName));
|
||||
return ;
|
||||
}
|
||||
|
||||
stringView->clear();
|
||||
|
||||
int oldTextSize,
|
||||
newTextSize,
|
||||
errors = 0,
|
||||
stringSize;
|
||||
TQStringList l;
|
||||
|
||||
int i ;
|
||||
for (i=0; i < head.stringNumber; i++)
|
||||
{
|
||||
errors += (fread(&oldTextSize, sizeof(int), 1, f)) != 1;
|
||||
errors += (fread(&newTextSize, sizeof(int), 1, f)) != 1;
|
||||
if(errors > 0)
|
||||
KMessageBox::error(0, i18n("Cannot read data."));
|
||||
else
|
||||
{
|
||||
stringSize = ((oldTextSize > newTextSize) ? oldTextSize : newTextSize) + 2;
|
||||
char* oldString = (char*) malloc(stringSize+10),
|
||||
* newString = (char*) malloc(stringSize+10);
|
||||
memset(oldString, 0, stringSize);
|
||||
memset(newString,0, stringSize);
|
||||
if (oldString == 0 || newString == 0)
|
||||
KMessageBox::error(0, i18n("Out of memory."));
|
||||
else
|
||||
{
|
||||
if (fread(oldString, oldTextSize, 1, f) != 1)
|
||||
KMessageBox::error(0, i18n("Cannot read data."));
|
||||
else
|
||||
{
|
||||
if (newTextSize > 0) // If there is a Replace text
|
||||
{
|
||||
if (fread(newString, newTextSize, 1, f) != 1)
|
||||
KMessageBox::error(0, i18n("Cannot read data."));
|
||||
else
|
||||
{
|
||||
TQListViewItem* lvi = new TQListViewItem(stringView);
|
||||
lvi->setText(0,oldString);
|
||||
lvi->setText(1,newString);
|
||||
|
||||
if(newString)
|
||||
free(newString);
|
||||
if(oldString)
|
||||
free(oldString);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
return ;
|
||||
}
|
||||
|
||||
bool TDEFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQString& fileName, RCOptions* info)
|
||||
{
|
||||
TQString bkExt = info->m_backupExtension;
|
||||
if(fileName == ".." || fileName == "." || (!bkExt.isEmpty() && fileName.right(bkExt.length()) == bkExt))
|
||||
return false;
|
||||
|
||||
TQFileInfo fi;
|
||||
if(filePath.isEmpty())
|
||||
fi.setFile(fileName);
|
||||
else
|
||||
fi.setFile(filePath+"/"+fileName);
|
||||
|
||||
if(fi.isDir())
|
||||
return true;
|
||||
|
||||
int minSize = info->m_minSize,
|
||||
maxSize = info->m_maxSize;
|
||||
TQString minDate = info->m_minDate,
|
||||
maxDate = info->m_maxDate,
|
||||
dateAccess = info->m_dateAccess;
|
||||
|
||||
// Avoid files that not match access date requirements
|
||||
TQString last = "unknown";
|
||||
if(dateAccess == "Last Writing Access")
|
||||
last = fi.lastModified().toString(Qt::ISODate);
|
||||
if(dateAccess == "Last Reading Access")
|
||||
last = fi.lastRead().toString(Qt::ISODate);
|
||||
|
||||
if(last != "unknown")
|
||||
{
|
||||
if(minDate != "unknown" && maxDate != "unknown")
|
||||
{ //If out of range then exit
|
||||
if((minDate > last) || (maxDate < last))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(minDate != "unknown")
|
||||
{ //If out of range then exit
|
||||
if(minDate > last)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(maxDate != "unknown")
|
||||
//If out of range then exit
|
||||
if(maxDate < last)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Avoid files that not match size requirements
|
||||
int size = fi.size();
|
||||
if(maxSize != FileSizeOption && minSize != FileSizeOption)
|
||||
if(size > (maxSize*1024) || size < (minSize*1024))
|
||||
return false;
|
||||
|
||||
// Avoid files that not match ownership requirements
|
||||
if(info->m_ownerUserIsChecked)
|
||||
{
|
||||
TQString fileOwnerUser;
|
||||
if(info->m_ownerUserType == "Name")
|
||||
fileOwnerUser = fi.owner();
|
||||
else
|
||||
fileOwnerUser = TQString::number(fi.ownerId(),10);
|
||||
|
||||
if(info->m_ownerUserBool == "Equals To")
|
||||
{
|
||||
if(info->m_ownerUserValue != fileOwnerUser)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(info->m_ownerUserValue == fileOwnerUser)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(info->m_ownerGroupIsChecked)
|
||||
{
|
||||
TQString fileOwnerGroup;
|
||||
if(info->m_ownerGroupType == "Name")
|
||||
fileOwnerGroup = fi.group();
|
||||
else
|
||||
fileOwnerGroup = TQString::number(fi.groupId(),10);
|
||||
if(info->m_ownerGroupBool == "Equals To")
|
||||
{
|
||||
if(info->m_ownerGroupValue != fileOwnerGroup)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(info->m_ownerGroupValue == fileOwnerGroup)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//If we are here then all requirements have been verified
|
||||
return true;
|
||||
}
|
||||
|
||||
void TDEFileReplaceLib::setIconForFileEntry(TQListViewItem* item, TQString path)
|
||||
{
|
||||
TQFileInfo fi(path);
|
||||
TQString extension = fi.extension(),
|
||||
baseName = fi.baseName();
|
||||
|
||||
KeyValueMap extensionMap;
|
||||
|
||||
extensionMap["a"] = "application-octet-stream";
|
||||
extensionMap["am"] = "text-x-script";
|
||||
extensionMap["bz"] = "application-vnd.tde.overlay.zip";
|
||||
extensionMap["bz2"] = "application-vnd.tde.overlay.zip";
|
||||
extensionMap["c"] = "text-x-csrc";
|
||||
extensionMap["cc"] = "text-x-c++src";
|
||||
extensionMap["cpp"] = "text-x-c++src";
|
||||
extensionMap["eml"] = "message";
|
||||
extensionMap["exe"] = "application-x-mswinurl";
|
||||
extensionMap["gz"] = "application-vnd.tde.overlay.zip";
|
||||
extensionMap["h"] = "text-x-hsrc";
|
||||
extensionMap["htm"] = "text-html";
|
||||
extensionMap["html"] = "text-html";
|
||||
extensionMap["in"] = "text-x-script";
|
||||
extensionMap["java"] = "text-x-java";
|
||||
extensionMap["jpg"] = "image-x-generic";
|
||||
extensionMap["kfr"] = "text-html";
|
||||
extensionMap["kmdr"] = "application-x-designer";
|
||||
extensionMap["kwd"] = "x-office-document";
|
||||
extensionMap["log"] = "text-x-log";
|
||||
extensionMap["moc"] = "text-x-mocsrc";
|
||||
extensionMap["mp3"] = "audio-x-generic";
|
||||
extensionMap["o"] = "text-x-osrc";
|
||||
extensionMap["pdf"] = "application-pdf";
|
||||
extensionMap["php"] = "text-x-php";
|
||||
extensionMap["py"] = "text-x-python";
|
||||
extensionMap["pl"] = "text-x-perl";
|
||||
extensionMap["p"] = "text-x-psrc";
|
||||
extensionMap["ps"] = "application-postscript";
|
||||
extensionMap["png"] = "image-x-generic";
|
||||
extensionMap["sa"] = "application-octet-stream";
|
||||
extensionMap["sh"] = "text-x-script";
|
||||
extensionMap["so"] = "application-octet-stream";
|
||||
extensionMap["tar"] = "application-x-tar";
|
||||
extensionMap["tex"] = "text-x-tex";
|
||||
extensionMap["tgz"] = "application-x-tarz";
|
||||
extensionMap["txt"] = "text-plain";
|
||||
extensionMap["ui"] = "application-x-designer";
|
||||
extensionMap["uml"] = "umbrellofile";
|
||||
extensionMap["wav"] = "audio-x-generic";
|
||||
extensionMap["xml"] = "text-html";
|
||||
extensionMap["xpm"] = "image-x-generic";
|
||||
|
||||
KeyValueMap::Iterator itExtensionMap;
|
||||
|
||||
for(itExtensionMap = extensionMap.begin(); itExtensionMap != extensionMap.end(); ++itExtensionMap)
|
||||
{
|
||||
if(extension == itExtensionMap.key())
|
||||
{
|
||||
item->setPixmap(0,SmallIcon(itExtensionMap.data()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
KeyValueMap baseNameMap;
|
||||
|
||||
baseNameMap["configure"] = "text-x-script";
|
||||
baseNameMap["core"] = "application-x-core";
|
||||
baseNameMap["makefile"] = "text-x-makefile";
|
||||
baseNameMap["readme"] = "text-x-readme";
|
||||
baseNameMap["README"] = "text-x-readme";
|
||||
baseNameMap["Readme"] = "text-x-readme";
|
||||
baseNameMap["TODO"] = "text-plain";
|
||||
|
||||
KeyValueMap::Iterator itBaseNameMap;
|
||||
|
||||
for(itBaseNameMap = baseNameMap.begin(); itBaseNameMap != baseNameMap.end(); ++itBaseNameMap)
|
||||
{
|
||||
if(baseName == itBaseNameMap.key())
|
||||
{
|
||||
item->setPixmap(0,SmallIcon(itBaseNameMap.data()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
/***************************************************************************
|
||||
tdefilereplacelib.h - File library, derived from filelib.h
|
||||
-------------------
|
||||
begin : lun mai 3 20:19:52 CEST 1999
|
||||
|
||||
copyright : (C) 1999 by François Dupoux
|
||||
(C) 2003 Andras Mantia <amantia@kde.org>
|
||||
(C) 2004 Emiliano Gulmini <emi_barbarossa@yahoo.it>
|
||||
email : dupoux@dupoux.com
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef TDEFILEREPLACELIB_H
|
||||
#define TDEFILEREPLACELIB_H
|
||||
|
||||
// KDE
|
||||
#include <tdelocale.h>
|
||||
class KlistView;
|
||||
|
||||
// local
|
||||
#include "configurationclasses.h"
|
||||
|
||||
class TDEFileReplaceLib
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
Format a path, from a path and a filename, or another sub-path (avoid double '/' risks)
|
||||
Parameters::.....* basePath: fist path (can be "/" if root, or "/usr/bin/" or "/usr/bin" for example)
|
||||
.................* filename: second path (can be "/doc/html/", or "doc/html/" or "doc/html/index.html" for example)
|
||||
Return values:...* Full valid path (without double "/")
|
||||
*/
|
||||
static TQString formatFullPath(const TQString& basePath, const TQString& fileName);
|
||||
|
||||
/**
|
||||
Add an extension to a filename, or a filepath
|
||||
Parameters::.....* filename: filename or filepath (it can have already the extension)
|
||||
.................* extension: extension to add without "." (ex: "html", "kfr")
|
||||
Return values:...* Filename / Filepath with the extension
|
||||
*/
|
||||
static TQString addExtension(const TQString& fileName, const TQString& extension);
|
||||
|
||||
static TQString formatFileSize(double size);
|
||||
|
||||
/**
|
||||
converts the old kfr format file in the new xml-based format.
|
||||
*/
|
||||
static void convertOldToNewKFRFormat(const TQString& fileName, TDEListView* stringView);
|
||||
/**
|
||||
Verifies that files, which we are scanning, respect some
|
||||
conditions
|
||||
*/
|
||||
static bool isAnAccessibleFile(const TQString& filePath, const TQString& fileName, RCOptions* info);
|
||||
|
||||
static void setIconForFileEntry(TQListViewItem* item, TQString path);
|
||||
};
|
||||
#endif // TDEFILEREPLACEFILELIB_H
|
@ -1,160 +0,0 @@
|
||||
//
|
||||
//
|
||||
// C++ Interface: tdefilereplacepart
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
//
|
||||
// Author: Andras Mantia <amantia@kde.org>, (C) 2003
|
||||
// Maintainer: Emiliano Gulmini <emi_barbarossa@yahoo.it>, (C) 2004
|
||||
//
|
||||
// Copyright: GPL v2. See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef TDEFILEREPLACEPART_H
|
||||
#define TDEFILEREPLACEPART_H
|
||||
|
||||
// QT
|
||||
|
||||
// KDE
|
||||
#include <tdeparts/part.h>
|
||||
class TDEAboutApplication;
|
||||
class TDEAboutData;
|
||||
class TDEConfig;
|
||||
|
||||
// local
|
||||
#include "configurationclasses.h"
|
||||
class TDEFileReplaceView;
|
||||
|
||||
#define KFR_VERSION "0.8.1"
|
||||
|
||||
class TDEFileReplacePart: public KParts::ReadOnlyPart
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
private: //MEMBERS
|
||||
TDEFileReplaceView* m_view;
|
||||
TQWidget* m_parentWidget,
|
||||
* m_w;
|
||||
TDEConfig* m_config;
|
||||
TDEAboutApplication* m_aboutDlg;
|
||||
KeyValueMap m_replacementMap;
|
||||
RCOptions* m_option;
|
||||
bool m_stop,
|
||||
m_searchingOperation;
|
||||
int m_optionMask;
|
||||
|
||||
public://Constructors
|
||||
TDEFileReplacePart(TQWidget *parentWidget,
|
||||
const char *widgetName,
|
||||
TQObject *parent,
|
||||
const char *name,
|
||||
const TQStringList &args);
|
||||
~TDEFileReplacePart();
|
||||
|
||||
//SLOTS
|
||||
private slots:
|
||||
void slotSetNewParameters();
|
||||
void slotSearchingOperation();
|
||||
void slotReplacingOperation();
|
||||
void slotSimulatingOperation();
|
||||
void slotStop();
|
||||
void slotCreateReport();
|
||||
void slotStringsAdd();
|
||||
void slotQuickStringsAdd();
|
||||
void slotStringsDeleteItem();
|
||||
void slotStringsEmpty();
|
||||
void slotStringsEdit();
|
||||
void slotStringsSave();
|
||||
void slotStringsLoad();
|
||||
void slotStringsInvertCur();
|
||||
void slotStringsInvertAll();
|
||||
void slotOpenRecentStringFile(const KURL& urlFile);
|
||||
void slotOptionRecursive();
|
||||
void slotOptionBackup();
|
||||
void slotOptionCaseSensitive();
|
||||
void slotOptionVariables();
|
||||
void slotOptionRegularExpressions();
|
||||
void slotOptionPreferences();
|
||||
void showAboutApplication(void);
|
||||
void appHelpActivated();
|
||||
void reportBug();
|
||||
void resetActions();
|
||||
void slotSearchMode(bool b){ m_option->m_searchingOnlyMode = b; }
|
||||
|
||||
//METHODS
|
||||
public:
|
||||
static TDEAboutData* createAboutData();
|
||||
TDEConfig *config(){ return m_config; }
|
||||
|
||||
protected:
|
||||
virtual bool openFile() { return false; }
|
||||
virtual bool openURL (const KURL &url);
|
||||
|
||||
private:
|
||||
/**
|
||||
* Initialization methods
|
||||
*/
|
||||
void initGUI();
|
||||
void initView();
|
||||
|
||||
/**
|
||||
* This method freezes the GUI of tdefilereplace during searching
|
||||
*/
|
||||
void freezeActions();
|
||||
|
||||
/**
|
||||
* These methods load the resources from tdefilereplacerc
|
||||
*/
|
||||
void loadOptionsFromRC();
|
||||
void loadOptions();
|
||||
void loadFileSizeOptions();
|
||||
void loadDateAccessOptions();
|
||||
void loadOwnerOptions();
|
||||
void loadLocationsList();
|
||||
void loadFiltersList();
|
||||
void loadBackupExtensionOptions();
|
||||
|
||||
/**
|
||||
* These methods save the resources to tdefilereplacerc
|
||||
*/
|
||||
void saveOptionsToRC();
|
||||
void saveOptions();
|
||||
void saveFileSizeOptions();
|
||||
void saveDateAccessOptions();
|
||||
void saveOwnerOptions();
|
||||
void saveLocationsList();
|
||||
void saveFiltersList();
|
||||
void saveBackupExtensionOptions();
|
||||
|
||||
/**
|
||||
* Replacing methods
|
||||
*/
|
||||
void fileReplace();
|
||||
void recursiveFileReplace(const TQString& dirName, int& filesNumber);
|
||||
void replaceAndBackup(const TQString& currentDir, const TQString& oldFileName);
|
||||
void replaceAndOverwrite(const TQString& currentDir, const TQString& oldFileName);
|
||||
void replacingLoop(TQString& line, TDEListViewItem** item, bool& atLeastOneStringFound, int& occur, bool regularExpression, bool& askConfirmReplace);
|
||||
|
||||
/**
|
||||
* Searching methods
|
||||
*/
|
||||
void fileSearch(const TQString& dirName, const TQString& filters);
|
||||
void recursiveFileSearch(const TQString& dirName, const TQString& filters, uint& filesNumber);
|
||||
void search(const TQString& currentDir, const TQString& fileName);
|
||||
|
||||
/**
|
||||
* Others methods
|
||||
*/
|
||||
void loadViewContent();
|
||||
void loadRulesFile(const TQString& fileName);
|
||||
bool launchNewProjectDialog(const KURL& startURL);
|
||||
void setOptionMask();
|
||||
bool checkBeforeOperation();
|
||||
bool dontAskAgain();
|
||||
void whatsThis();
|
||||
};
|
||||
|
||||
#endif// TDEFileReplacePart
|
@ -1,75 +0,0 @@
|
||||
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
||||
<kpartgui name="tdefilereplace" version="6">
|
||||
<MenuBar>
|
||||
<Menu name="tdefilerepace"><text>Search/&Replace</text>
|
||||
<Action name="new_project"/>
|
||||
<Action name="search"/>
|
||||
<Action name="file_simulate"/>
|
||||
<Action name="replace"/>
|
||||
<Action name="stop"/>
|
||||
<Separator/>
|
||||
<Menu name="strings"><text>&Strings</text>
|
||||
<Action name="strings_add"/>
|
||||
<Action name="strings_del"/>
|
||||
<Action name="strings_empty"/>
|
||||
<Action name="strings_edit"/>
|
||||
<Separator/>
|
||||
<Action name="strings_save"/>
|
||||
<Action name="strings_load"/>
|
||||
<Action name="strings_load_recent"/>
|
||||
<Separator/>
|
||||
<Action name="strings_invert"/>
|
||||
<Action name="strings_invert_all"/>
|
||||
</Menu>
|
||||
<Menu name="results"><text>&Results</text>
|
||||
<Action name="results_openfile"/>
|
||||
<Action name="results_opendir"/>
|
||||
<Action name="results_editfile"/>
|
||||
<Action name="results_delete"/>
|
||||
<Action name="results_infos"/>
|
||||
<Separator/>
|
||||
<Action name="save_results"/>
|
||||
<Separator/>
|
||||
<Action name="results_treeexpand"/>
|
||||
<Action name="results_treereduce"/>
|
||||
</Menu>
|
||||
<Menu name="options"><text>&Options</text>
|
||||
<Action name="options_recursive"/>
|
||||
<Action name="options_backup"/>
|
||||
<Action name="options_case"/>
|
||||
<Action name="options_var"/>
|
||||
<Action name="options_regularexpressions"/>
|
||||
</Menu>
|
||||
</Menu>
|
||||
<Menu name="settings"><text>&Settings</text>
|
||||
<Action name="configure_tdefilereplace"/>
|
||||
</Menu>
|
||||
<Menu name="help"><text>&Help</text>
|
||||
<Separator/>
|
||||
<Action name="help_tdefilereplace" />
|
||||
<Action name="report_bug" />
|
||||
<Action name="help_about_tdefilereplace" />
|
||||
</Menu>
|
||||
</MenuBar>
|
||||
<ToolBar noMerge="1" name="mainToolBar">
|
||||
<text>TDEFileReplace Main Toolbar</text>
|
||||
<Action name="new_project" />
|
||||
<Action name="search"/>
|
||||
<Action name="file_simulate"/>
|
||||
<Action name="replace"/>
|
||||
<Action name="stop"/>
|
||||
<Separator/>
|
||||
<Action name="strings_add"/>
|
||||
<Action name="strings_del"/>
|
||||
<Action name="strings_edit"/>
|
||||
<Action name="strings_empty"/>
|
||||
<Action name="strings_invert"/>
|
||||
<Action name="strings_load"/>
|
||||
<Separator/>
|
||||
<Action name="options_recursive"/>
|
||||
<Action name="options_backup"/>
|
||||
<Action name="options_case"/>
|
||||
<Action name="options_var"/>
|
||||
<Action name="options_regularexpressions"/>
|
||||
</ToolBar>
|
||||
</kpartgui>
|
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
||||
<kpartgui name="tdefilereplace" version="1">
|
||||
<MenuBar>
|
||||
<Menu noMerge="1" name="file"><text>&File</text>
|
||||
<Action name="file_quit"/>
|
||||
</Menu>
|
||||
<Menu name="tdefilerepace"><text>Search/&Replace</text>
|
||||
</Menu>
|
||||
</MenuBar>
|
||||
</kpartgui>
|
@ -1,555 +0,0 @@
|
||||
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
|
||||
<class>TDEFileReplaceViewWdg</class>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>TDEFileReplaceViewWdg</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>635</width>
|
||||
<height>370</height>
|
||||
</rect>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TQSplitter" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>splitter3</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<widget class="TQWidgetStack">
|
||||
<property name="name">
|
||||
<cstring>m_stackResults</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>7</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>0</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TDEListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Folder</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Old Size</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>New Size</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Replaced Strings</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Owner User</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Owner Group</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_lvResults</cstring>
|
||||
</property>
|
||||
<property name="selectionMode" stdset="0">
|
||||
<enum>Extended</enum>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="showSortIndicator">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>LastColumn</enum>
|
||||
</property>
|
||||
<property name="itemsMovable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="alternateBackground">
|
||||
<color>
|
||||
<red>238</red>
|
||||
<green>246</green>
|
||||
<blue>255</blue>
|
||||
</color>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TDEListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Folder</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Size</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Found Strings</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Owner User</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Owner Group</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_lvResults_2</cstring>
|
||||
</property>
|
||||
<property name="selectionMode" stdset="0">
|
||||
<enum>Extended</enum>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="showSortIndicator">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>LastColumn</enum>
|
||||
</property>
|
||||
<property name="itemsMovable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="alternateBackground">
|
||||
<color>
|
||||
<red>238</red>
|
||||
<green>246</green>
|
||||
<blue>255</blue>
|
||||
</color>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="TQWidgetStack">
|
||||
<property name="name">
|
||||
<cstring>m_stackStrings</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>7</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>0</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TDEListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Search For</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Replace With</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_lvStrings</cstring>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>AllColumns</enum>
|
||||
</property>
|
||||
<property name="itemsMovable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>WStackPage</cstring>
|
||||
</property>
|
||||
<attribute name="id">
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="TDEListView" row="0" column="0">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Search For</string>
|
||||
</property>
|
||||
<property name="clickable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
<property name="name">
|
||||
<cstring>m_lvStrings_2</cstring>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>AllColumns</enum>
|
||||
</property>
|
||||
<property name="itemsMovable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="TQLayoutWidget" row="1" column="0">
|
||||
<property name="name">
|
||||
<cstring>layout7</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout6</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="KLed">
|
||||
<property name="name">
|
||||
<cstring>m_ledGo</cstring>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="state">
|
||||
<enum>On</enum>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
<red>170</red>
|
||||
<green>255</green>
|
||||
<blue>0</blue>
|
||||
</color>
|
||||
</property>
|
||||
<property name="toolTip" stdset="0">
|
||||
<string>Green means ready</string>
|
||||
</property>
|
||||
<property name="whatsThis" stdset="0">
|
||||
<string>Ready</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KLed">
|
||||
<property name="name">
|
||||
<cstring>m_ledWait</cstring>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="state">
|
||||
<enum>On</enum>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
<red>255</red>
|
||||
<green>255</green>
|
||||
<blue>0</blue>
|
||||
</color>
|
||||
</property>
|
||||
<property name="toolTip" stdset="0">
|
||||
<string>Yellow means wait while sorting list</string>
|
||||
</property>
|
||||
<property name="whatsThis" stdset="0">
|
||||
<string>Please wait while sorting list</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KLed">
|
||||
<property name="name">
|
||||
<cstring>m_ledStop</cstring>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
<red>255</red>
|
||||
<green>0</green>
|
||||
<blue>0</blue>
|
||||
</color>
|
||||
</property>
|
||||
<property name="toolTip" stdset="0">
|
||||
<string>Red means scanning files</string>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<spacer>
|
||||
<property name="name">
|
||||
<cstring>spacer1</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>354</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<widget class="TQLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>layout1</cstring>
|
||||
</property>
|
||||
<hbox>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel">
|
||||
<property name="name">
|
||||
<cstring>m_tlFilesNumber</cstring>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Scanned files:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TQLCDNumber">
|
||||
<property name="name">
|
||||
<cstring>m_lcdFilesNumber</cstring>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>LineEditPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>Raised</enum>
|
||||
</property>
|
||||
<property name="numDigits">
|
||||
<number>7</number>
|
||||
</property>
|
||||
<property name="mode">
|
||||
<enum>Dec</enum>
|
||||
</property>
|
||||
<property name="segmentStyle">
|
||||
<enum>Flat</enum>
|
||||
</property>
|
||||
<property name="intValue" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
<includehints>
|
||||
<includehint>tdelistview.h</includehint>
|
||||
<includehint>tdelistview.h</includehint>
|
||||
<includehint>tdelistview.h</includehint>
|
||||
<includehint>tdelistview.h</includehint>
|
||||
<includehint>kled.h</includehint>
|
||||
<includehint>kled.h</includehint>
|
||||
<includehint>kled.h</includehint>
|
||||
</includehints>
|
||||
</UI>
|
@ -1,3 +0,0 @@
|
||||
appdir = $(kde_datadir)/tdefilereplacepart/icons
|
||||
app_ICON = AUTO
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 979 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 959 B |
Before Width: | Height: | Size: 279 B |
@ -1,101 +0,0 @@
|
||||
/***************************************************************************
|
||||
whatthis.h - description
|
||||
-------------------
|
||||
begin : fri 12 march CEST 2004
|
||||
copyright : (C) 2004 Emiliano Gulmini
|
||||
email : <emi_barbarossa@yahoo.it>
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
#ifndef WHATTHIS_H
|
||||
#define WHATTHIS_H
|
||||
|
||||
// QT
|
||||
#include <tqstring.h>
|
||||
|
||||
// KDE
|
||||
#include <tdelocale.h>
|
||||
|
||||
namespace whatthisNameSpace
|
||||
{
|
||||
//TDEFileReplaceView messages
|
||||
const TQString lvResultWhatthis = i18n("Shows the statistics of your operations. Note that the columns content changes depending on what kind of operation you are performing.");
|
||||
|
||||
const TQString lvStringsWhatthis = i18n("Shows a list of strings to search for (and if you specified it, a list of strings to replace with). Use the \"add strings\" dialog to edit your string list or double click on a string.");
|
||||
|
||||
//KNewProjectDlg messages
|
||||
const TQString cbLocationWhatthis = i18n("Base folder for operations of search/replace. Insert path string here by hand or use the search button.");
|
||||
|
||||
const TQString cbFilterWhatthis = i18n("Shell-like wildcards. Example: \"*.html;*.txt;*.xml\".");
|
||||
|
||||
const TQString edSizeMinWhatthis = i18n("Insert the minimum file size you want to search, or leave it unchecked if you don't want minimum size limit.");
|
||||
|
||||
const TQString edSizeMaxWhatthis = i18n("Insert the maximum file size you want to search, or leave it unchecked if you don't want maximum size limit.");
|
||||
|
||||
const TQString edDateMinWhatthis = i18n("Insert the minimum value for file access date that you want to search, or leave it unchecked if you don't a minimum limit.");
|
||||
|
||||
const TQString edDateMaxWhatthis = i18n("Insert the maximum value for file access date that you want to search, or leave it unchecked if you don't a maximum limit.");
|
||||
|
||||
const TQString cbDateValidWhatthis = i18n("Select \"writing\" if you want to use the date of the last modification, or \"reading\" to use the the date of the last access.");
|
||||
|
||||
const TQString chbDateMinWhatthis = i18n("Minimum value for access date.");
|
||||
|
||||
const TQString chbDateMaxWhatthis = i18n("Maximum value for access date.");
|
||||
|
||||
const TQString leSearchWhatthis = i18n("Insert here the string to search for.");
|
||||
|
||||
const TQString leReplaceWhatthis = i18n("Insert here the string to replace with.");
|
||||
|
||||
//KOptionsDlg messages
|
||||
const TQString chbCaseSensitiveWhatthis = i18n("Enable this option if your search is case sensitive.");
|
||||
|
||||
const TQString chbRecursiveWhatthis = i18n("Enable this option to search in sub folders too.");
|
||||
|
||||
const TQString chbHaltOnFirstOccurrenceWhatthis = i18n("Enable this option when you are searching for a string and you are only interested to know if the string is present or not in the current file.");
|
||||
|
||||
const TQString chbIgnoreWhitespacesWhatthis ="";
|
||||
|
||||
const TQString chbFollowSymLinksWhatthis = i18n("If tdefilereplace encounters a symbolic link treats it like a normal folder or file.");
|
||||
|
||||
const TQString chbIgnoreHiddenWhatthis = i18n("Enable this option to ignore hidden files or folders.");
|
||||
|
||||
const TQString chbIgnoreFilesWhatthis = i18n("If this option is enabled, KFR will show even the names of the files in which no string has been found or replaced.");
|
||||
|
||||
const TQString chbRegularExpressionsWhatthis = i18n("Allows you to apply QT-like regular expressions on the search string. Note that a complex regular expression could affect speed performance");
|
||||
|
||||
const TQString chbVariablesWhatthis = i18n("Enable \"commands\". For example: if search string is \"user\" and replace string is the command \"[$user:uid$]\", KFR will substitute \"user\" with the uid of the user.");
|
||||
|
||||
const TQString chbBackupWhatthis = i18n("Enable this option if you want leave original files untouched.");
|
||||
|
||||
const TQString chbConfirmStringsWhatthis = i18n("Enable this option if you want to be asked for single string replacement confirmation.");
|
||||
|
||||
//TDEFileReplacePart
|
||||
const TQString fileSimulateWhatthis = i18n("Enable this option to perform replacing as a simulation, i.e. without make any changes in files.");
|
||||
|
||||
const TQString optionsRegularExpressionsWhatthis = chbRegularExpressionsWhatthis;
|
||||
|
||||
const TQString optionsBackupWhatthis = chbBackupWhatthis;
|
||||
|
||||
const TQString optionsCaseWhatthis = chbCaseSensitiveWhatthis;
|
||||
|
||||
const TQString optionsVarWhatthis = chbVariablesWhatthis;
|
||||
|
||||
const TQString optionsRecursiveWhatthis = chbRecursiveWhatthis;
|
||||
|
||||
//KAddStringDlg
|
||||
const TQString rbSearchOnlyWhatthis = i18n("Select search-only mode.");
|
||||
|
||||
const TQString rbSearchReplaceWhatthis = i18n("Select search-and-replace mode.");
|
||||
|
||||
const TQString edSearchWhatthis = i18n("Insert here a string you want search for.");
|
||||
|
||||
const TQString edReplaceWhatthis = i18n("Insert here the string that KFR will use to replace the search string.");
|
||||
}
|
||||
#endif
|