Open alixdamman opened 1 year ago
@yvda23
The "find and replace" feature relies on a special class FindAndReplaceDialog
implemented in files iode\gui\text_edit\find_and_replace_dialog.ui/h/cpp
.
The find_and_replace_dialog.ui
can be opened with the Qt Designer program.
Remember that to find everywhere a class or a variable is used, press CTRL + SHIFT + F
in Visual Studio Code.
After searching where the class FindAndReplaceDialog
is used, it seems that it is used by the class IodeTextEditor
implemented in files iode\gui\text_edit\text_editor.h/cpp
. Specifically, the object findReplaceDialog
(which is an instance of FindAndReplaceDialog
) is used in the method IodeTextEditor::popupFindReplaceBox
.
Basically, the class IodeTextEditor
represents a QTextEdit
object with additional features. To make some tests in Python (with pyqt), you may simply rewritte the class FindAndReplaceDialog
in Python and create a simplified version of IodeTextEditor
wich inherits from QTextEdit
.
replace()