Package node_manager_fkie :: Package editor :: Module text_search_frame :: Class TextSearchFrame
[frames] | no frames]

Class TextSearchFrame

source code

python_qt_binding.QtWidgets.QDockWidget --+
                                          |
                                         TextSearchFrame

A frame to find text in the Editor.

Instance Methods
 
__init__(self, tabwidget, parent=None) source code
 
keyPressEvent(self, event)
Enable the shortcats for search and replace
source code
 
on_search(self)
Initiate the new search or request a next search result.
source code
 
on_search_back(self)
Slot to handle the search back function.
source code
 
on_search_result(self, search_text, found, path, index, linenr, line)
Slot to handle the signals for search result.
source code
 
on_warning_result(self, text) source code
 
on_replace_click(self) source code
 
on_replace(self)
Emits the replace signal, but only if currently selected text is equal to the searched one.
source code
 
on_itemActivated(self, item)
Go to the results for the selected file entry in the list.
source code
 
on_search_text_changed(self, _text)
Clear search result if the text was changed.
source code
 
file_changed(self, path)
Clears search results if for changed file are some search results are available :param path: changed file path :type path: str
source code
 
set_replace_visible(self, value) source code
 
is_replace_visible(self) source code
 
enable(self) source code
Instance Variables
  search_result_signal = Signal(str, bool, str, int)
A signal emitted after search_threaded was started.
  replace_signal = Signal(str, str, int, str)
A signal emitted to replace string at given position.
Method Details

on_search_result(self, search_text, found, path, index, linenr, line)

source code 

Slot to handle the signals for search result. This signals are forwarded used search_result_signal.


Instance Variable Details

search_result_signal

A signal emitted after search_threaded was started. (search text, found or not, file, position in text) for each result a signal will be emitted.
Value:
Signal(str, bool, str, int)

replace_signal

A signal emitted to replace string at given position. (search text, file, position in text, replaced by text)
Value:
Signal(str, str, int, str)