src/eric7/Documentation/Source/eric7.WebBrowser.SpeedDial.PageThumbnailer.html

Mon, 09 Jan 2023 11:22:56 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jan 2023 11:22:56 +0100
branch
eric7
changeset 9686
2eee7a645cba
parent 9209
b99e7fd55fd3
child 10436
f6881d10e995
permissions
-rw-r--r--

Moved the 'QtHelp' subpackage out of the WebBrowser package because it is used in the HelpViewer as well.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.SpeedDial.PageThumbnailer</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.SpeedDial.PageThumbnailer</h1>

<p>
Module implementing an object to create a thumbnail image of a web site.
</p>
<h3>Global Attributes</h3>

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

<table>

<tr>
<td><a href="#PageThumbnailer">PageThumbnailer</a></td>
<td>Class implementing a thumbnail creator for web sites.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="PageThumbnailer" ID="PageThumbnailer"></a>
<h2>PageThumbnailer</h2>

<p>
    Class implementing a thumbnail creator for web sites.
</p>
<h3>Signals</h3>
<dl>

<dt>thumbnailCreated(QPixmap)</dt>
<dd>
emitted after the thumbnail has been
        created
</dd>
</dl>
<h3>Derived from</h3>
QObject
<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="#PageThumbnailer.__init__">PageThumbnailer</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.__createThumbnail">__createThumbnail</a></td>
<td>Private slot creating the thumbnail of the web site.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.__grabThumbnail">__grabThumbnail</a></td>
<td>Private slot to grab the thumbnail image from the view.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.loadTitle">loadTitle</a></td>
<td>Public method to check, if the title is loaded from the web site.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.setLoadTitle">setLoadTitle</a></td>
<td>Public method to set a flag indicating to load the title from the web site.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.setSize">setSize</a></td>
<td>Public method to set the size of the image.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.setUrl">setUrl</a></td>
<td>Public method to set the URL of the site to be thumbnailed.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.start">start</a></td>
<td>Public method to start the thumbnailing action.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.title">title</a></td>
<td>Public method to get the title of the thumbnail.</td>
</tr>
<tr>
<td><a href="#PageThumbnailer.url">url</a></td>
<td>Public method to get the URL of the thumbnail.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

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

<p>
        Constructor
</p>
<dl>

<dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl>
<a NAME="PageThumbnailer.__createThumbnail" ID="PageThumbnailer.__createThumbnail"></a>
<h4>PageThumbnailer.__createThumbnail</h4>
<b>__createThumbnail</b>(<i>status</i>)

<p>
        Private slot creating the thumbnail of the web site.
</p>
<dl>

<dt><i>status</i></dt>
<dd>
flag indicating a successful load of the web site
            (boolean)
</dd>
</dl>
<a NAME="PageThumbnailer.__grabThumbnail" ID="PageThumbnailer.__grabThumbnail"></a>
<h4>PageThumbnailer.__grabThumbnail</h4>
<b>__grabThumbnail</b>(<i></i>)

<p>
        Private slot to grab the thumbnail image from the view.
</p>
<a NAME="PageThumbnailer.loadTitle" ID="PageThumbnailer.loadTitle"></a>
<h4>PageThumbnailer.loadTitle</h4>
<b>loadTitle</b>(<i></i>)

<p>
        Public method to check, if the title is loaded from the web site.
</p>
<dl>
<dt>Return:</dt>
<dd>
flag indicating, that the title is loaded (boolean)
</dd>
</dl>
<a NAME="PageThumbnailer.setLoadTitle" ID="PageThumbnailer.setLoadTitle"></a>
<h4>PageThumbnailer.setLoadTitle</h4>
<b>setLoadTitle</b>(<i>load</i>)

<p>
        Public method to set a flag indicating to load the title from
        the web site.
</p>
<dl>

<dt><i>load</i></dt>
<dd>
flag indicating to load the title (boolean)
</dd>
</dl>
<a NAME="PageThumbnailer.setSize" ID="PageThumbnailer.setSize"></a>
<h4>PageThumbnailer.setSize</h4>
<b>setSize</b>(<i>size</i>)

<p>
        Public method to set the size of the image.
</p>
<dl>

<dt><i>size</i></dt>
<dd>
size of the image (QSize)
</dd>
</dl>
<a NAME="PageThumbnailer.setUrl" ID="PageThumbnailer.setUrl"></a>
<h4>PageThumbnailer.setUrl</h4>
<b>setUrl</b>(<i>url</i>)

<p>
        Public method to set the URL of the site to be thumbnailed.
</p>
<dl>

<dt><i>url</i></dt>
<dd>
URL of the web site (QUrl)
</dd>
</dl>
<a NAME="PageThumbnailer.start" ID="PageThumbnailer.start"></a>
<h4>PageThumbnailer.start</h4>
<b>start</b>(<i></i>)

<p>
        Public method to start the thumbnailing action.
</p>
<a NAME="PageThumbnailer.title" ID="PageThumbnailer.title"></a>
<h4>PageThumbnailer.title</h4>
<b>title</b>(<i></i>)

<p>
        Public method to get the title of the thumbnail.
</p>
<dl>
<dt>Return:</dt>
<dd>
title of the thumbnail (string)
</dd>
</dl>
<a NAME="PageThumbnailer.url" ID="PageThumbnailer.url"></a>
<h4>PageThumbnailer.url</h4>
<b>url</b>(<i></i>)

<p>
        Public method to get the URL of the thumbnail.
</p>
<dl>
<dt>Return:</dt>
<dd>
URL of the thumbnail (QUrl)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial