Documentation/Source/eric6.E5Gui.E5TextEditSearchWidget.html

changeset 4039
661167a99aef
child 5926
69482290dbdd
equal deleted inserted replaced
4038:175f13f4eb9d 4039:661167a99aef
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.E5Gui.E5TextEditSearchWidget</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5TextEditSearchWidget</h1>
23 <p>
24 Module implementing a horizontal search widget for QTextEdit.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#E5TextEditSearchWidget">E5TextEditSearchWidget</a></td>
34 <td>Class implementing a horizontal search widget for QTextEdit.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="E5TextEditSearchWidget" ID="E5TextEditSearchWidget"></a>
43 <h2>E5TextEditSearchWidget</h2>
44 <p>
45 Class implementing a horizontal search widget for QTextEdit.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, Ui_E5TextEditSearchWidget
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#E5TextEditSearchWidget.__init__">E5TextEditSearchWidget</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#E5TextEditSearchWidget.__find">__find</a></td>
64 <td>Private method to search the associated text edit.</td>
65 </tr><tr>
66 <td><a href="#E5TextEditSearchWidget.__findByReturnPressed">__findByReturnPressed</a></td>
67 <td>Private slot to handle the returnPressed signal of the findtext combobox.</td>
68 </tr><tr>
69 <td><a href="#E5TextEditSearchWidget.__setSearchButtons">__setSearchButtons</a></td>
70 <td>Private slot to set the state of the search buttons.</td>
71 </tr><tr>
72 <td><a href="#E5TextEditSearchWidget.attachTextEdit">attachTextEdit</a></td>
73 <td>Public method to attach a QTextEdit widget.</td>
74 </tr><tr>
75 <td><a href="#E5TextEditSearchWidget.keyPressEvent">keyPressEvent</a></td>
76 <td>Protected slot to handle key press events.</td>
77 </tr><tr>
78 <td><a href="#E5TextEditSearchWidget.on_findNextButton_clicked">on_findNextButton_clicked</a></td>
79 <td>Private slot to find the next occurrence.</td>
80 </tr><tr>
81 <td><a href="#E5TextEditSearchWidget.on_findPrevButton_clicked">on_findPrevButton_clicked</a></td>
82 <td>Private slot to find the previous occurrence.</td>
83 </tr><tr>
84 <td><a href="#E5TextEditSearchWidget.on_findtextCombo_editTextChanged">on_findtextCombo_editTextChanged</a></td>
85 <td>Private slot to enable/disable the find buttons.</td>
86 </tr>
87 </table>
88 <h3>Static Methods</h3>
89 <table>
90 <tr><td>None</td></tr>
91 </table>
92 <a NAME="E5TextEditSearchWidget.__init__" ID="E5TextEditSearchWidget.__init__"></a>
93 <h4>E5TextEditSearchWidget (Constructor)</h4>
94 <b>E5TextEditSearchWidget</b>(<i>parent=None</i>)
95 <p>
96 Constructor
97 </p><dl>
98 <dt><i>parent</i></dt>
99 <dd>
100 reference to the parent widget (QWidget)
101 </dd>
102 </dl><a NAME="E5TextEditSearchWidget.__find" ID="E5TextEditSearchWidget.__find"></a>
103 <h4>E5TextEditSearchWidget.__find</h4>
104 <b>__find</b>(<i>backwards</i>)
105 <p>
106 Private method to search the associated text edit.
107 </p><dl>
108 <dt><i>backwards</i></dt>
109 <dd>
110 flag indicating a backwards search (boolean)
111 </dd>
112 </dl><a NAME="E5TextEditSearchWidget.__findByReturnPressed" ID="E5TextEditSearchWidget.__findByReturnPressed"></a>
113 <h4>E5TextEditSearchWidget.__findByReturnPressed</h4>
114 <b>__findByReturnPressed</b>(<i></i>)
115 <p>
116 Private slot to handle the returnPressed signal of the findtext
117 combobox.
118 </p><a NAME="E5TextEditSearchWidget.__setSearchButtons" ID="E5TextEditSearchWidget.__setSearchButtons"></a>
119 <h4>E5TextEditSearchWidget.__setSearchButtons</h4>
120 <b>__setSearchButtons</b>(<i>enabled</i>)
121 <p>
122 Private slot to set the state of the search buttons.
123 </p><dl>
124 <dt><i>enabled</i></dt>
125 <dd>
126 flag indicating the state (boolean)
127 </dd>
128 </dl><a NAME="E5TextEditSearchWidget.attachTextEdit" ID="E5TextEditSearchWidget.attachTextEdit"></a>
129 <h4>E5TextEditSearchWidget.attachTextEdit</h4>
130 <b>attachTextEdit</b>(<i>textedit</i>)
131 <p>
132 Public method to attach a QTextEdit widget.
133 </p><dl>
134 <dt><i>textedit</i></dt>
135 <dd>
136 reference to the QTextEdit to be attached (QTextEdit)
137 </dd>
138 </dl><a NAME="E5TextEditSearchWidget.keyPressEvent" ID="E5TextEditSearchWidget.keyPressEvent"></a>
139 <h4>E5TextEditSearchWidget.keyPressEvent</h4>
140 <b>keyPressEvent</b>(<i>event</i>)
141 <p>
142 Protected slot to handle key press events.
143 </p><dl>
144 <dt><i>event</i></dt>
145 <dd>
146 reference to the key press event (QKeyEvent)
147 </dd>
148 </dl><a NAME="E5TextEditSearchWidget.on_findNextButton_clicked" ID="E5TextEditSearchWidget.on_findNextButton_clicked"></a>
149 <h4>E5TextEditSearchWidget.on_findNextButton_clicked</h4>
150 <b>on_findNextButton_clicked</b>(<i></i>)
151 <p>
152 Private slot to find the next occurrence.
153 </p><a NAME="E5TextEditSearchWidget.on_findPrevButton_clicked" ID="E5TextEditSearchWidget.on_findPrevButton_clicked"></a>
154 <h4>E5TextEditSearchWidget.on_findPrevButton_clicked</h4>
155 <b>on_findPrevButton_clicked</b>(<i></i>)
156 <p>
157 Private slot to find the previous occurrence.
158 </p><a NAME="E5TextEditSearchWidget.on_findtextCombo_editTextChanged" ID="E5TextEditSearchWidget.on_findtextCombo_editTextChanged"></a>
159 <h4>E5TextEditSearchWidget.on_findtextCombo_editTextChanged</h4>
160 <b>on_findtextCombo_editTextChanged</b>(<i>txt</i>)
161 <p>
162 Private slot to enable/disable the find buttons.
163 </p><dl>
164 <dt><i>txt</i></dt>
165 <dd>
166 text of the combobox (string)
167 </dd>
168 </dl>
169 <div align="right"><a href="#top">Up</a></div>
170 <hr />
171 </body></html>

eric ide

mercurial