#ifndef _INTFWIDGETS_H_
#define _INTFWIDGETS_H_
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <vlc_interface.h>
-
#include <vlc_aout.h>
+
#include "qt4.hpp"
+#include "main_interface.hpp"
+#include "input_manager.hpp"
#include <QWidget>
#include <QFrame>
class VideoWidget : public QFrame
{
Q_OBJECT
+friend class MainInterface;
+
public:
VideoWidget( intf_thread_t * );
virtual ~VideoWidget();
void release( void * );
int control( void *, int, va_list );
+ virtual QSize sizeHint() const;
private:
intf_thread_t *p_intf;
vout_thread_t *p_vout;
vlc_mutex_t lock;
+ QSize videoSize;
signals:
void askVideoWidgetToShow();
QLabel *label;
virtual void contextMenuEvent( QContextMenuEvent *event );
intf_thread_t *p_intf;
-
+ virtual void resizeEvent( QResizeEvent * event );
public slots:
void toggle(){ TOGGLEV( this ); }
- void update( input_thread_t * );
+ void updateArt( QString );
};
class VisualSelector : public QFrame
private slots:
void snapshot();
+#if 0
void frame();
+#endif
void fromAtoB();
void record();
void AtoBLoop( float, int, int );
void enableVideo( bool );
public slots:
void setNavigation( int );
- void updateOnTimer();
protected:
friend class MainInterface;
friend class VolumeClickHandler;
void prev();
void next();
void updateVolume( int );
+ void updateVolume( void );
+ void updateInput();
void fullscreen();
void extSettings();
void faster();
void timeLabelDoubleClicked();
};
+class SpeedLabel : public QLabel
+{
+ Q_OBJECT
+public:
+ SpeedLabel( intf_thread_t *_p_intf, const QString text ): QLabel( text)
+ { p_intf = _p_intf; }
+
+protected:
+ virtual void mouseDoubleClickEvent ( QMouseEvent * event )
+ {
+ THEMIM->getIM()->setRate( INPUT_RATE_DEFAULT );
+ }
+private:
+ intf_thread_t *p_intf;
+};
/******************** Speed Control Widgets ****************/
class SpeedControlWidget : public QFrame
private:
intf_thread_t *p_intf;
QSlider *speedSlider;
+public slots:
+ void setEnable( bool );
private slots:
void updateRate( int );
void resetRate();