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