|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.HexEdit.HexEditGotoWidget</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.HexEdit.HexEditGotoWidget</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a movement (goto) widget for the hex editor. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#HexEditGotoWidget">HexEditGotoWidget</a></td> |
|
39 <td>Class implementing a movement (goto) widget for the hex editor.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="HexEditGotoWidget" ID="HexEditGotoWidget"></a> |
|
50 <h2>HexEditGotoWidget</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a movement (goto) widget for the hex editor. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QWidget, Ui_HexEditGotoWidget |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#HexEditGotoWidget.__init__">HexEditGotoWidget</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#HexEditGotoWidget.__convertText">__convertText</a></td> |
|
77 <td>Private method to convert text from one format into another.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#HexEditGotoWidget.keyPressEvent">keyPressEvent</a></td> |
|
81 <td>Protected slot to handle key press events.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#HexEditGotoWidget.on_closeButton_clicked">on_closeButton_clicked</a></td> |
|
85 <td>Private slot to close the widget.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#HexEditGotoWidget.on_formatCombo_currentIndexChanged">on_formatCombo_currentIndexChanged</a></td> |
|
89 <td>Private slot to handle a selection of the format.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#HexEditGotoWidget.on_gotoButton_clicked">on_gotoButton_clicked</a></td> |
|
93 <td>Private slot to move the cursor and extend the selection.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#HexEditGotoWidget.on_offsetEdit_textChanged">on_offsetEdit_textChanged</a></td> |
|
97 <td>Private slot handling a change of the entered offset.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#HexEditGotoWidget.reset">reset</a></td> |
|
101 <td>Public slot to reset the input widgets.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#HexEditGotoWidget.show">show</a></td> |
|
105 <td>Public slot to show the widget.</td> |
|
106 </tr> |
|
107 </table> |
|
108 <h3>Static Methods</h3> |
|
109 |
|
110 <table> |
|
111 <tr><td>None</td></tr> |
|
112 </table> |
|
113 |
|
114 <a NAME="HexEditGotoWidget.__init__" ID="HexEditGotoWidget.__init__"></a> |
|
115 <h4>HexEditGotoWidget (Constructor)</h4> |
|
116 <b>HexEditGotoWidget</b>(<i>editor, parent=None</i>) |
|
117 |
|
118 <p> |
|
119 Constructor |
|
120 </p> |
|
121 <dl> |
|
122 |
|
123 <dt><i>editor</i> (HexEditWidget)</dt> |
|
124 <dd> |
|
125 reference to the hex editor widget |
|
126 </dd> |
|
127 <dt><i>parent</i> (QWidget)</dt> |
|
128 <dd> |
|
129 reference to the parent widget |
|
130 </dd> |
|
131 </dl> |
|
132 <a NAME="HexEditGotoWidget.__convertText" ID="HexEditGotoWidget.__convertText"></a> |
|
133 <h4>HexEditGotoWidget.__convertText</h4> |
|
134 <b>__convertText</b>(<i>txt, oldFormat, newFormat</i>) |
|
135 |
|
136 <p> |
|
137 Private method to convert text from one format into another. |
|
138 </p> |
|
139 <dl> |
|
140 |
|
141 <dt><i>txt</i> (str)</dt> |
|
142 <dd> |
|
143 text to be converted |
|
144 </dd> |
|
145 <dt><i>oldFormat</i> (str)</dt> |
|
146 <dd> |
|
147 current format of the text |
|
148 </dd> |
|
149 <dt><i>newFormat</i> (str)</dt> |
|
150 <dd> |
|
151 format to convert to |
|
152 </dd> |
|
153 </dl> |
|
154 <dl> |
|
155 <dt>Return:</dt> |
|
156 <dd> |
|
157 converted text |
|
158 </dd> |
|
159 </dl> |
|
160 <dl> |
|
161 <dt>Return Type:</dt> |
|
162 <dd> |
|
163 str |
|
164 </dd> |
|
165 </dl> |
|
166 <a NAME="HexEditGotoWidget.keyPressEvent" ID="HexEditGotoWidget.keyPressEvent"></a> |
|
167 <h4>HexEditGotoWidget.keyPressEvent</h4> |
|
168 <b>keyPressEvent</b>(<i>event</i>) |
|
169 |
|
170 <p> |
|
171 Protected slot to handle key press events. |
|
172 </p> |
|
173 <dl> |
|
174 |
|
175 <dt><i>event</i> (QKeyEvent)</dt> |
|
176 <dd> |
|
177 reference to the key press event |
|
178 </dd> |
|
179 </dl> |
|
180 <a NAME="HexEditGotoWidget.on_closeButton_clicked" ID="HexEditGotoWidget.on_closeButton_clicked"></a> |
|
181 <h4>HexEditGotoWidget.on_closeButton_clicked</h4> |
|
182 <b>on_closeButton_clicked</b>(<i></i>) |
|
183 |
|
184 <p> |
|
185 Private slot to close the widget. |
|
186 </p> |
|
187 <a NAME="HexEditGotoWidget.on_formatCombo_currentIndexChanged" ID="HexEditGotoWidget.on_formatCombo_currentIndexChanged"></a> |
|
188 <h4>HexEditGotoWidget.on_formatCombo_currentIndexChanged</h4> |
|
189 <b>on_formatCombo_currentIndexChanged</b>(<i>idx</i>) |
|
190 |
|
191 <p> |
|
192 Private slot to handle a selection of the format. |
|
193 </p> |
|
194 <dl> |
|
195 |
|
196 <dt><i>idx</i> (int)</dt> |
|
197 <dd> |
|
198 index of the selected entry |
|
199 </dd> |
|
200 </dl> |
|
201 <a NAME="HexEditGotoWidget.on_gotoButton_clicked" ID="HexEditGotoWidget.on_gotoButton_clicked"></a> |
|
202 <h4>HexEditGotoWidget.on_gotoButton_clicked</h4> |
|
203 <b>on_gotoButton_clicked</b>(<i></i>) |
|
204 |
|
205 <p> |
|
206 Private slot to move the cursor and extend the selection. |
|
207 </p> |
|
208 <a NAME="HexEditGotoWidget.on_offsetEdit_textChanged" ID="HexEditGotoWidget.on_offsetEdit_textChanged"></a> |
|
209 <h4>HexEditGotoWidget.on_offsetEdit_textChanged</h4> |
|
210 <b>on_offsetEdit_textChanged</b>(<i>offset</i>) |
|
211 |
|
212 <p> |
|
213 Private slot handling a change of the entered offset. |
|
214 </p> |
|
215 <dl> |
|
216 |
|
217 <dt><i>offset</i> (str)</dt> |
|
218 <dd> |
|
219 entered offset |
|
220 </dd> |
|
221 </dl> |
|
222 <a NAME="HexEditGotoWidget.reset" ID="HexEditGotoWidget.reset"></a> |
|
223 <h4>HexEditGotoWidget.reset</h4> |
|
224 <b>reset</b>(<i></i>) |
|
225 |
|
226 <p> |
|
227 Public slot to reset the input widgets. |
|
228 </p> |
|
229 <a NAME="HexEditGotoWidget.show" ID="HexEditGotoWidget.show"></a> |
|
230 <h4>HexEditGotoWidget.show</h4> |
|
231 <b>show</b>(<i></i>) |
|
232 |
|
233 <p> |
|
234 Public slot to show the widget. |
|
235 </p> |
|
236 <div align="right"><a href="#top">Up</a></div> |
|
237 <hr /> |
|
238 </body></html> |