#include "components/controller.hpp"
#include "components/controller_widget.hpp"
+#include "dialogs_provider.hpp"
+#include "components/info_panels.hpp"
#include <QWidget>
#include <QFrame>
class QHBoxLayout;
class QMenu;
class QSlider;
-class ReparentableWidget;
/******************** Video Widget ****************/
class VideoWidget : public QFrame
{
Q_OBJECT
-friend class ReparentableWidget;
-
public:
VideoWidget( intf_thread_t * );
virtual ~VideoWidget();
WId request( int *, int *, unsigned int *, unsigned int *, bool );
void release( void );
int control( void *, int, va_list );
- void SetFullScreen( bool, bool );
+ void sync( void );
protected:
virtual QPaintEngine *paintEngine() const
private:
intf_thread_t *p_intf;
- QWidget *reparentable;
+ QWidget *stable;
QLayout *layout;
- virtual bool eventFilter ( QObject * watched, QEvent * event );
signals:
- void keyPressed( QKeyEvent * );
void sizeChanged( int, int );
public slots:
public:
BackgroundWidget( intf_thread_t * );
void setExpandstoHeight( bool b_expand ) { b_expandPixmap = b_expand; }
+ void setWithArt( bool b_withart_ ) { b_withart = b_withart_; };
private:
+ intf_thread_t *p_intf;
QString pixmapUrl;
bool b_expandPixmap;
+ bool b_withart;
virtual void contextMenuEvent( QContextMenuEvent *event );
- intf_thread_t *p_intf;
protected:
void paintEvent( QPaintEvent *e );
static const int MARGIN = 5;
bool b_remainingTime;
int cachedLength;
QTimer *bufTimer;
- float bufVal;
+
bool buffering;
bool showBuffering;
+ float bufVal;
+
char psz_length[MSTRTIME_MAX_SIZE];
char psz_time[MSTRTIME_MAX_SIZE];
void toggleTimeDisplay();
CoverArtLabel( QWidget *parent, intf_thread_t * );
virtual ~CoverArtLabel();
+protected:
+ virtual void mouseDoubleClickEvent( QMouseEvent *event )
+ {
+ if( qobject_cast<MetaPanel *>(this->window()) == NULL )
+ {
+ THEDP->mediaInfoDialog();
+ }
+ event->accept();
+ }
private:
intf_thread_t *p_intf;