#include <QWidget>
#include <QFrame>
-#define VOLUME_MAX 200
-
-/* on WIN32 hide() for fullscreen controller doesnt work, so it have to be
- done by trick with setting the opacity of window */
-#ifdef WIN32
- #define WIN32TRICK
-#endif
-
-/* to trying transparency with fullscreen controller on windows enable that */
-/* it can be enabled on-non windows systems,
- but it will be transparent only with composite manager */
-#ifndef WIN32
- #define HAVE_TRANSPARENCY 1
-#else
- #define HAVE_TRANSPARENCY 0
-#endif
-
-/* Default value of opacity for FS controller */
-#define DEFAULT_OPACITY 0.75
-
class ResizeEvent;
class QPalette;
class QPixmap;
virtual void resizeEvent( QResizeEvent * event );
public slots:
void toggle(){ TOGGLEV( this ); }
- void updateArt( QString );
+ void updateArt( input_item_t* );
};
+#if 0
class VisualSelector : public QFrame
{
Q_OBJECT
void prev();
void next();
};
+#endif
/* Advanced Button Bar */
class QPushButton;
{
Q_OBJECT
public:
- AdvControlsWidget( intf_thread_t *);
+ AdvControlsWidget( intf_thread_t *, bool );
virtual ~AdvControlsWidget();
void enableInput( bool );
QPushButton *recordButton, *ABButton;
QPushButton *snapshotButton, *frameButton;
- mtime_t timeA, timeB;
+ static mtime_t timeA, timeB;
+ int i_last_input_id;
private slots:
void snapshot();
void fromAtoB();
void record();
void AtoBLoop( float, int, int );
+ void setIcon();
+
+signals:
+ void timeChanged();
};
/* Button Bar */
QPushButton *playlistButton;
void setStatus( int );
void enableInput( bool );
- void enableVideo( bool );
public slots:
void setNavigation( int );
protected:
void toggleTeletext();
void toggleTeletextTransparency();
void enableTeletext( bool );
+ void enableVideo( bool );
signals:
void advancedControlsToggled( bool );
};
+/* on WIN32 hide() for fullscreen controller doesnt work, so it have to be
+ done by trick with setting the opacity of window */
+#ifdef WIN32
+ #define WIN32TRICK
+#endif
+
+/* to trying transparency with fullscreen controller on windows enable that */
+/* it can be enabled on-non windows systems,
+ but it will be transparent only with composite manager */
+#ifndef WIN32
+ #define HAVE_TRANSPARENCY 1
+#else
+ #define HAVE_TRANSPARENCY 0
+#endif
+
+/* Default value of opacity for FS controller */
+#define DEFAULT_OPACITY 0.75
+
/***********************************
* Fullscreen controller
***********************************/
/* */
void attachVout( vout_thread_t *p_vout );
- void detachVout( vout_thread_t *p_vout );
+ void detachVout();
void fullscreenChanged( vout_thread_t *, bool b_fs, int i_timeout );
protected:
int i_slow_hide_timeout;
#ifdef WIN32TRICK
- bool fscHidden;
+ bool b_fscHidden;
#endif
virtual void customEvent( QEvent *event );
+ vout_thread_t *p_vout;
+
/* Shared variable between FSC and VLC (protected by a lock) */
vlc_mutex_t lock;
bool b_fullscreen;
};
-
+#define VOLUME_MAX 200
class VolumeClickHandler : public QObject
{
public:
void resetRate();
};
+class CoverArtLabel : public QLabel
+{
+ Q_OBJECT
+public:
+ CoverArtLabel( QWidget *parent,
+ vlc_object_t *p_this,
+ input_item_t *p_input = NULL );
+ virtual ~CoverArtLabel()
+ { if( p_input ) vlc_gc_decref( p_input ); };
+private:
+ input_item_t *p_input;
+ vlc_object_t *p_this;
+ QString prevArt;
+
+public slots:
+ void requestUpdate() { emit updateRequested(); };
+ void update( input_item_t* p_item )
+ { if( p_input ) vlc_gc_decref( p_input );
+ if( ( p_input = p_item ) ) vlc_gc_incref( p_input );
+ requestUpdate(); }
+
+private slots:
+ void doUpdate();
+ void downloadCover();
+
+signals:
+ void updateRequested();
+};
+
#endif