Documentation/Source/eric5.Helpviewer.SpeedDial.SpeedDial.html

changeset 1670
6fd889391d2c
child 1699
10706f6ad9d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Documentation/Source/eric5.Helpviewer.SpeedDial.SpeedDial.html	Sat Feb 25 17:54:39 2012 +0100
@@ -0,0 +1,428 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
+'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
+<html><head>
+<title>eric5.Helpviewer.SpeedDial.SpeedDial</title>
+<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>eric5.Helpviewer.SpeedDial.SpeedDial</h1>
+<p>
+Module implementing the speed dial.
+</p>
+<h3>Global Attributes</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Classes</h3>
+<table>
+<tr>
+<td><a href="#Page">Page</a></td>
+<td>Class to hold the data for a speed dial page.</td>
+</tr><tr>
+<td><a href="#SpeedDial">SpeedDial</a></td>
+<td>Class implementing the speed dial.</td>
+</tr>
+</table>
+<h3>Functions</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<hr /><hr />
+<a NAME="Page" ID="Page"></a>
+<h2>Page</h2>
+<p>
+    Class to hold the data for a speed dial page.
+</p>
+<h3>Derived from</h3>
+object
+<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="#Page.__init__">Page</a></td>
+<td>Constructor</td>
+</tr><tr>
+<td><a href="#Page.__eq__">__eq__</a></td>
+<td>Public method implementing the equality operator.</td>
+</tr>
+</table>
+<h3>Static Methods</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<a NAME="Page.__init__" ID="Page.__init__"></a>
+<h4>Page (Constructor)</h4>
+<b>Page</b>(<i>url="", title="", broken=False</i>)
+<p>
+        Constructor
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL of the page (string)
+</dd><dt><i>title</i></dt>
+<dd>
+title of the page (string)
+</dd>
+</dl><a NAME="Page.__eq__" ID="Page.__eq__"></a>
+<h4>Page.__eq__</h4>
+<b>__eq__</b>(<i>other</i>)
+<p>
+        Public method implementing the equality operator.
+</p><dl>
+<dt><i>other</i></dt>
+<dd>
+reference to the other page object (Page)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating equality (boolean)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr /><hr />
+<a NAME="SpeedDial" ID="SpeedDial"></a>
+<h2>SpeedDial</h2>
+<p>
+    Class implementing the speed dial.
+</p><h3>Signals</h3>
+<dl>
+<dt>pagesChanged()</dt>
+<dd>
+emitted after the list of pages changed
+</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="#SpeedDial.__init__">SpeedDial</a></td>
+<td>Constructor</td>
+</tr><tr>
+<td><a href="#SpeedDial.__cleanFrames">__cleanFrames</a></td>
+<td>Private method to clean all frames.</td>
+</tr><tr>
+<td><a href="#SpeedDial.__generateAllPages">__generateAllPages</a></td>
+<td>Private method to generate s string with all pages managed by the speed dial.</td>
+</tr><tr>
+<td><a href="#SpeedDial.__imageFileName">__imageFileName</a></td>
+<td>Private method to generate the image file name for a URL.</td>
+</tr><tr>
+<td><a href="#SpeedDial.__initialize">__initialize</a></td>
+<td>Private method to initialize the speed dial.</td>
+</tr><tr>
+<td><a href="#SpeedDial.__pagesChanged">__pagesChanged</a></td>
+<td>Private slot to react on a change of the pages configuration.</td>
+</tr><tr>
+<td><a href="#SpeedDial.__thumbnailCreated">__thumbnailCreated</a></td>
+<td>Private slot to handle the creation of a thumbnail image.</td>
+</tr><tr>
+<td><a href="#SpeedDial.addPage">addPage</a></td>
+<td>Public method to add a page for the given data.</td>
+</tr><tr>
+<td><a href="#SpeedDial.addWebFrame">addWebFrame</a></td>
+<td>Public method to add a web frame.</td>
+</tr><tr>
+<td><a href="#SpeedDial.changed">changed</a></td>
+<td>Public slot to react on changed pages.</td>
+</tr><tr>
+<td><a href="#SpeedDial.initialScript">initialScript</a></td>
+<td>Public method to get the 'initial' JavaScript script.</td>
+</tr><tr>
+<td><a href="#SpeedDial.loadThumbnail">loadThumbnail</a></td>
+<td>Public slot to load a thumbnail of the given URL.</td>
+</tr><tr>
+<td><a href="#SpeedDial.pageForUrl">pageForUrl</a></td>
+<td>Public method to get the page for the given URL.</td>
+</tr><tr>
+<td><a href="#SpeedDial.pagesInRow">pagesInRow</a></td>
+<td>Public method to get the number of dials per row.</td>
+</tr><tr>
+<td><a href="#SpeedDial.removeImageForUrl">removeImageForUrl</a></td>
+<td>Public slot to remove the image for a URL.</td>
+</tr><tr>
+<td><a href="#SpeedDial.removePage">removePage</a></td>
+<td>Public method to remove a page.</td>
+</tr><tr>
+<td><a href="#SpeedDial.sdSize">sdSize</a></td>
+<td>Public method to get the speed dial size.</td>
+</tr><tr>
+<td><a href="#SpeedDial.setPagesInRow">setPagesInRow</a></td>
+<td>Public slot to set the number of pages per row.</td>
+</tr><tr>
+<td><a href="#SpeedDial.setSdSize">setSdSize</a></td>
+<td>Public slot to set the size of the speed dial.</td>
+</tr><tr>
+<td><a href="#SpeedDial.urlForShortcut">urlForShortcut</a></td>
+<td>Public method to get the URL for the given shortcut key.</td>
+</tr><tr>
+<td><a href="#SpeedDial.urlFromUserInput">urlFromUserInput</a></td>
+<td>Public slot to get the URL from user input.</td>
+</tr>
+</table>
+<h3>Static Methods</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+<a NAME="SpeedDial.__init__" ID="SpeedDial.__init__"></a>
+<h4>SpeedDial (Constructor)</h4>
+<b>SpeedDial</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="SpeedDial.__cleanFrames" ID="SpeedDial.__cleanFrames"></a>
+<h4>SpeedDial.__cleanFrames</h4>
+<b>__cleanFrames</b>(<i></i>)
+<p>
+        Private method to clean all frames.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+list of speed dial frames (list of QWebFrame)
+</dd>
+</dl><a NAME="SpeedDial.__generateAllPages" ID="SpeedDial.__generateAllPages"></a>
+<h4>SpeedDial.__generateAllPages</h4>
+<b>__generateAllPages</b>(<i></i>)
+<p>
+        Private method to generate s string with all pages managed by the speed dial.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+string with all pages (string)
+</dd>
+</dl><a NAME="SpeedDial.__imageFileName" ID="SpeedDial.__imageFileName"></a>
+<h4>SpeedDial.__imageFileName</h4>
+<b>__imageFileName</b>(<i>url</i>)
+<p>
+        Private method to generate the image file name for a URL.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL to generate the file name from (string)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+name of the image file (string)
+</dd>
+</dl><a NAME="SpeedDial.__initialize" ID="SpeedDial.__initialize"></a>
+<h4>SpeedDial.__initialize</h4>
+<b>__initialize</b>(<i></i>)
+<p>
+        Private method to initialize the speed dial.
+</p><a NAME="SpeedDial.__pagesChanged" ID="SpeedDial.__pagesChanged"></a>
+<h4>SpeedDial.__pagesChanged</h4>
+<b>__pagesChanged</b>(<i></i>)
+<p>
+        Private slot to react on a change of the pages configuration.
+</p><a NAME="SpeedDial.__thumbnailCreated" ID="SpeedDial.__thumbnailCreated"></a>
+<h4>SpeedDial.__thumbnailCreated</h4>
+<b>__thumbnailCreated</b>(<i>image</i>)
+<p>
+        Private slot to handle the creation of a thumbnail image.
+</p><dl>
+<dt><i>image</i></dt>
+<dd>
+thumbnail image (QPixmap)
+</dd>
+</dl><a NAME="SpeedDial.addPage" ID="SpeedDial.addPage"></a>
+<h4>SpeedDial.addPage</h4>
+<b>addPage</b>(<i>url, title</i>)
+<p>
+        Public method to add a page for the given data.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL of the page (QUrl)
+</dd><dt><i>title</i></dt>
+<dd>
+title of the page (string)
+</dd>
+</dl><a NAME="SpeedDial.addWebFrame" ID="SpeedDial.addWebFrame"></a>
+<h4>SpeedDial.addWebFrame</h4>
+<b>addWebFrame</b>(<i>frame</i>)
+<p>
+        Public method to add a web frame.
+</p><dl>
+<dt><i>frame</i></dt>
+<dd>
+reference to the frame to be added (QWebFrame)
+</dd>
+</dl><a NAME="SpeedDial.changed" ID="SpeedDial.changed"></a>
+<h4>SpeedDial.changed</h4>
+<b>changed</b>(<i>allPages</i>)
+<p>
+        Public slot to react on changed pages.
+</p><dl>
+<dt><i>allPages</i></dt>
+<dd>
+string giving all pages (string)
+</dd>
+</dl><a NAME="SpeedDial.initialScript" ID="SpeedDial.initialScript"></a>
+<h4>SpeedDial.initialScript</h4>
+<b>initialScript</b>(<i></i>)
+<p>
+        Public method to get the 'initial' JavaScript script.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+initial JavaScript script (string)
+</dd>
+</dl><a NAME="SpeedDial.loadThumbnail" ID="SpeedDial.loadThumbnail"></a>
+<h4>SpeedDial.loadThumbnail</h4>
+<b>loadThumbnail</b>(<i>url, loadTitle=False</i>)
+<p>
+        Public slot to load a thumbnail of the given URL.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL of the thumbnail (string)
+</dd><dt><i>loadTitle</i></dt>
+<dd>
+flag indicating to get the title for the thumbnail
+            from the site (boolean)
+</dd>
+</dl><a NAME="SpeedDial.pageForUrl" ID="SpeedDial.pageForUrl"></a>
+<h4>SpeedDial.pageForUrl</h4>
+<b>pageForUrl</b>(<i>url</i>)
+<p>
+        Public method to get the page for the given URL.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL to be searched for (QUrl)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+page for the URL (Page)
+</dd>
+</dl><a NAME="SpeedDial.pagesInRow" ID="SpeedDial.pagesInRow"></a>
+<h4>SpeedDial.pagesInRow</h4>
+<b>pagesInRow</b>(<i></i>)
+<p>
+        Public method to get the number of dials per row.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+number of dials per row (integer)
+</dd>
+</dl><a NAME="SpeedDial.removeImageForUrl" ID="SpeedDial.removeImageForUrl"></a>
+<h4>SpeedDial.removeImageForUrl</h4>
+<b>removeImageForUrl</b>(<i>url</i>)
+<p>
+        Public slot to remove the image for a URL.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL to remove the image for (string)
+</dd>
+</dl><a NAME="SpeedDial.removePage" ID="SpeedDial.removePage"></a>
+<h4>SpeedDial.removePage</h4>
+<b>removePage</b>(<i>url</i>)
+<p>
+        Public method to remove a page.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL of the page (QUrl)
+</dd>
+</dl><a NAME="SpeedDial.sdSize" ID="SpeedDial.sdSize"></a>
+<h4>SpeedDial.sdSize</h4>
+<b>sdSize</b>(<i></i>)
+<p>
+        Public method to get the speed dial size.
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+speed dial size (integer)
+</dd>
+</dl><a NAME="SpeedDial.setPagesInRow" ID="SpeedDial.setPagesInRow"></a>
+<h4>SpeedDial.setPagesInRow</h4>
+<b>setPagesInRow</b>(<i>count</i>)
+<p>
+        Public slot to set the number of pages per row.
+</p><dl>
+<dt><i>count</i></dt>
+<dd>
+number of pages per row (integer)
+</dd>
+</dl><a NAME="SpeedDial.setSdSize" ID="SpeedDial.setSdSize"></a>
+<h4>SpeedDial.setSdSize</h4>
+<b>setSdSize</b>(<i>size</i>)
+<p>
+        Public slot to set the size of the speed dial.
+</p><dl>
+<dt><i>size</i></dt>
+<dd>
+size of the speed dial (integer)
+</dd>
+</dl><a NAME="SpeedDial.urlForShortcut" ID="SpeedDial.urlForShortcut"></a>
+<h4>SpeedDial.urlForShortcut</h4>
+<b>urlForShortcut</b>(<i>key</i>)
+<p>
+        Public method to get the URL for the given shortcut key.
+</p><dl>
+<dt><i>key</i></dt>
+<dd>
+shortcut key (integer)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+URL for the key (QUrl)
+</dd>
+</dl><a NAME="SpeedDial.urlFromUserInput" ID="SpeedDial.urlFromUserInput"></a>
+<h4>SpeedDial.urlFromUserInput</h4>
+<b>urlFromUserInput</b>(<i>url</i>)
+<p>
+        Public slot to get the URL from user input.
+</p><dl>
+<dt><i>url</i></dt>
+<dd>
+URL entered by the user (string)
+</dd>
+</dl><dl>
+<dt>Returns:</dt>
+<dd>
+sanitized URL (string)
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial