From ef2264e9790ae7e700ad3cf5fb3dbad05efd98d8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:06:46 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- doc/kfilereplace/Makefile.am | 2 - doc/kfilereplace/addstringsdialog_window.png | Bin 24518 -> 0 bytes doc/kfilereplace/backup_option.png | Bin 979 -> 0 bytes doc/kfilereplace/casesensitive_option.png | Bin 1177 -> 0 bytes doc/kfilereplace/command_option.png | Bin 1132 -> 0 bytes doc/kfilereplace/edit.png | Bin 1076 -> 0 bytes doc/kfilereplace/edit_add.png | Bin 820 -> 0 bytes doc/kfilereplace/edit_remove.png | Bin 713 -> 0 bytes doc/kfilereplace/eraser.png | Bin 339 -> 0 bytes doc/kfilereplace/filereplace.png | Bin 1115 -> 0 bytes doc/kfilereplace/filesearch.png | Bin 1163 -> 0 bytes doc/kfilereplace/filesimulate.png | Bin 1113 -> 0 bytes doc/kfilereplace/index.docbook | 613 --------------------- doc/kfilereplace/invert.png | Bin 1218 -> 0 bytes doc/kfilereplace/kfr_standalone_main_window_1.png | Bin 84930 -> 0 bytes doc/kfilereplace/optionsdialog_main_window_1.png | Bin 44754 -> 0 bytes doc/kfilereplace/optionsdialog_main_window_2.png | Bin 36903 -> 0 bytes doc/kfilereplace/project.png | Bin 808 -> 0 bytes doc/kfilereplace/projectdialog_main_window_1.png | Bin 54660 -> 0 bytes doc/kfilereplace/projectdialog_main_window_2.png | Bin 61588 -> 0 bytes doc/kfilereplace/recursive_option.png | Bin 615 -> 0 bytes doc/kfilereplace/regularexpression_option.png | Bin 959 -> 0 bytes doc/kfilereplace/report_example.png | Bin 61894 -> 0 bytes doc/kfilereplace/results_view.png | Bin 54796 -> 0 bytes doc/kfilereplace/stop.png | Bin 1330 -> 0 bytes doc/kfilereplace/strings_view.png | Bin 9518 -> 0 bytes doc/kfilereplace/toolbar.png | Bin 8217 -> 0 bytes doc/kfilereplace/unsortedList.png | Bin 279 -> 0 bytes doc/quanta/adv-quanta.docbook | 2 +- doc/tdefilereplace/Makefile.am | 2 + doc/tdefilereplace/addstringsdialog_window.png | Bin 0 -> 24518 bytes doc/tdefilereplace/backup_option.png | Bin 0 -> 979 bytes doc/tdefilereplace/casesensitive_option.png | Bin 0 -> 1177 bytes doc/tdefilereplace/command_option.png | Bin 0 -> 1132 bytes doc/tdefilereplace/edit.png | Bin 0 -> 1076 bytes doc/tdefilereplace/edit_add.png | Bin 0 -> 820 bytes doc/tdefilereplace/edit_remove.png | Bin 0 -> 713 bytes doc/tdefilereplace/eraser.png | Bin 0 -> 339 bytes doc/tdefilereplace/filereplace.png | Bin 0 -> 1115 bytes doc/tdefilereplace/filesearch.png | Bin 0 -> 1163 bytes doc/tdefilereplace/filesimulate.png | Bin 0 -> 1113 bytes doc/tdefilereplace/index.docbook | 613 +++++++++++++++++++++ doc/tdefilereplace/invert.png | Bin 0 -> 1218 bytes .../kfr_standalone_main_window_1.png | Bin 0 -> 84930 bytes doc/tdefilereplace/optionsdialog_main_window_1.png | Bin 0 -> 44754 bytes doc/tdefilereplace/optionsdialog_main_window_2.png | Bin 0 -> 36903 bytes doc/tdefilereplace/project.png | Bin 0 -> 808 bytes doc/tdefilereplace/projectdialog_main_window_1.png | Bin 0 -> 54660 bytes doc/tdefilereplace/projectdialog_main_window_2.png | Bin 0 -> 61588 bytes doc/tdefilereplace/recursive_option.png | Bin 0 -> 615 bytes doc/tdefilereplace/regularexpression_option.png | Bin 0 -> 959 bytes doc/tdefilereplace/report_example.png | Bin 0 -> 61894 bytes doc/tdefilereplace/results_view.png | Bin 0 -> 54796 bytes doc/tdefilereplace/stop.png | Bin 0 -> 1330 bytes doc/tdefilereplace/strings_view.png | Bin 0 -> 9518 bytes doc/tdefilereplace/toolbar.png | Bin 0 -> 8217 bytes doc/tdefilereplace/unsortedList.png | Bin 0 -> 279 bytes 57 files changed, 616 insertions(+), 616 deletions(-) delete mode 100644 doc/kfilereplace/Makefile.am delete mode 100644 doc/kfilereplace/addstringsdialog_window.png delete mode 100644 doc/kfilereplace/backup_option.png delete mode 100644 doc/kfilereplace/casesensitive_option.png delete mode 100644 doc/kfilereplace/command_option.png delete mode 100644 doc/kfilereplace/edit.png delete mode 100644 doc/kfilereplace/edit_add.png delete mode 100644 doc/kfilereplace/edit_remove.png delete mode 100644 doc/kfilereplace/eraser.png delete mode 100644 doc/kfilereplace/filereplace.png delete mode 100644 doc/kfilereplace/filesearch.png delete mode 100644 doc/kfilereplace/filesimulate.png delete mode 100644 doc/kfilereplace/index.docbook delete mode 100644 doc/kfilereplace/invert.png delete mode 100644 doc/kfilereplace/kfr_standalone_main_window_1.png delete mode 100644 doc/kfilereplace/optionsdialog_main_window_1.png delete mode 100644 doc/kfilereplace/optionsdialog_main_window_2.png delete mode 100644 doc/kfilereplace/project.png delete mode 100644 doc/kfilereplace/projectdialog_main_window_1.png delete mode 100644 doc/kfilereplace/projectdialog_main_window_2.png delete mode 100644 doc/kfilereplace/recursive_option.png delete mode 100644 doc/kfilereplace/regularexpression_option.png delete mode 100644 doc/kfilereplace/report_example.png delete mode 100644 doc/kfilereplace/results_view.png delete mode 100644 doc/kfilereplace/stop.png delete mode 100644 doc/kfilereplace/strings_view.png delete mode 100644 doc/kfilereplace/toolbar.png delete mode 100644 doc/kfilereplace/unsortedList.png create mode 100644 doc/tdefilereplace/Makefile.am create mode 100644 doc/tdefilereplace/addstringsdialog_window.png create mode 100644 doc/tdefilereplace/backup_option.png create mode 100644 doc/tdefilereplace/casesensitive_option.png create mode 100644 doc/tdefilereplace/command_option.png create mode 100644 doc/tdefilereplace/edit.png create mode 100644 doc/tdefilereplace/edit_add.png create mode 100644 doc/tdefilereplace/edit_remove.png create mode 100644 doc/tdefilereplace/eraser.png create mode 100644 doc/tdefilereplace/filereplace.png create mode 100644 doc/tdefilereplace/filesearch.png create mode 100644 doc/tdefilereplace/filesimulate.png create mode 100644 doc/tdefilereplace/index.docbook create mode 100644 doc/tdefilereplace/invert.png create mode 100644 doc/tdefilereplace/kfr_standalone_main_window_1.png create mode 100644 doc/tdefilereplace/optionsdialog_main_window_1.png create mode 100644 doc/tdefilereplace/optionsdialog_main_window_2.png create mode 100644 doc/tdefilereplace/project.png create mode 100644 doc/tdefilereplace/projectdialog_main_window_1.png create mode 100644 doc/tdefilereplace/projectdialog_main_window_2.png create mode 100644 doc/tdefilereplace/recursive_option.png create mode 100644 doc/tdefilereplace/regularexpression_option.png create mode 100644 doc/tdefilereplace/report_example.png create mode 100644 doc/tdefilereplace/results_view.png create mode 100644 doc/tdefilereplace/stop.png create mode 100644 doc/tdefilereplace/strings_view.png create mode 100644 doc/tdefilereplace/toolbar.png create mode 100644 doc/tdefilereplace/unsortedList.png (limited to 'doc') diff --git a/doc/kfilereplace/Makefile.am b/doc/kfilereplace/Makefile.am deleted file mode 100644 index e97402c7..00000000 --- a/doc/kfilereplace/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -KDE_DOCS = AUTO -KDE_LANG = en diff --git a/doc/kfilereplace/addstringsdialog_window.png b/doc/kfilereplace/addstringsdialog_window.png deleted file mode 100644 index 7d6aeee7..00000000 Binary files a/doc/kfilereplace/addstringsdialog_window.png and /dev/null differ diff --git a/doc/kfilereplace/backup_option.png b/doc/kfilereplace/backup_option.png deleted file mode 100644 index a0e1e02f..00000000 Binary files a/doc/kfilereplace/backup_option.png and /dev/null differ diff --git a/doc/kfilereplace/casesensitive_option.png b/doc/kfilereplace/casesensitive_option.png deleted file mode 100644 index 6302c0f2..00000000 Binary files a/doc/kfilereplace/casesensitive_option.png and /dev/null differ diff --git a/doc/kfilereplace/command_option.png b/doc/kfilereplace/command_option.png deleted file mode 100644 index 1da3688b..00000000 Binary files a/doc/kfilereplace/command_option.png and /dev/null differ diff --git a/doc/kfilereplace/edit.png b/doc/kfilereplace/edit.png deleted file mode 100644 index ce8b2267..00000000 Binary files a/doc/kfilereplace/edit.png and /dev/null differ diff --git a/doc/kfilereplace/edit_add.png b/doc/kfilereplace/edit_add.png deleted file mode 100644 index c46aed2b..00000000 Binary files a/doc/kfilereplace/edit_add.png and /dev/null differ diff --git a/doc/kfilereplace/edit_remove.png b/doc/kfilereplace/edit_remove.png deleted file mode 100644 index 1a2f87c5..00000000 Binary files a/doc/kfilereplace/edit_remove.png and /dev/null differ diff --git a/doc/kfilereplace/eraser.png b/doc/kfilereplace/eraser.png deleted file mode 100644 index 33775463..00000000 Binary files a/doc/kfilereplace/eraser.png and /dev/null differ diff --git a/doc/kfilereplace/filereplace.png b/doc/kfilereplace/filereplace.png deleted file mode 100644 index c3692e11..00000000 Binary files a/doc/kfilereplace/filereplace.png and /dev/null differ diff --git a/doc/kfilereplace/filesearch.png b/doc/kfilereplace/filesearch.png deleted file mode 100644 index 1be59c49..00000000 Binary files a/doc/kfilereplace/filesearch.png and /dev/null differ diff --git a/doc/kfilereplace/filesimulate.png b/doc/kfilereplace/filesimulate.png deleted file mode 100644 index 7cc5b284..00000000 Binary files a/doc/kfilereplace/filesimulate.png and /dev/null differ diff --git a/doc/kfilereplace/index.docbook b/doc/kfilereplace/index.docbook deleted file mode 100644 index 9f769f32..00000000 --- a/doc/kfilereplace/index.docbook +++ /dev/null @@ -1,613 +0,0 @@ - -KFileReplace"> - - - - - tdewebdev"> - bc"> -]> - - - - -The &kfilereplace; Handbook - - - -Emiliano -Gulmini - -
emi_barbarossa@yahoo.it
-
-
- - - -
- - -2004 -Emiliano Gulmini - - -&FDLNotice; - -2004-08-09 -1.0.0 - - - - - -&kfilereplace; is an utility to search and replace strings. - - - - -KDE -KFileReplace -replace -search -string - - -
- - - Introduction - &kfilereplace; 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. - - - - -Using &kfilereplace; - - - - &kfilereplace; in its standalone incarnation - - - - - - &kfilereplace; in its standalone incarnation - - - - - - - -The Toolbar - -The &kfilereplace; toolbar should looks like this: - - &kfilereplace;'s toolbar - - - - - - - - - &kfilereplace;'s toolbar - - - - - -The toolbar shows you the buttons of the main functionalities. - - Toolbar Icons - - - - - - - - New session - - This button shows a session dialog in which you can set several basic options; if &kfilereplace; run as standalone application you should click this button as first step. - - - - - - - - - - Search only - - This button starts a search loop. - - - - - - - - - - Replace - - This button starts a search&replace loop. When a string has been found, &kfilereplace; replaces it with another string. - - - - - - - - - - Simulated Replace - - This button starts a simulated search&replace loop. Nothing really happens when you click this button. - - - - - - - - - - Stop - - This button stops an operation. - - - - - - - - - - Add Strings - - This button opens the Add Strings dialog in which you can edit your string list. - - - - - - - - - - Delete Strings - - This button deletes the selected (or the current if there is no selection) string from the list. - - - - - - - - - - Edit Strings - - This button edits a selected string. - - - - - - - - - - Delete List - - This button deletes all the strings in the list. - - - - - - - - - - Invert Strings - - This button swaps the search string with the replace string, so you can revert a search/replace operation. - - - - - - - - - - Load String List - - This button loads a string list saved in a xml file with a kfr extension. - - - - - - - - - - Search in Subfolders - - This button allows you to search/replace recursively in the subfolders of your base directory. - - - - - - - - - - Make Backup Files - - This button enables generation of backup files. - - - - - - - - - - Case-sensitive Search - - This button enables case-sensitive searching. - - - - - - - - - - Commands - - This button enables commands capability. Commands are special strings. See . - - - - - - - - - - Regular expressions - - This button enables Qt-like regular expressions. - - - - - - - - - - The Results List - - &kfilereplace;'s Results view - - - - - - - - - &kfilereplace;'s Results view - - - - The Results 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. - - - - - The String List - - This is the Strings view: - - &kfilereplace;'s Strings view - - - - - - &kfilereplace;'s Strings view - - - - - - The Strings view visualizes the list of strings you want search/replace. Please note that in search mode the Results view and the Strings view have a different layout. - - - - - The <guilabel>New Session</guilabel> Dialog - The New Session dialog is used to setup the basic parameters needed by &kfilereplace; to work. It consists of two tabs, General and Advanced. - - - - The <guilabel>General</guilabel> Tab - - &kfilereplace; General tab - - - - - - &kfilereplace; General tab - - - - When you want to begin a new session the first step is to click on the New Session button. Then you must enter the base path and a sequence of shell-like wildcards to use as filter. - Then you could set some useful options, like searching in all the subfolders, doing a case-sensitive search, enabling commands and/or regular expressionsPlease note that regular expressions and commands could slow down the speed performances., doing a backup copy of each file before replacing. - If you want to start searching, you can put a string in the search box and press Search Now, otherwise leave the search box empty and press Search Later. - - - - The <guilabel>Advanced</guilabel> Tab - - &kfilereplace; Advanced tab - - - - - - &kfilereplace; Advanced tab - - - - The Advanced 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 &kfilereplace; 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). - - - - - The <guilabel>Options</guilabel> Dialog - 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 SettingsConfigure KFileReplace... in the main menu. - - - General options - These options have been presented in the Toolbar section. - - The General tab of the Options window - - - - - - The General tab of the Options window - - - - - - - Advanced options - - - The Advanced tab of the Options window - - - - - - The Advanced tab of the Options window - - - - - Do not show files if no strings are found or replaced - When searching, stop on first string found - Follow symbolic links - Ignore hidden files and directories - - shows only the files that match some of your strings. This will speed up the search. - &kfilereplace; 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. - if a file is a link to another one, then search in the real file. - if hidden files or folders are encountered, ignore them. - - - - - - - The <guilabel>Add Strings</guilabel> Dialog - - &kfilereplace;'s Add Strings dialog - - - - - - &kfilereplace;'s Add Strings dialog - - - - 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 OK. - - - - - &kfilereplace; features - This chapter provides informations about some useful capabilities of &kfilereplace;. - - How to save your string list - When you want to reuse a list of strings you can save it in a xml file. To do this select from the menubar Search/ReplaceStringsSave Strings List to File. When you save a list, a simple xml file with extension kfr is created. To load a kfr file select from menubar Search/ReplaceStringsLoad Strings List from File. The actual file looks like this: - -<?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> - - 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 &kfilereplace; in the way explained before. - - - - How to Create a Simple Report - You can create a report by choosing Search/ReplaceResultsCreate Report File from the main menu. A report is a folder containing an xml and a css file. Reports may be useful to maintain a simple log of your operations. - - &kfilereplace;'s Report feature - - - - - - - - - &kfilereplace;'s Report feature - - - - - - - - How to use Regular Expressions - - If you want search for every string that starts with x, ht or u and ends with ml, you can write a regular expression like this: (x|ht|u)ml. Insert this expression in the search editor, click OK, and enable regular expressions by toggling the Regular Expression button. 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 if you want to solve a problem with a regular expression, you have two problems. - - - - How to Protect Original Files - 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 Backup button. If you want to customize the extension of the backup files open the Options dialog. - - - - - How to Open a File - 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 &kfilereplace; embedded in &quantaplus;, you can open the file directly in it at the specified line and column. - - - - Commands - Suppose you want replace the phrase Alice's adventures in Wonderland with the entire file that contains Carroll's novel. Probably you don't want to do this by hand, what you need is a command that will do it for you. Click the Add button, select Search and Replace Mode and insert the following strings: Alice's adventure in Wonderland in the search mini-editor and the string [$loadfile:/the-path-to-my-folder/my-folder/my-file$] in the replacement mini-editor. Click OK. When you come back to the &kfilereplace; main window, toggle the Command action button that enables the commands, and start the replacement process. There are also other commands, see for a list of all of them. - - - - -Credits and License - -&kfilereplace;. Program copyright 1999 by François Dupoux dupoux@dupoux.com, 2003 Andras Mantia amantia@kde.org, 2004 Emiliano Gulmini emi_barbarossa@yahoo.it - - - - The &kfilereplace; authors and maintainers: - - François Dupoux dupoux@dupoux.com - Original author - - - Andras Mantia amantia@kde.org - Shell autor, KPart creator, co-maintainer - - - Emiliano Gulmini emi_barbarossa@yahoo.it - Current maintainer, code cleaner & rewriter - - - - -Documentation Copyright © 2004 Emiliano Gulmini emi_barbarossa@yahoo.it - - - - -&underFDL; -&underGPL; - - - - -Installation - - -How to install &kfilereplace; - -&kfilereplace; 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 &kfilereplace; 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 &tdewebdev; home site for more information. - - - - - - - Requirements - In order to use the command [$mathexp:some_math_expression$] you should install the &bc; mathematical utility (version 1.06 or newer) written by Philip A. Nelson (philnelson@acm.org). - - - - - - &kfilereplace; commands - - - [$datetime:iso$] - [$datetime:local$] - [$user:uid$] - [$user:gid$] - [$user:loginname$] - [$user:fullname$] - [$user:homedir$] - [$user:shell$] - [$loadfile:/my-path/my-directory/my-file$] - [$empty:$] - [$random:AN_INTEGER_NUMBER$] - [$random:$] - [$mathexp:bc-expression$] - - this command return the current date and time in Qt ISO format. - like above but in local format. - return the UID of the current user. - return the GID of the current user. - return the login name of the current user. - return the full name of the current user. - return the home directory of the current user. - return the shell of the current user. - return the content of the my-file file. - return the empty string. - return a random number string using AN_INTEGER_NUMBER as the initial seed. - like above, but without initial seed. - return the result of a &bc; v1.06 mathematical expression. - - - - - -&documentation.index; -
- diff --git a/doc/kfilereplace/invert.png b/doc/kfilereplace/invert.png deleted file mode 100644 index f3ab8be6..00000000 Binary files a/doc/kfilereplace/invert.png and /dev/null differ diff --git a/doc/kfilereplace/kfr_standalone_main_window_1.png b/doc/kfilereplace/kfr_standalone_main_window_1.png deleted file mode 100644 index 3e4f85db..00000000 Binary files a/doc/kfilereplace/kfr_standalone_main_window_1.png and /dev/null differ diff --git a/doc/kfilereplace/optionsdialog_main_window_1.png b/doc/kfilereplace/optionsdialog_main_window_1.png deleted file mode 100644 index 959c3977..00000000 Binary files a/doc/kfilereplace/optionsdialog_main_window_1.png and /dev/null differ diff --git a/doc/kfilereplace/optionsdialog_main_window_2.png b/doc/kfilereplace/optionsdialog_main_window_2.png deleted file mode 100644 index 3213b6ff..00000000 Binary files a/doc/kfilereplace/optionsdialog_main_window_2.png and /dev/null differ diff --git a/doc/kfilereplace/project.png b/doc/kfilereplace/project.png deleted file mode 100644 index 607e6aa8..00000000 Binary files a/doc/kfilereplace/project.png and /dev/null differ diff --git a/doc/kfilereplace/projectdialog_main_window_1.png b/doc/kfilereplace/projectdialog_main_window_1.png deleted file mode 100644 index 58c622f0..00000000 Binary files a/doc/kfilereplace/projectdialog_main_window_1.png and /dev/null differ diff --git a/doc/kfilereplace/projectdialog_main_window_2.png b/doc/kfilereplace/projectdialog_main_window_2.png deleted file mode 100644 index 6fe2cb98..00000000 Binary files a/doc/kfilereplace/projectdialog_main_window_2.png and /dev/null differ diff --git a/doc/kfilereplace/recursive_option.png b/doc/kfilereplace/recursive_option.png deleted file mode 100644 index bc98df90..00000000 Binary files a/doc/kfilereplace/recursive_option.png and /dev/null differ diff --git a/doc/kfilereplace/regularexpression_option.png b/doc/kfilereplace/regularexpression_option.png deleted file mode 100644 index f74c7b56..00000000 Binary files a/doc/kfilereplace/regularexpression_option.png and /dev/null differ diff --git a/doc/kfilereplace/report_example.png b/doc/kfilereplace/report_example.png deleted file mode 100644 index 359de5ab..00000000 Binary files a/doc/kfilereplace/report_example.png and /dev/null differ diff --git a/doc/kfilereplace/results_view.png b/doc/kfilereplace/results_view.png deleted file mode 100644 index 8f91469d..00000000 Binary files a/doc/kfilereplace/results_view.png and /dev/null differ diff --git a/doc/kfilereplace/stop.png b/doc/kfilereplace/stop.png deleted file mode 100644 index 73b27d9f..00000000 Binary files a/doc/kfilereplace/stop.png and /dev/null differ diff --git a/doc/kfilereplace/strings_view.png b/doc/kfilereplace/strings_view.png deleted file mode 100644 index 7396e53c..00000000 Binary files a/doc/kfilereplace/strings_view.png and /dev/null differ diff --git a/doc/kfilereplace/toolbar.png b/doc/kfilereplace/toolbar.png deleted file mode 100644 index 84e699eb..00000000 Binary files a/doc/kfilereplace/toolbar.png and /dev/null differ diff --git a/doc/kfilereplace/unsortedList.png b/doc/kfilereplace/unsortedList.png deleted file mode 100644 index bed281f1..00000000 Binary files a/doc/kfilereplace/unsortedList.png and /dev/null differ diff --git a/doc/quanta/adv-quanta.docbook b/doc/quanta/adv-quanta.docbook index 5aefad44..432bc81c 100644 --- a/doc/quanta/adv-quanta.docbook +++ b/doc/quanta/adv-quanta.docbook @@ -210,7 +210,7 @@ This application lacks flexibility. Sorry, we will do better next time. - + + + + +2004 +Emiliano Gulmini + + +&FDLNotice; + +2004-08-09 +1.0.0 + + + + + +&tdefilereplace; is an utility to search and replace strings. + + + + +KDE +KFileReplace +replace +search +string + + + + + + Introduction + &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. + + + + +Using &tdefilereplace; + + + + &tdefilereplace; in its standalone incarnation + + + + + + &tdefilereplace; in its standalone incarnation + + + + + + + +The Toolbar + +The &tdefilereplace; toolbar should looks like this: + + &tdefilereplace;'s toolbar + + + + + + + + + &tdefilereplace;'s toolbar + + + + + +The toolbar shows you the buttons of the main functionalities. + + Toolbar Icons + + + + + + + + New session + + This button shows a session dialog in which you can set several basic options; if &tdefilereplace; run as standalone application you should click this button as first step. + + + + + + + + + + Search only + + This button starts a search loop. + + + + + + + + + + Replace + + This button starts a search&replace loop. When a string has been found, &tdefilereplace; replaces it with another string. + + + + + + + + + + Simulated Replace + + This button starts a simulated search&replace loop. Nothing really happens when you click this button. + + + + + + + + + + Stop + + This button stops an operation. + + + + + + + + + + Add Strings + + This button opens the Add Strings dialog in which you can edit your string list. + + + + + + + + + + Delete Strings + + This button deletes the selected (or the current if there is no selection) string from the list. + + + + + + + + + + Edit Strings + + This button edits a selected string. + + + + + + + + + + Delete List + + This button deletes all the strings in the list. + + + + + + + + + + Invert Strings + + This button swaps the search string with the replace string, so you can revert a search/replace operation. + + + + + + + + + + Load String List + + This button loads a string list saved in a xml file with a kfr extension. + + + + + + + + + + Search in Subfolders + + This button allows you to search/replace recursively in the subfolders of your base directory. + + + + + + + + + + Make Backup Files + + This button enables generation of backup files. + + + + + + + + + + Case-sensitive Search + + This button enables case-sensitive searching. + + + + + + + + + + Commands + + This button enables commands capability. Commands are special strings. See . + + + + + + + + + + Regular expressions + + This button enables Qt-like regular expressions. + + + + + + + + + + The Results List + + &tdefilereplace;'s Results view + + + + + + + + + &tdefilereplace;'s Results view + + + + The Results 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. + + + + + The String List + + This is the Strings view: + + &tdefilereplace;'s Strings view + + + + + + &tdefilereplace;'s Strings view + + + + + + The Strings view visualizes the list of strings you want search/replace. Please note that in search mode the Results view and the Strings view have a different layout. + + + + + The <guilabel>New Session</guilabel> Dialog + The New Session dialog is used to setup the basic parameters needed by &tdefilereplace; to work. It consists of two tabs, General and Advanced. + + + + The <guilabel>General</guilabel> Tab + + &tdefilereplace; General tab + + + + + + &tdefilereplace; General tab + + + + When you want to begin a new session the first step is to click on the New Session button. Then you must enter the base path and a sequence of shell-like wildcards to use as filter. + Then you could set some useful options, like searching in all the subfolders, doing a case-sensitive search, enabling commands and/or regular expressionsPlease note that regular expressions and commands could slow down the speed performances., doing a backup copy of each file before replacing. + If you want to start searching, you can put a string in the search box and press Search Now, otherwise leave the search box empty and press Search Later. + + + + The <guilabel>Advanced</guilabel> Tab + + &tdefilereplace; Advanced tab + + + + + + &tdefilereplace; Advanced tab + + + + The Advanced 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). + + + + + The <guilabel>Options</guilabel> Dialog + 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 SettingsConfigure KFileReplace... in the main menu. + + + General options + These options have been presented in the Toolbar section. + + The General tab of the Options window + + + + + + The General tab of the Options window + + + + + + + Advanced options + + + The Advanced tab of the Options window + + + + + + The Advanced tab of the Options window + + + + + Do not show files if no strings are found or replaced + When searching, stop on first string found + Follow symbolic links + Ignore hidden files and directories + + shows only the files that match some of your strings. This will speed up the search. + &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. + if a file is a link to another one, then search in the real file. + if hidden files or folders are encountered, ignore them. + + + + + + + The <guilabel>Add Strings</guilabel> Dialog + + &tdefilereplace;'s Add Strings dialog + + + + + + &tdefilereplace;'s Add Strings dialog + + + + 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 OK. + + + + + &tdefilereplace; features + This chapter provides informations about some useful capabilities of &tdefilereplace;. + + How to save your string list + When you want to reuse a list of strings you can save it in a xml file. To do this select from the menubar Search/ReplaceStringsSave Strings List to File. When you save a list, a simple xml file with extension kfr is created. To load a kfr file select from menubar Search/ReplaceStringsLoad Strings List from File. The actual file looks like this: + +<?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> + + 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. + + + + How to Create a Simple Report + You can create a report by choosing Search/ReplaceResultsCreate Report File from the main menu. A report is a folder containing an xml and a css file. Reports may be useful to maintain a simple log of your operations. + + &tdefilereplace;'s Report feature + + + + + + + + + &tdefilereplace;'s Report feature + + + + + + + + How to use Regular Expressions + + If you want search for every string that starts with x, ht or u and ends with ml, you can write a regular expression like this: (x|ht|u)ml. Insert this expression in the search editor, click OK, and enable regular expressions by toggling the Regular Expression button. 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 if you want to solve a problem with a regular expression, you have two problems. + + + + How to Protect Original Files + 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 Backup button. If you want to customize the extension of the backup files open the Options dialog. + + + + + How to Open a File + 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. + + + + Commands + Suppose you want replace the phrase Alice's adventures in Wonderland with the entire file that contains Carroll's novel. Probably you don't want to do this by hand, what you need is a command that will do it for you. Click the Add button, select Search and Replace Mode and insert the following strings: Alice's adventure in Wonderland in the search mini-editor and the string [$loadfile:/the-path-to-my-folder/my-folder/my-file$] in the replacement mini-editor. Click OK. When you come back to the &tdefilereplace; main window, toggle the Command action button that enables the commands, and start the replacement process. There are also other commands, see for a list of all of them. + + + + +Credits and License + +&tdefilereplace;. Program copyright 1999 by François Dupoux dupoux@dupoux.com, 2003 Andras Mantia amantia@kde.org, 2004 Emiliano Gulmini emi_barbarossa@yahoo.it + + + + The &tdefilereplace; authors and maintainers: + + François Dupoux dupoux@dupoux.com + Original author + + + Andras Mantia amantia@kde.org + Shell autor, KPart creator, co-maintainer + + + Emiliano Gulmini emi_barbarossa@yahoo.it + Current maintainer, code cleaner & rewriter + + + + +Documentation Copyright © 2004 Emiliano Gulmini emi_barbarossa@yahoo.it + + + + +&underFDL; +&underGPL; + + + + +Installation + + +How to install &tdefilereplace; + +&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 &tdewebdev; home site for more information. + + + + + + + Requirements + In order to use the command [$mathexp:some_math_expression$] you should install the &bc; mathematical utility (version 1.06 or newer) written by Philip A. Nelson (philnelson@acm.org). + + + + + + &tdefilereplace; commands + + + [$datetime:iso$] + [$datetime:local$] + [$user:uid$] + [$user:gid$] + [$user:loginname$] + [$user:fullname$] + [$user:homedir$] + [$user:shell$] + [$loadfile:/my-path/my-directory/my-file$] + [$empty:$] + [$random:AN_INTEGER_NUMBER$] + [$random:$] + [$mathexp:bc-expression$] + + this command return the current date and time in Qt ISO format. + like above but in local format. + return the UID of the current user. + return the GID of the current user. + return the login name of the current user. + return the full name of the current user. + return the home directory of the current user. + return the shell of the current user. + return the content of the my-file file. + return the empty string. + return a random number string using AN_INTEGER_NUMBER as the initial seed. + like above, but without initial seed. + return the result of a &bc; v1.06 mathematical expression. + + + + + +&documentation.index; + + diff --git a/doc/tdefilereplace/invert.png b/doc/tdefilereplace/invert.png new file mode 100644 index 00000000..f3ab8be6 Binary files /dev/null and b/doc/tdefilereplace/invert.png differ diff --git a/doc/tdefilereplace/kfr_standalone_main_window_1.png b/doc/tdefilereplace/kfr_standalone_main_window_1.png new file mode 100644 index 00000000..3e4f85db Binary files /dev/null and b/doc/tdefilereplace/kfr_standalone_main_window_1.png differ diff --git a/doc/tdefilereplace/optionsdialog_main_window_1.png b/doc/tdefilereplace/optionsdialog_main_window_1.png new file mode 100644 index 00000000..959c3977 Binary files /dev/null and b/doc/tdefilereplace/optionsdialog_main_window_1.png differ diff --git a/doc/tdefilereplace/optionsdialog_main_window_2.png b/doc/tdefilereplace/optionsdialog_main_window_2.png new file mode 100644 index 00000000..3213b6ff Binary files /dev/null and b/doc/tdefilereplace/optionsdialog_main_window_2.png differ diff --git a/doc/tdefilereplace/project.png b/doc/tdefilereplace/project.png new file mode 100644 index 00000000..607e6aa8 Binary files /dev/null and b/doc/tdefilereplace/project.png differ diff --git a/doc/tdefilereplace/projectdialog_main_window_1.png b/doc/tdefilereplace/projectdialog_main_window_1.png new file mode 100644 index 00000000..58c622f0 Binary files /dev/null and b/doc/tdefilereplace/projectdialog_main_window_1.png differ diff --git a/doc/tdefilereplace/projectdialog_main_window_2.png b/doc/tdefilereplace/projectdialog_main_window_2.png new file mode 100644 index 00000000..6fe2cb98 Binary files /dev/null and b/doc/tdefilereplace/projectdialog_main_window_2.png differ diff --git a/doc/tdefilereplace/recursive_option.png b/doc/tdefilereplace/recursive_option.png new file mode 100644 index 00000000..bc98df90 Binary files /dev/null and b/doc/tdefilereplace/recursive_option.png differ diff --git a/doc/tdefilereplace/regularexpression_option.png b/doc/tdefilereplace/regularexpression_option.png new file mode 100644 index 00000000..f74c7b56 Binary files /dev/null and b/doc/tdefilereplace/regularexpression_option.png differ diff --git a/doc/tdefilereplace/report_example.png b/doc/tdefilereplace/report_example.png new file mode 100644 index 00000000..359de5ab Binary files /dev/null and b/doc/tdefilereplace/report_example.png differ diff --git a/doc/tdefilereplace/results_view.png b/doc/tdefilereplace/results_view.png new file mode 100644 index 00000000..8f91469d Binary files /dev/null and b/doc/tdefilereplace/results_view.png differ diff --git a/doc/tdefilereplace/stop.png b/doc/tdefilereplace/stop.png new file mode 100644 index 00000000..73b27d9f Binary files /dev/null and b/doc/tdefilereplace/stop.png differ diff --git a/doc/tdefilereplace/strings_view.png b/doc/tdefilereplace/strings_view.png new file mode 100644 index 00000000..7396e53c Binary files /dev/null and b/doc/tdefilereplace/strings_view.png differ diff --git a/doc/tdefilereplace/toolbar.png b/doc/tdefilereplace/toolbar.png new file mode 100644 index 00000000..84e699eb Binary files /dev/null and b/doc/tdefilereplace/toolbar.png differ diff --git a/doc/tdefilereplace/unsortedList.png b/doc/tdefilereplace/unsortedList.png new file mode 100644 index 00000000..bed281f1 Binary files /dev/null and b/doc/tdefilereplace/unsortedList.png differ -- cgit v1.2.3