VlcWidgetVolumeSlider Class Reference

Volume slider widget. More...

#include <VLCQtWidgets/WidgetVolumeSlider.h>

Public Slots

bool mute () const
 Mute status. More...
 
void setMute (bool enabled)
 Toggle mute. More...
 
void setVolume (int volume)
 Set volume for current media. More...
 
int volume () const
 Get volume for current media. More...
 
void volumeControl (bool up)
 Decreases or increases volume for 1, depending on the parameter. More...
 
void volumeDown ()
 Decreases volume for 1. More...
 
void volumeUp ()
 Increases volume for 1. More...
 

Signals

void newVolume (int volume)
 Signal for new volume. More...
 

Public Member Functions

 VlcWidgetVolumeSlider (VlcMediaPlayer *player, QWidget *parent=0)
 VlcWidgetVolumeSlider constructor. More...
 
 VlcWidgetVolumeSlider (QWidget *parent=0)
 VlcWidgetVolumeSlider constructor. More...
 
 ~VlcWidgetVolumeSlider ()
 VlcWidgetVolumeSlider destructor.
 
void setMediaPlayer (VlcMediaPlayer *player)
 Set media player if initialised without it. More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 Mouse press event override. More...
 
void mouseReleaseEvent (QMouseEvent *event)
 Mouse release event override. More...
 

Detailed Description

This is one of VLC-Qt GUI classes. It provides graphical volume control and also visual display of current volume.

Constructor & Destructor Documentation

VlcWidgetVolumeSlider::VlcWidgetVolumeSlider ( VlcMediaPlayer player,
QWidget *  parent = 0 
)
explicit
Parameters
playermedia player
parentvolume slider's parent GUI widget
VlcWidgetVolumeSlider::VlcWidgetVolumeSlider ( QWidget *  parent = 0)
explicit
Parameters
parentvolume slider's parent GUI widget

Member Function Documentation

void VlcWidgetVolumeSlider::mousePressEvent ( QMouseEvent *  event)
protected
Parameters
eventmouse event
void VlcWidgetVolumeSlider::mouseReleaseEvent ( QMouseEvent *  event)
protected
Parameters
eventmouse event
bool VlcWidgetVolumeSlider::mute ( ) const
slot
Returns
bool current mute status
void VlcWidgetVolumeSlider::newVolume ( int  volume)
signal
Parameters
volumenew volume
void VlcWidgetVolumeSlider::setMediaPlayer ( VlcMediaPlayer player)
Parameters
playermedia player
void VlcWidgetVolumeSlider::setMute ( bool  enabled)
slot
Parameters
enablednew mutte status
void VlcWidgetVolumeSlider::setVolume ( int  volume)
slot
Parameters
volumenumber from 0 to 200
int VlcWidgetVolumeSlider::volume ( ) const
slot
Returns
volume number from 0 to 200
void VlcWidgetVolumeSlider::volumeControl ( bool  up)
slot

Limits from 0 to 200 apply to this function.

Parameters
upif true increases the volume
void VlcWidgetVolumeSlider::volumeDown ( )
inlineslot

This function is provided for convenience.

See also
volumeControl()
void VlcWidgetVolumeSlider::volumeUp ( )
inlineslot

This function is provided for convenience.

See also
volumeControl()

The documentation for this class was generated from the following files: