src/eric7/Documentation/Source/eric7.PdfViewer.PdfZoomSelector.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.PdfViewer.PdfZoomSelector</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.PdfViewer.PdfZoomSelector</h1>
<p>
Module implementing a widget to select a PDF zoom factor.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#PdfZoomSelector">PdfZoomSelector</a></td>
<td>Class implementing a widget to select a PDF zoom factor.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="PdfZoomSelector" ID="PdfZoomSelector"></a>
<h2>PdfZoomSelector</h2>
<p>
    Class implementing a widget to select a PDF zoom factor.
</p>

<h3>Signals</h3>
<dl>

<dt>zoomFactorChanged(factor)</dt>
<dd>
emitted to indicate the selected zoom factor
</dd>
<dt>zoomModeChanged(zoomMode)</dt>
<dd>
emitted to indicate the selected zoom mode
</dd>
</dl>
<h3>Derived from</h3>
QComboBox
<h3>Class Attributes</h3>
<table>
<tr><td>ZoomValues</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#PdfZoomSelector.__init__">PdfZoomSelector</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#PdfZoomSelector.__editingFinished">__editingFinished</a></td>
<td>Private slot handling the end of entering a zoom factor.</td>
</tr>
<tr>
<td><a href="#PdfZoomSelector.__processText">__processText</a></td>
<td>Private slot to handle the change of the entered zoom factor.</td>
</tr>
<tr>
<td><a href="#PdfZoomSelector.reset">reset</a></td>
<td>Public slot to reset the zoom factor to 100%.</td>
</tr>
<tr>
<td><a href="#PdfZoomSelector.setZoomFactor">setZoomFactor</a></td>
<td>Public slot to set the current zoom factor.</td>
</tr>
<tr>
<td><a href="#PdfZoomSelector.setZoomMode">setZoomMode</a></td>
<td>Public slot to set the zoom value iaw.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="PdfZoomSelector.__init__" ID="PdfZoomSelector.__init__"></a>
<h4>PdfZoomSelector (Constructor)</h4>
<b>PdfZoomSelector</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget (optional))</dt>
<dd>
reference to the parent widget (defaults to None)
</dd>
</dl>
<a NAME="PdfZoomSelector.__editingFinished" ID="PdfZoomSelector.__editingFinished"></a>
<h4>PdfZoomSelector.__editingFinished</h4>
<b>__editingFinished</b>(<i></i>)
<p>
        Private slot handling the end of entering a zoom factor.
</p>

<a NAME="PdfZoomSelector.__processText" ID="PdfZoomSelector.__processText"></a>
<h4>PdfZoomSelector.__processText</h4>
<b>__processText</b>(<i>text</i>)
<p>
        Private slot to handle the change of the entered zoom factor.
</p>

<dl>

<dt><i>text</i> (str)</dt>
<dd>
text to be handled
</dd>
</dl>
<a NAME="PdfZoomSelector.reset" ID="PdfZoomSelector.reset"></a>
<h4>PdfZoomSelector.reset</h4>
<b>reset</b>(<i></i>)
<p>
        Public slot to reset the zoom factor to 100%.
</p>

<a NAME="PdfZoomSelector.setZoomFactor" ID="PdfZoomSelector.setZoomFactor"></a>
<h4>PdfZoomSelector.setZoomFactor</h4>
<b>setZoomFactor</b>(<i>zoomFactor</i>)
<p>
        Public slot to set the current zoom factor.
</p>

<dl>

<dt><i>zoomFactor</i> (float)</dt>
<dd>
current zoom factor
</dd>
</dl>
<a NAME="PdfZoomSelector.setZoomMode" ID="PdfZoomSelector.setZoomMode"></a>
<h4>PdfZoomSelector.setZoomMode</h4>
<b>setZoomMode</b>(<i>zoomMode</i>)
<p>
        Public slot to set the zoom value iaw. the zoom mode.
</p>

<dl>

<dt><i>zoomMode</i> (QPdfView.ZoomMode)</dt>
<dd>
current zoom mode
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial