eric6/Documentation/Source/eric6.E5Gui.E5AnimatedLabel.html

changeset 7515
2d26ec7a563c
child 7989
a21d673a8f99
diff -r 0960c7c1f497 -r 2d26ec7a563c eric6/Documentation/Source/eric6.E5Gui.E5AnimatedLabel.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric6/Documentation/Source/eric6.E5Gui.E5AnimatedLabel.html	Thu Apr 09 18:04:37 2020 +0200
@@ -0,0 +1,319 @@
+<!DOCTYPE html>
+<html><head>
+<title>eric6.E5Gui.E5AnimatedLabel</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>eric6.E5Gui.E5AnimatedLabel</h1>
+
+<p>
+Module implementing a label widget showing an animated pixmap.
+</p>
+<h3>Global Attributes</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<h3>Classes</h3>
+
+<table>
+
+<tr>
+<td><a href="#E5AnimatedLabel">E5AnimatedLabel</a></td>
+<td>Class implementing a label widget showing an animated pixmap.</td>
+</tr>
+</table>
+<h3>Functions</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+<hr />
+<hr />
+<a NAME="E5AnimatedLabel" ID="E5AnimatedLabel"></a>
+<h2>E5AnimatedLabel</h2>
+
+<p>
+    Class implementing a label widget showing an animated pixmap.
+</p>
+<h3>Derived from</h3>
+QLabel
+<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="#E5AnimatedLabel.__init__">E5AnimatedLabel</a></td>
+<td>Constructor</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.__animate">__animate</a></td>
+<td>Private slot to animate the pixmap.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.__loadAnimationFile">__loadAnimationFile</a></td>
+<td>Private method to load an animation file.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.getAnimationFile">getAnimationFile</a></td>
+<td>Public method to get the name of the animation file.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.getInterval">getInterval</a></td>
+<td>Public method to get the interval between the animated frames.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.isActive">isActive</a></td>
+<td>Public method to check, if the animation is active.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.isAnimationFileLoaded">isAnimationFileLoaded</a></td>
+<td>Public method to check, if the animation file was loaded.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.reset">reset</a></td>
+<td>Public slot to reset the animation.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.setAnimationFile">setAnimationFile</a></td>
+<td>Public method to set the name of the animation file.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.setInterval">setInterval</a></td>
+<td>Public method to set the interval between the animated frames.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.setPixmap">setPixmap</a></td>
+<td>Public slot to set the pixmap of the label.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.start">start</a></td>
+<td>Public slot to start the animation.</td>
+</tr>
+<tr>
+<td><a href="#E5AnimatedLabel.stop">stop</a></td>
+<td>Public slot to stop the animation.</td>
+</tr>
+</table>
+<h3>Static Methods</h3>
+
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<a NAME="E5AnimatedLabel.__init__" ID="E5AnimatedLabel.__init__"></a>
+<h4>E5AnimatedLabel (Constructor)</h4>
+<b>E5AnimatedLabel</b>(<i>parent=None, *, animationFile="", interval=100</i>)
+
+<p>
+        Constructor
+</p>
+<dl>
+
+<dt><i>parent</i> (QWidget)</dt>
+<dd>
+reference to the parent window
+</dd>
+<dt><i>animationFile=</i> (str)</dt>
+<dd>
+path to the file containing the animation data
+</dd>
+<dt><i>interval=</i> (int)</dt>
+<dd>
+interval in milliseconds between animation frames
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.__animate" ID="E5AnimatedLabel.__animate"></a>
+<h4>E5AnimatedLabel.__animate</h4>
+<b>__animate</b>(<i></i>)
+
+<p>
+        Private slot to animate the pixmap.
+</p>
+<a NAME="E5AnimatedLabel.__loadAnimationFile" ID="E5AnimatedLabel.__loadAnimationFile"></a>
+<h4>E5AnimatedLabel.__loadAnimationFile</h4>
+<b>__loadAnimationFile</b>(<i>animationFile</i>)
+
+<p>
+        Private method to load an animation file.
+</p>
+<dl>
+
+<dt><i>animationFile</i> (str)</dt>
+<dd>
+path to the file containing the animation data
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.getAnimationFile" ID="E5AnimatedLabel.getAnimationFile"></a>
+<h4>E5AnimatedLabel.getAnimationFile</h4>
+<b>getAnimationFile</b>(<i></i>)
+
+<p>
+        Public method to get the name of the animation file.
+</p>
+<dl>
+<dt>Returns:</dt>
+<dd>
+path to the file containing the animation data
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+str
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.getInterval" ID="E5AnimatedLabel.getInterval"></a>
+<h4>E5AnimatedLabel.getInterval</h4>
+<b>getInterval</b>(<i></i>)
+
+<p>
+        Public method to get the interval between the animated frames.
+</p>
+<dl>
+<dt>Returns:</dt>
+<dd>
+interval in milliseconds between animation frames
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+int
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.isActive" ID="E5AnimatedLabel.isActive"></a>
+<h4>E5AnimatedLabel.isActive</h4>
+<b>isActive</b>(<i></i>)
+
+<p>
+        Public method to check, if the animation is active.
+</p>
+<dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating an active animation
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.isAnimationFileLoaded" ID="E5AnimatedLabel.isAnimationFileLoaded"></a>
+<h4>E5AnimatedLabel.isAnimationFileLoaded</h4>
+<b>isAnimationFileLoaded</b>(<i></i>)
+
+<p>
+        Public method to check, if the animation file was loaded.
+</p>
+<dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating a successfully loaded animation file
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.reset" ID="E5AnimatedLabel.reset"></a>
+<h4>E5AnimatedLabel.reset</h4>
+<b>reset</b>(<i></i>)
+
+<p>
+        Public slot to reset the animation.
+</p>
+<a NAME="E5AnimatedLabel.setAnimationFile" ID="E5AnimatedLabel.setAnimationFile"></a>
+<h4>E5AnimatedLabel.setAnimationFile</h4>
+<b>setAnimationFile</b>(<i>animationFile</i>)
+
+<p>
+        Public method to set the name of the animation file.
+</p>
+<dl>
+
+<dt><i>animationFile</i> (str)</dt>
+<dd>
+path to the file containing the animation data
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.setInterval" ID="E5AnimatedLabel.setInterval"></a>
+<h4>E5AnimatedLabel.setInterval</h4>
+<b>setInterval</b>(<i>interval</i>)
+
+<p>
+        Public method to set the interval between the animated frames.
+</p>
+<dl>
+
+<dt><i>interval</i> (int)</dt>
+<dd>
+interval in milliseconds between animation frames
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.setPixmap" ID="E5AnimatedLabel.setPixmap"></a>
+<h4>E5AnimatedLabel.setPixmap</h4>
+<b>setPixmap</b>(<i>pixmap</i>)
+
+<p>
+        Public slot to set the pixmap of the label.
+</p>
+<p>
+        Setting a standard pixmap will stop the animation and set the given
+        pixmap without animating it. Thereafter the animation has to be
+        restarted with the start() method.
+</p>
+<dl>
+
+<dt><i>pixmap</i> (QPixmap)</dt>
+<dd>
+pixmap to be set
+</dd>
+</dl>
+<a NAME="E5AnimatedLabel.start" ID="E5AnimatedLabel.start"></a>
+<h4>E5AnimatedLabel.start</h4>
+<b>start</b>(<i></i>)
+
+<p>
+        Public slot to start the animation.
+</p>
+<a NAME="E5AnimatedLabel.stop" ID="E5AnimatedLabel.stop"></a>
+<h4>E5AnimatedLabel.stop</h4>
+<b>stop</b>(<i></i>)
+
+<p>
+        Public slot to stop the animation.
+</p>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>
\ No newline at end of file

eric ide

mercurial