1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>Phonon.SeekSlider Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">Phonon.SeekSlider Class Reference<br /><sup><sup>[<a href="phonon.html">phonon</a> module]</sup></sup></h1><p>The SeekSlider class provides a slider for seeking to positions in media streams. <a href="#details">More...</a></p>
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="phonon-seekslider.html#SeekSlider">__init__</a></b> (<i>self</i>, QWidget <i>parent</i> = None)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#SeekSlider-2">__init__</a></b> (<i>self</i>, MediaObject, QWidget <i>parent</i> = None)</li><li><div class="fn" />bool <b><a href="phonon-seekslider.html#hasTracking">hasTracking</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="phonon-seekslider.html#iconSize">iconSize</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="phonon-seekslider.html#isIconVisible">isIconVisible</a></b> (<i>self</i>)</li><li><div class="fn" />MediaObject <b><a href="phonon-seekslider.html#mediaObject">mediaObject</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Orientation <b><a href="phonon-seekslider.html#orientation">orientation</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="phonon-seekslider.html#pageStep">pageStep</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setIconSize">setIconSize</a></b> (<i>self</i>, QSize)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setIconVisible">setIconVisible</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setMediaObject">setMediaObject</a></b> (<i>self</i>, MediaObject)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setOrientation">setOrientation</a></b> (<i>self</i>, Qt.Orientation)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setPageStep">setPageStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setSingleStep">setSingleStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-seekslider.html#setTracking">setTracking</a></b> (<i>self</i>, bool)</li><li><div class="fn" />int <b><a href="phonon-seekslider.html#singleStep">singleStep</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The SeekSlider class provides a slider for seeking to positions in media streams.</p>
<p>The SeekSlider connects to a <a href="phonon-mediaobject.html">MediaObject</a>, and controls the seek position in the object's media stream.</p>
<p>The slider will connect to the necessary signals to keep track of the sliders maximum, minimum, and current values. It will also disable itself for non-seekable streams, and update the media object when the current value of the slider changes.</p>
<p>Here follows a typical example of SeekSlider usage:</p>
<pre> Phonon.MediaObject *moo = new Phonon.MediaObject;;
Phonon.AudioOutput *device = new Phonon.AudioOutput;
Phonon.createPath(moo, device);
moo->setCurrentSource(QString("/home/gvatteka/Music/Lumme-Badloop.ogg"));
Phonon.SeekSlider *slider = new Phonon.SeekSlider;
slider->setMediaObject(moo);
slider->show();
moo->play();</pre>
<p>See also <a href="phonon-volumeslider.html">Phonon.VolumeSlider</a>, <a href="phonon-videowidget.html">Phonon.VideoWidget</a>, <a href="phonon-qmusicplayer.html">Music Player Example</a>, and <a href="phonon-module.html">Phonon Module</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="SeekSlider" />SeekSlider.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a seek slider widget with the given <i>parent</i>.</p>
<h3 class="fn"><a name="SeekSlider-2" />SeekSlider.__init__ (<i>self</i>, <a href="phonon-mediaobject.html">MediaObject</a>, <a href="qwidget.html">QWidget</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a seek slider widget for the specified <i>media</i> with the given <i>parent</i>.</p>
<a name="//apple_ref/cpp/instm/Phonon::SeekSlider/~SeekSlider" />
<h3 class="fn"><a name="hasTracking" />bool SeekSlider.hasTracking (<i>self</i>)</h3><h3 class="fn"><a name="iconSize" /><a href="qsize.html">QSize</a> SeekSlider.iconSize (<i>self</i>)</h3><h3 class="fn"><a name="isIconVisible" />bool SeekSlider.isIconVisible (<i>self</i>)</h3><h3 class="fn"><a name="mediaObject" /><a href="phonon-mediaobject.html">MediaObject</a> SeekSlider.mediaObject (<i>self</i>)</h3><p>Return the media object this <a href="phonon-seekslider.html">SeekSlider</a> controls.</p>
<p>See also <a href="phonon-seekslider.html#setMediaObject">setMediaObject</a>().</p>
<a name="//apple_ref/cpp/instm/Phonon::SeekSlider/setMediaObject" />
<h3 class="fn"><a name="orientation" /><a href="qt.html#Orientation-enum">Qt.Orientation</a> SeekSlider.orientation (<i>self</i>)</h3><h3 class="fn"><a name="pageStep" />int SeekSlider.pageStep (<i>self</i>)</h3><h3 class="fn"><a name="setIconSize" />SeekSlider.setIconSize (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setIconSize(const QSize&)</tt>.</p><h3 class="fn"><a name="setIconVisible" />SeekSlider.setIconVisible (<i>self</i>, bool)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setIconVisible(bool)</tt>.</p><h3 class="fn"><a name="setMediaObject" />SeekSlider.setMediaObject (<i>self</i>, <a href="phonon-mediaobject.html">MediaObject</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setMediaObject(Phonon::MediaObject *)</tt>.</p><p>Sets the media object to be controlled by this slider to the <i>media</i> specified.</p>
<p>See also <a href="phonon-seekslider.html#mediaObject">mediaObject</a>().</p>
<p /><h3 class="fn"><a name="setOrientation" />SeekSlider.setOrientation (<i>self</i>, <a href="qt.html#Orientation-enum">Qt.Orientation</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setOrientation(Qt::Orientation)</tt>.</p><h3 class="fn"><a name="setPageStep" />SeekSlider.setPageStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setSingleStep" />SeekSlider.setSingleStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setTracking" />SeekSlider.setTracking (<i>self</i>, bool)</h3><h3 class="fn"><a name="singleStep" />int SeekSlider.singleStep (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|