Module implementing a dialog to search for text in files.
None |
FindFileDialog | Class implementing a dialog to search for text in files and replace it with some other text. |
FindFileWidget | Class implementing a widget to search for text in files and replace it with some other text. |
None |
Class implementing a dialog to search for text in files and replace it with some other text.
The occurrences found are displayed in a tree showing the file name, the line number and the text found. The file will be opened upon a double click onto the respective entry of the list. If the widget is in replace mode the line below shows the text after replacement. Replacements can be authorized by ticking them on. Pressing the replace button performs all ticked replacement operations.
None |
None |
FindFileDialog | Constructor |
activate | Public method to activate the dialog with a given mode, a text to search for and some search parameters. |
populateFileCategories | Public method to populate the search file categories list. |
None |
Constructor
Public method to activate the dialog with a given mode, a text to search for and some search parameters.
Public method to populate the search file categories list.
Class implementing a widget to search for text in files and replace it with some other text.
The occurrences found are displayed in a tree showing the file name, the line number and the text found. The file will be opened upon a double click onto the respective entry of the list. If the widget is in replace mode the line below shows the text after replacement. Replacements can be authorized by ticking them on. Pressing the replace button performs all ticked replacement operations.
endRole |
lineRole |
md5Role |
replaceRole |
startRole |
None |
FindFileWidget | Constructor |
__clearResults | Private slot to clear the current search results. |
__contextMenuRequested | Private slot to handle the context menu request. |
__copyToClipboard | Private slot to copy the path of an entry to the clipboard. |
__createItem | Private method to create an entry in the file list. |
__deselectAll | Private slot to deselect all entries. |
__doSearch | Private slot to handle the find button being pressed. |
__enableFindButton | Private slot called to enable the find button. |
__getFileList | Private method to get a list of files to search. |
__openFile | Private slot to open the currently selected entry. |
__projectClosed | Private slot to react to the closing of a project. |
__projectOpened | Private slot to react to the opening of a project. |
__selectAll | Private slot to select all entries. |
__setOpenFiles | Private slot to set the mode to search in open files. |
__setSearchDirectory | Private slot to set the name of the directory to search in. |
__stopSearch | Private slot to handle the stop button being pressed. |
__stripEol | Private method to strip the eol part. |
__toggleReplaceMode | Private slot to toggle the dialog mode. |
activate | Public method to activate the widget with a given mode, a text to search for and some search parameters. |
on_dirButton_clicked | Private slot to handle the selection of the 'Directory' radio button. |
on_dirPicker_editTextChanged | Private slot to handle the textChanged signal of the directory picker. |
on_filterCheckBox_clicked | Private slot to handle the selection of the file filter check box. |
on_filterEdit_textEdited | Private slot to handle the textChanged signal of the file filter edit. |
on_findList_itemDoubleClicked | Private slot to handle the double click on a file item. |
on_findtextCombo_editTextChanged | Private slot to handle the editTextChanged signal of the find text combo. |
on_openFilesButton_clicked | Private slot to handle the selection of the 'Open Files' radio button. |
on_projectButton_clicked | Private slot to handle the selection of the 'Project' radio button. |
on_replaceButton_clicked | Private slot to perform the requested replace actions. |
on_replacetextCombo_editTextChanged | Private slot to handle the editTextChanged signal of the replace text combo. |
populateFileCategories | Public method to populate the search file categories list. |
None |
Constructor
Private slot to clear the current search results.
Private slot to handle the context menu request.
Private slot to copy the path of an entry to the clipboard.
Private method to create an entry in the file list.
Private slot to deselect all entries.
Private slot to handle the find button being pressed.
Private slot called to enable the find button.
Private method to get a list of files to search.
Private slot to open the currently selected entry.
Private slot to react to the closing of a project.
Private slot to react to the opening of a project.
Private slot to select all entries.
Private slot to set the mode to search in open files.
Private slot to set the name of the directory to search in.
Private slot to handle the stop button being pressed.
Private method to strip the eol part.
Private slot to toggle the dialog mode.
Public method to activate the widget with a given mode, a text to search for and some search parameters.
Private slot to handle the selection of the 'Directory' radio button.
Private slot to handle the textChanged signal of the directory picker.
Private slot to handle the selection of the file filter check box.
Private slot to handle the textChanged signal of the file filter edit.
Private slot to handle the double click on a file item.
It emits a signal depending on the file extension.
Private slot to handle the editTextChanged signal of the find text combo.
Private slot to handle the selection of the 'Open Files' radio button.
Private slot to handle the selection of the 'Project' radio button.
Private slot to perform the requested replace actions.
Private slot to handle the editTextChanged signal of the replace text combo.
Public method to populate the search file categories list.