--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Documentation/Source/eric7.HexEdit.HexEditGotoWidget.html Mon May 24 11:19:57 2021 +0200 @@ -0,0 +1,238 @@ +<!DOCTYPE html> +<html><head> +<title>eric7.HexEdit.HexEditGotoWidget</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body> +<a NAME="top" ID="top"></a> +<h1>eric7.HexEdit.HexEditGotoWidget</h1> + +<p> +Module implementing a movement (goto) widget for the hex editor. +</p> +<h3>Global Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> + +<table> + +<tr> +<td><a href="#HexEditGotoWidget">HexEditGotoWidget</a></td> +<td>Class implementing a movement (goto) widget for the hex editor.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> +<tr><td>None</td></tr> +</table> +<hr /> +<hr /> +<a NAME="HexEditGotoWidget" ID="HexEditGotoWidget"></a> +<h2>HexEditGotoWidget</h2> + +<p> + Class implementing a movement (goto) widget for the hex editor. +</p> +<h3>Derived from</h3> +QWidget, Ui_HexEditGotoWidget +<h3>Class Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#HexEditGotoWidget.__init__">HexEditGotoWidget</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.__convertText">__convertText</a></td> +<td>Private method to convert text from one format into another.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.keyPressEvent">keyPressEvent</a></td> +<td>Protected slot to handle key press events.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.on_closeButton_clicked">on_closeButton_clicked</a></td> +<td>Private slot to close the widget.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.on_formatCombo_currentIndexChanged">on_formatCombo_currentIndexChanged</a></td> +<td>Private slot to handle a selection of the format.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.on_gotoButton_clicked">on_gotoButton_clicked</a></td> +<td>Private slot to move the cursor and extend the selection.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.on_offsetEdit_textChanged">on_offsetEdit_textChanged</a></td> +<td>Private slot handling a change of the entered offset.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.reset">reset</a></td> +<td>Public slot to reset the input widgets.</td> +</tr> +<tr> +<td><a href="#HexEditGotoWidget.show">show</a></td> +<td>Public slot to show the widget.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="HexEditGotoWidget.__init__" ID="HexEditGotoWidget.__init__"></a> +<h4>HexEditGotoWidget (Constructor)</h4> +<b>HexEditGotoWidget</b>(<i>editor, parent=None</i>) + +<p> + Constructor +</p> +<dl> + +<dt><i>editor</i> (HexEditWidget)</dt> +<dd> +reference to the hex editor widget +</dd> +<dt><i>parent</i> (QWidget)</dt> +<dd> +reference to the parent widget +</dd> +</dl> +<a NAME="HexEditGotoWidget.__convertText" ID="HexEditGotoWidget.__convertText"></a> +<h4>HexEditGotoWidget.__convertText</h4> +<b>__convertText</b>(<i>txt, oldFormat, newFormat</i>) + +<p> + Private method to convert text from one format into another. +</p> +<dl> + +<dt><i>txt</i> (str)</dt> +<dd> +text to be converted +</dd> +<dt><i>oldFormat</i> (str)</dt> +<dd> +current format of the text +</dd> +<dt><i>newFormat</i> (str)</dt> +<dd> +format to convert to +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +converted text +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> +<a NAME="HexEditGotoWidget.keyPressEvent" ID="HexEditGotoWidget.keyPressEvent"></a> +<h4>HexEditGotoWidget.keyPressEvent</h4> +<b>keyPressEvent</b>(<i>event</i>) + +<p> + Protected slot to handle key press events. +</p> +<dl> + +<dt><i>event</i> (QKeyEvent)</dt> +<dd> +reference to the key press event +</dd> +</dl> +<a NAME="HexEditGotoWidget.on_closeButton_clicked" ID="HexEditGotoWidget.on_closeButton_clicked"></a> +<h4>HexEditGotoWidget.on_closeButton_clicked</h4> +<b>on_closeButton_clicked</b>(<i></i>) + +<p> + Private slot to close the widget. +</p> +<a NAME="HexEditGotoWidget.on_formatCombo_currentIndexChanged" ID="HexEditGotoWidget.on_formatCombo_currentIndexChanged"></a> +<h4>HexEditGotoWidget.on_formatCombo_currentIndexChanged</h4> +<b>on_formatCombo_currentIndexChanged</b>(<i>idx</i>) + +<p> + Private slot to handle a selection of the format. +</p> +<dl> + +<dt><i>idx</i> (int)</dt> +<dd> +index of the selected entry +</dd> +</dl> +<a NAME="HexEditGotoWidget.on_gotoButton_clicked" ID="HexEditGotoWidget.on_gotoButton_clicked"></a> +<h4>HexEditGotoWidget.on_gotoButton_clicked</h4> +<b>on_gotoButton_clicked</b>(<i></i>) + +<p> + Private slot to move the cursor and extend the selection. +</p> +<a NAME="HexEditGotoWidget.on_offsetEdit_textChanged" ID="HexEditGotoWidget.on_offsetEdit_textChanged"></a> +<h4>HexEditGotoWidget.on_offsetEdit_textChanged</h4> +<b>on_offsetEdit_textChanged</b>(<i>offset</i>) + +<p> + Private slot handling a change of the entered offset. +</p> +<dl> + +<dt><i>offset</i> (str)</dt> +<dd> +entered offset +</dd> +</dl> +<a NAME="HexEditGotoWidget.reset" ID="HexEditGotoWidget.reset"></a> +<h4>HexEditGotoWidget.reset</h4> +<b>reset</b>(<i></i>) + +<p> + Public slot to reset the input widgets. +</p> +<a NAME="HexEditGotoWidget.show" ID="HexEditGotoWidget.show"></a> +<h4>HexEditGotoWidget.show</h4> +<b>show</b>(<i></i>) + +<p> + Public slot to show the widget. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file