Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.phonon
Class VolumeSlider

    java.lang.Object
      com.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.VolumeSlider

All Implemented Interfaces:
  QPaintDeviceInterface, QtJambiInterface

    public class VolumeSlider

extends QWidget

The VolumeSlider widget provides a slider that is used to control the volume of an audio output device. The slider also displays an icon indicating if the volume of the `AudioOutput` it is connected to is muted. The icon can be removed with `setMuteVisible()`.

It is possible to set the maximum value of the slider. By default, the minimum and maximum values of the slider are 0.0 (no sound) to 1.0 (the maximum volume the audio output can produce).

Here follows a code example:

        AudioOutput audioOutput = new AudioOutput(Phonon.Category.MusicCategory);
        Phonon.createPath(mediaObject, audioOutput);

        VolumeSlider volumeSlider = new VolumeSlider();
        volumeSlider.setAudioOutput(audioOutput);

See also:
  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
`VolumeSlider()` Constructs a new volume slider with the given `parent`.
`VolumeSlider(AudioOutput arg__1)` Constructs a new volume slider with the given `output` object and `parent`.
`VolumeSlider(AudioOutput arg__1, QWidget parent)` Constructs a new volume slider with the given `output` object and `parent`.
`VolumeSlider(QWidget parent)` Constructs a new volume slider with the given `parent`.

Method Summary
`AudioOutput` | `audioOutput()` See also. `setAudioOutput()`.
`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` | `isMuteVisible()` This property holds whether the mute button/icon next to the slider is visible.
`double` | `maximumVolume()` This property holds the maximum volume that can be set with this slider.
`Qt.Orientation` | `orientation()` This property holds the orientation of the slider.
`int` | `pageStep()` This property holds the page step.
`void` | `setAudioOutput(AudioOutput arg__1)` Sets the audio output object to be controlled by this slider to the specified `output` object.
`void` | `setIconSize(QSize size)` This property holds the icon size used for the mute button/icon.
`void` | `setMaximumVolume(double arg__1)` This property holds the maximum volume that can be set with this slider.
`void` | `setMuteVisible(boolean arg__1)` This property holds whether the mute button/icon next to the slider is visible.
`void` | `setOrientation(Qt.Orientation arg__1)` This property holds the orientation of the slider.
`void` | `setPageStep(int milliseconds)` This property holds the page step.
`void` | `setSingleStep(int milliseconds)` This property holds the single step.
`void` | `setTracking(boolean tracking)` This property holds whether slider tracking is enabled.
`int` | `singleStep()` This property holds the single step.

Methods inherited from class com.trolltech.qt.gui.QWidget
`acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsRect, contextMenuEvent, contextMenuPolicy, cursor, depth, destroy, destroy, destroy, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, hasFocus, hasMouseTracking, height, heightForWidth, heightMM, hide, hideEvent, inputContext, inputMethodEvent, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isMaximized, isMinimized, isModal, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyPressEvent, keyReleaseEvent, languageChange, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, numColors, overrideWindowFlags, overrideWindowFlags, overrideWindowState, paintEngine, paintEvent, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, raise, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resetInputContext, resize, resize, resizeEvent, restoreGeometry, saveGeometry, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setHidden, setInputContext, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, underMouse, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, widthMM, window, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y`

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

### VolumeSlider

    public VolumeSlider(AudioOutput arg__1)

  Constructs a new volume slider with the given `output` object and `parent`.

### VolumeSlider

    public VolumeSlider(AudioOutput arg__1,
                        QWidget parent)

  Constructs a new volume slider with the given `output` object and `parent`.

### VolumeSlider

    public VolumeSlider()

  Constructs a new volume slider with the given `parent`.

### VolumeSlider

    public VolumeSlider(QWidget parent)

  Constructs a new volume slider with the given `parent`.

Method Detail

### audioOutput

    public final AudioOutput audioOutput()

See also.
  `setAudioOutput()`.

### hasTracking

    public final boolean hasTracking()

  This property holds whether slider tracking is enabled.

  If tracking is enabled (the default), the volume changes while the slider is being dragged. If tracking is disabled, the volume changes only when the user releases the slider.

### iconSize

    public final QSize iconSize()

  This property holds the icon size used for the mute button/icon. The default size is defined by the GUI style.

### isMuteVisible

    public final boolean isMuteVisible()

  This property holds whether the mute button/icon next to the slider is visible.

  By default the mute button/icon is visible.

### maximumVolume

    public final double maximumVolume()

  This property holds the maximum volume that can be set with this slider.

  By default the maximum value is 1.0 (100%).

### orientation

    public final Qt.Orientation orientation()

  This property holds the orientation of the slider.

  The orientation must be `Qt::Vertical` (the default) or `Qt::Horizontal` .

### pageStep

    public final int pageStep()

  This property holds the page step.

  The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

  Defaults to 5 (5% of the voltage).

### setAudioOutput

    public final void setAudioOutput(AudioOutput arg__1)

  Sets the audio output object to be controlled by this slider to the specified `output` object.

See also:
  `audioOutput()`.

### setIconSize

    public final void setIconSize(QSize size)

  This property holds the icon size used for the mute button/icon. The default size is defined by the GUI style.

### setMaximumVolume

    public final void setMaximumVolume(double arg__1)

  This property holds the maximum volume that can be set with this slider.

  By default the maximum value is 1.0 (100%).

### setMuteVisible

    public final void setMuteVisible(boolean arg__1)

  This property holds whether the mute button/icon next to the slider is visible.

  By default the mute button/icon is visible.

### setOrientation

    public final void setOrientation(Qt.Orientation arg__1)

  This property holds the orientation of the slider.

  The orientation must be `Qt::Vertical` (the default) or `Qt::Horizontal` .

### setPageStep

    public final void setPageStep(int milliseconds)

  This property holds the page step.

  The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

  Defaults to 5 (5% of the voltage).

### setSingleStep

    public final void setSingleStep(int milliseconds)

  This property holds the single step.

  The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

  Defaults to 1 (1% of the voltage).

### setTracking

    public final void setTracking(boolean tracking)

  This property holds whether slider tracking is enabled.

  If tracking is enabled (the default), the volume changes while the slider is being dragged. If tracking is disabled, the volume changes only when the user releases the slider.

### singleStep

    public final int singleStep()

  This property holds the single step.

  The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

  Defaults to 1 (1% of the voltage).

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD