Documentation/Source/eric6.HexEdit.HexEditGotoWidget.html

changeset 4670
d401ba329d24
child 4687
f1d921533cc5
equal deleted inserted replaced
4669:d37bfc9ca3b9 4670:d401ba329d24
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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><a NAME="top" ID="top"></a>
22 <h1>eric6.HexEdit.HexEditGotoWidget</h1>
23 <p>
24 Module implementing a movement (goto) widget for the hex editor.
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="#HexEditGotoWidget">HexEditGotoWidget</a></td>
34 <td>Class implementing a movement (goto) widget for the hex editor.</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="HexEditGotoWidget" ID="HexEditGotoWidget"></a>
43 <h2>HexEditGotoWidget</h2>
44 <p>
45 Class implementing a movement (goto) widget for the hex editor.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, Ui_HexEditGotoWidget
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="#HexEditGotoWidget.__init__">HexEditGotoWidget</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#HexEditGotoWidget.__convertText">__convertText</a></td>
64 <td>Private method to convert text from one format into another.</td>
65 </tr><tr>
66 <td><a href="#HexEditGotoWidget.keyPressEvent">keyPressEvent</a></td>
67 <td>Protected slot to handle key press events.</td>
68 </tr><tr>
69 <td><a href="#HexEditGotoWidget.on_closeButton_clicked">on_closeButton_clicked</a></td>
70 <td>Private slot to close the widget.</td>
71 </tr><tr>
72 <td><a href="#HexEditGotoWidget.on_formatCombo_currentIndexChanged">on_formatCombo_currentIndexChanged</a></td>
73 <td>Private slot to handle a selection of the format.</td>
74 </tr><tr>
75 <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>
77 </tr><tr>
78 <td><a href="#HexEditGotoWidget.on_offsetEdit_textChanged">on_offsetEdit_textChanged</a></td>
79 <td>Private slot handling a change of the entered offset.</td>
80 </tr><tr>
81 <td><a href="#HexEditGotoWidget.show">show</a></td>
82 <td>Public slot to show the widget.</td>
83 </tr>
84 </table>
85 <h3>Static Methods</h3>
86 <table>
87 <tr><td>None</td></tr>
88 </table>
89 <a NAME="HexEditGotoWidget.__init__" ID="HexEditGotoWidget.__init__"></a>
90 <h4>HexEditGotoWidget (Constructor)</h4>
91 <b>HexEditGotoWidget</b>(<i>editor, parent=None</i>)
92 <p>
93 Constructor
94 </p><dl>
95 <dt><i>editor</i> (HexEditWidget)</dt>
96 <dd>
97 reference to the hex editor widget
98 </dd><dt><i>parent</i> (QWidget)</dt>
99 <dd>
100 reference to the parent widget
101 </dd>
102 </dl><a NAME="HexEditGotoWidget.__convertText" ID="HexEditGotoWidget.__convertText"></a>
103 <h4>HexEditGotoWidget.__convertText</h4>
104 <b>__convertText</b>(<i>txt, oldFormat, newFormat</i>)
105 <p>
106 Private method to convert text from one format into another.
107 </p><dl>
108 <dt><i>txt</i> (str)</dt>
109 <dd>
110 text to be converted
111 </dd><dt><i>oldFormat</i> (str)</dt>
112 <dd>
113 current format of the text
114 </dd><dt><i>newFormat</i> (str)</dt>
115 <dd>
116 format to convert to
117 </dd>
118 </dl><dl>
119 <dt>Returns:</dt>
120 <dd>
121 converted text
122 </dd>
123 </dl><dl>
124 <dt>Return Type:</dt>
125 <dd>
126 str
127 </dd>
128 </dl><a NAME="HexEditGotoWidget.keyPressEvent" ID="HexEditGotoWidget.keyPressEvent"></a>
129 <h4>HexEditGotoWidget.keyPressEvent</h4>
130 <b>keyPressEvent</b>(<i>event</i>)
131 <p>
132 Protected slot to handle key press events.
133 </p><dl>
134 <dt><i>event</i> (QKeyEvent)</dt>
135 <dd>
136 reference to the key press event
137 </dd>
138 </dl><a NAME="HexEditGotoWidget.on_closeButton_clicked" ID="HexEditGotoWidget.on_closeButton_clicked"></a>
139 <h4>HexEditGotoWidget.on_closeButton_clicked</h4>
140 <b>on_closeButton_clicked</b>(<i></i>)
141 <p>
142 Private slot to close the widget.
143 </p><a NAME="HexEditGotoWidget.on_formatCombo_currentIndexChanged" ID="HexEditGotoWidget.on_formatCombo_currentIndexChanged"></a>
144 <h4>HexEditGotoWidget.on_formatCombo_currentIndexChanged</h4>
145 <b>on_formatCombo_currentIndexChanged</b>(<i>idx</i>)
146 <p>
147 Private slot to handle a selection of the format.
148 </p><dl>
149 <dt><i>idx</i> (int)</dt>
150 <dd>
151 index of the selected entry
152 </dd>
153 </dl><a NAME="HexEditGotoWidget.on_gotoButton_clicked" ID="HexEditGotoWidget.on_gotoButton_clicked"></a>
154 <h4>HexEditGotoWidget.on_gotoButton_clicked</h4>
155 <b>on_gotoButton_clicked</b>(<i></i>)
156 <p>
157 Private slot to move the cursor and extend the selection.
158 </p><a NAME="HexEditGotoWidget.on_offsetEdit_textChanged" ID="HexEditGotoWidget.on_offsetEdit_textChanged"></a>
159 <h4>HexEditGotoWidget.on_offsetEdit_textChanged</h4>
160 <b>on_offsetEdit_textChanged</b>(<i>offset</i>)
161 <p>
162 Private slot handling a change of the entered offset.
163 </p><dl>
164 <dt><i>offset</i> (str)</dt>
165 <dd>
166 entered offset
167 </dd>
168 </dl><a NAME="HexEditGotoWidget.show" ID="HexEditGotoWidget.show"></a>
169 <h4>HexEditGotoWidget.show</h4>
170 <b>show</b>(<i></i>)
171 <p>
172 Public slot to show the widget.
173 </p>
174 <div align="right"><a href="#top">Up</a></div>
175 <hr />
176 </body></html>

eric ide

mercurial