eric6/Documentation/Source/eric6.HexEdit.HexEditGotoWidget.html

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

eric ide

mercurial