|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.phonon.SeekSlider
public class SeekSlider
The SeekSlider class provides a slider for seeking to positions in media streams. The SeekSlider connects to a MediaObject
, and controls the seek position in the object's media stream.
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.
Here follows a typical example of SeekSlider usage:
MediaObject moo = new MediaObject(); AudioOutput device = new AudioOutput(); Phonon.createPath(moo, device); moo.setCurrentSource(new MediaSource("/home/gvatteka/Music/Lumme-Badloop.ogg")); SeekSlider slider = new SeekSlider(); slider.setMediaObject(moo); slider.show(); moo.play();
Phonon::VolumeSlider
, Phonon::VideoWidget
, Music Player Example, and Phonon Module.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
SeekSlider()
Constructs a seek slider widget with the given parent. |
|
SeekSlider(MediaObject media)
Constructs a seek slider widget for the specified media with the given parent. |
|
SeekSlider(MediaObject media,
QWidget parent)
Constructs a seek slider widget for the specified media with the given parent. |
|
SeekSlider(QWidget parent)
Constructs a seek slider widget with the given parent. |
Method Summary | |
---|---|
boolean |
hasTracking()
This property holds whether slider tracking is enabled. |
QSize |
iconSize()
This property holds the icon size used for the mute button/icon. |
boolean |
isIconVisible()
This property holds whether the icon next to the slider is visible. |
MediaObject |
mediaObject()
See also. setMediaObject() . |
Qt.Orientation |
orientation()
This property holds the orientation of the slider. |
int |
pageStep()
This property holds the page step interval. |
void |
setIconSize(QSize size)
This property holds the icon size used for the mute button/icon. |
void |
setIconVisible(boolean arg__1)
This property holds whether the icon next to the slider is visible. |
void |
setMediaObject(MediaObject arg__1)
Sets the media object to be controlled by this slider to the media specified. |
void |
setOrientation(Qt.Orientation arg__1)
This property holds the orientation of the slider. |
void |
setPageStep(int milliseconds)
This property holds the page step interval. |
void |
setSingleStep(int milliseconds)
This property holds the single step interval. |
void |
setTracking(boolean tracking)
This property holds whether slider tracking is enabled. |
int |
singleStep()
This property holds the single step interval. |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public SeekSlider(MediaObject media)
public SeekSlider(MediaObject media, QWidget parent)
public SeekSlider()
public SeekSlider(QWidget parent)
Method Detail |
---|
public final boolean hasTracking()
public final QSize iconSize()
public final boolean isIconVisible()
public final MediaObject mediaObject()
setMediaObject()
.
public final Qt.Orientation orientation()
Qt::Vertical
or Qt::Horizontal
(the default).
public final int pageStep()
Defaults to 5 seconds.
public final void setIconSize(QSize size)
public final void setIconVisible(boolean arg__1)
public final void setMediaObject(MediaObject arg__1)
mediaObject()
.
public final void setOrientation(Qt.Orientation arg__1)
Qt::Vertical
or Qt::Horizontal
(the default).
public final void setPageStep(int milliseconds)
Defaults to 5 seconds.
public final void setSingleStep(int milliseconds)
Defaults to 0.5 seconds.
public final void setTracking(boolean tracking)
public final int singleStep()
Defaults to 0.5 seconds.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |