VlcWidgetSeek Class Reference

Seek widget. More...

#include <VLCQtWidgets/WidgetSeek.h>

Public Member Functions

 VlcWidgetSeek (VlcMediaPlayer *player, QWidget *slider=0, bool connectSlider=true, QWidget *parent=0)
 VlcWidgetSeek constructor. More...
 
 VlcWidgetSeek (QWidget *slider, bool connectSlider, QWidget *parent=0)
 VlcWidgetSeek constructor. More...
 
 VlcWidgetSeek (QWidget *parent=0)
 VlcWidgetSeek constructor. More...
 
 ~VlcWidgetSeek ()
 VlcWidgetSeek destructor.
 
bool autoHide () const
 Get auto-hide option. More...
 
void setAutoHide (bool autoHide)
 Set auto-hide option. More...
 
virtual void setMediaPlayer (VlcMediaPlayer *player)
 Set media player if initialised without it. More...
 
virtual void setSliderWidget (QWidget *slider, bool updateSlider=true)
 Set slider widget. More...
 

Protected Slots

virtual void updateCurrentTime (int time)
 Update turrent time callback. More...
 
virtual void updateFullTime (int time)
 Update full time callback. More...
 

Protected Attributes

VlcMediaPlayer_vlcMediaPlayer
 Media player.
 
QProgressBar * _progress
 Progress bar.
 

Detailed Description

This is one of VLC-Qt GUI classes. It provides a display of elapsed time and full time of the media.

Constructor & Destructor Documentation

VlcWidgetSeek::VlcWidgetSeek ( VlcMediaPlayer player,
QWidget *  slider = 0,
bool  connectSlider = true,
QWidget *  parent = 0 
)
explicit
Parameters
playermedia player
sliderwidget to be used as slider
connectSliderconnect the slider to relevant sigals, set to false if you want to handle everything yourself
parentseek widget's parent GUI widget
VlcWidgetSeek::VlcWidgetSeek ( QWidget *  slider,
bool  connectSlider,
QWidget *  parent = 0 
)
explicit
Parameters
sliderwidget to be used as slider
connectSliderconnect the slider to relevant sigals, set to false if you want to handle everything yourself
parentseek widget's parent GUI widget
VlcWidgetSeek::VlcWidgetSeek ( QWidget *  parent = 0)
explicit
Parameters
parentseek widget's parent GUI widget

Member Function Documentation

bool VlcWidgetSeek::autoHide ( ) const
inline
Returns
auto-hide option status, true if enabled
void VlcWidgetSeek::setAutoHide ( bool  autoHide)

This option will automatically hide seek widget, if enabled.

Parameters
autoHidenew auto-hide option
void VlcWidgetSeek::setMediaPlayer ( VlcMediaPlayer player)
virtual
Parameters
playermedia player
void VlcWidgetSeek::setSliderWidget ( QWidget *  slider,
bool  updateSlider = true 
)
virtual
Parameters
sliderwidget to be used as slider
updateSliderconnect the slider to relevant sigals, set to false if you want to handle everything yourself
void VlcWidgetSeek::updateCurrentTime ( int  time)
protectedvirtualslot
Parameters
timecurrent time
void VlcWidgetSeek::updateFullTime ( int  time)
protectedvirtualslot
Parameters
timefull time

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