eric6.E5Gui.E5TextEditSearchWidget

Module implementing a horizontal search widget for QTextEdit.

Global Attributes

None

Classes

E5TextEditSearchWidget Class implementing a horizontal search widget for QTextEdit.

Functions

None


E5TextEditSearchWidget

Class implementing a horizontal search widget for QTextEdit.

Derived from

QWidget, Ui_E5TextEditSearchWidget

Class Attributes

None

Class Methods

None

Methods

E5TextEditSearchWidget Constructor
__find Private method to search the associated text edit.
__findByReturnPressed Private slot to handle the returnPressed signal of the findtext combobox.
__setSearchButtons Private slot to set the state of the search buttons.
attachTextEdit Public method to attach a QTextEdit widget.
keyPressEvent Protected slot to handle key press events.
on_findNextButton_clicked Private slot to find the next occurrence.
on_findPrevButton_clicked Private slot to find the previous occurrence.
on_findtextCombo_editTextChanged Private slot to enable/disable the find buttons.

Static Methods

None

E5TextEditSearchWidget (Constructor)

E5TextEditSearchWidget(parent=None)

Constructor

parent
reference to the parent widget (QWidget)

E5TextEditSearchWidget.__find

__find(backwards)

Private method to search the associated text edit.

backwards
flag indicating a backwards search (boolean)

E5TextEditSearchWidget.__findByReturnPressed

__findByReturnPressed()

Private slot to handle the returnPressed signal of the findtext combobox.

E5TextEditSearchWidget.__setSearchButtons

__setSearchButtons(enabled)

Private slot to set the state of the search buttons.

enabled
flag indicating the state (boolean)

E5TextEditSearchWidget.attachTextEdit

attachTextEdit(textedit)

Public method to attach a QTextEdit widget.

textedit
reference to the QTextEdit to be attached (QTextEdit)

E5TextEditSearchWidget.keyPressEvent

keyPressEvent(event)

Protected slot to handle key press events.

event
reference to the key press event (QKeyEvent)

E5TextEditSearchWidget.on_findNextButton_clicked

on_findNextButton_clicked()

Private slot to find the next occurrence.

E5TextEditSearchWidget.on_findPrevButton_clicked

on_findPrevButton_clicked()

Private slot to find the previous occurrence.

E5TextEditSearchWidget.on_findtextCombo_editTextChanged

on_findtextCombo_editTextChanged(txt)

Private slot to enable/disable the find buttons.

txt
text of the combobox (string)
Up