plan-be / iode

IODE integrates all the functionalities required for the construction and the handling of econometric models and for the management of statistical series.
https://iode.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 1 forks source link

GUI: fix find and replace #191

Open alixdamman opened 1 year ago

alixdamman commented 1 year ago
alixdamman commented 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.